Daily updates from Odoo
Monday, March 2, 2026
5 changes · master
Enhancements to existing features
This update improves the Work Entries Gantt view by displaying warning icons directly on employee rows. This allows operators to quickly identify employees with missing data (like contracts) without navigating to individual employee forms, streamlining their workflow and improving data visibility.
Original PR description
Operators processing work entries often need to see if an employee has blocking data issues (like missing contracts) directly from the Gantt view, without opening the individual employee form. This commit enhances the Work Entries Gantt view to display these warnings inline. Changes: 1. **Gantt Renderer:** - Extended `WorkEntriesGanttRenderer` to fetch warning data during the `onWillStart` lifecycle. - Modified the XML row header to display an orange warning triangle next to the employee name if issues exist. - Added a click handler to the icon that redirects the user to the Employee form (where the detailed banner from `hr` will be visible). 2. **Backend Logic:** - Added `get_gantt_employee_warnings` to `hr.employee`. This method is optimized for the Gantt view, returning a simple list of error strings for the visible employees, separate from the detailed JSON logic used in the form view. task-5118781
This update introduces a 'snooze' option for payroll warnings, allowing users to temporarily hide them instead of permanently archiving them. This provides greater flexibility in managing outstanding issues and reduces the risk of overwhelming users with persistent alerts. It improves the user experience by giving more control over payroll-related notifications.
Original PR description
Hiding a payroll warning permanently archives it, this change add a "snooze" checkbox option so that the user may decide whether it's intended to be permanent or not. task-5979692
This update enhances the Odoo Enterprise payroll system by allowing businesses to accurately track non-salary employer costs, such as medical insurance and work permits. Four new fields have been added to the 'hr.version' model, and corresponding salary rules have been created to calculate these costs monthly, providing a more complete view of employer expenses and contributing to the employer cost dashboard.
Original PR description
* = l10n_ae_hr_contract_salary This PR implements: - Added 4 property fields (Medical insurance, Work permit, Employment visa, Other cost) on 'hr.version' model for annual costs. - Created 4 salary rules that divide annual amounts by 12 for the monthly cost calculation. - The only other costs rule is a salary input and a one-time payment. - Rules belong to 'Labor Compliance Costs' category and contribute to employer cost dashboard. Task - 5434912
This update aligns Odoo with Hong Kong law regarding sick leave payments. We've added a new feature to limit consecutive sick leave days to a maximum of 4, ensuring compliance and accurate payroll calculations. This change impacts how employees can request and utilize sick leave allocations.
Original PR description
In Hong Kong, by law, employers are only required to pay for sick leaves starting from 4 consecutive days of leave. Below that, employers could choose whether they want or not to pay for sick leaves. We are adding two new fields on hr.leave.type that allows to configure a limit to fill this need. The limit will be checked upon leave approval, and raise an error if the employee isn't allowed to use the selected leave allocation for the amount of consecutive day selected. task-5379316
This update expands the salary increase wizard to allow for more flexible adjustments. Now, users can cap the percentage increase at a specific wage amount, preventing excessive raises, and also add a fixed extra amount to the increase. This provides greater control over salary adjustments.
Original PR description
Increase the capabilities of the salary index wizard. - The increase rate can be capped to a certain wage amount. E.g: 5000 wage increased by 10% capped to 4000 will give 5400 instead of 5500 wage. - A fixed extra amount can also be set. E.g: 5000 wage increased by 10% + extra amount of 100 will give 5600. Task-5380667