Wednesday, September 9, 2026
2 changes · master
New functionality added to Odoo
Time off balances can now be tracked separately in both days and hours, instead of always calculating one from the other. This gives payroll and HR processes more accurate balances for leave types where day-based and hour-based tracking need to differ.
Original PR description
[IMP] hr_holidays: track time off balance in both days and hours Adds a generic extension point so a leave type's day/hour balance can be tracked as two independent counters instead of one derived from the other: - Extracted the per-work-entry-type leave consumption loop into _consume_leaves_for_work_entry_type, operating on a list of `LeaveCounter` (a way to track both days and hours for some specific tome types) - Added _get_consumed_leaves_extra_counters(work_entry_type), empty by default: a module can register additional counters consumed in the same FIFO pass as the primary one. Only the primary counter (the type's own unit_of_measure) can block a request; extra counters never block, they just go negative on the last allocation touched instead (see l10n_be_hr_payroll). - Renamed `number_of_hours_display` to number_of_hours on hr.leave.allocation, now that it not just derived from number_of_days. Task-6212208
Commissions can now be calculated on point of sale orders, using either quantities sold or sales amounts. This aligns point of sale commission tracking with the existing sales order process and also corrects a reporting issue for invoice-based commission data.
Original PR description
This new bridge module allow to compute commissions based on quantity sold or amount sold in pos.order. The behavior is similar to what we do with sale.order task-6391378