Monday, May 12, 2025
7 changes · 18.0
Resolved issues and error corrections
This fixes an Odoo 18 migration issue in Expenses where a wizard still referenced the old list view setting. Users should now see the intended expense list layout when splitting expenses, avoiding confusing or incorrect screens.
Original PR description
Description of the issue/feature this PR addresses: Incomplete migration to Odoo 18.0 regarding tree_view_ref/list_view_ref --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This fix ensures approval purchase lines use the correct purchase unit of measure instead of an incorrect unit identifier. This helps prevent errors or inconsistencies when approved items are converted into purchase-related records.
Original PR description
This commit fixes the bug introduces by this PR: https://github.com/odoo/enterprise/pull/83938 The UOM id must be the purchase UOM id. task-4751991
This fix prevents an error when saving Field Service tasks assigned to employees who do not have a work calendar set. It helps teams create and schedule service tasks more reliably, even when employee records are incomplete.
Original PR description
**Issue:** A traceback error is raised when the assignee of a Field Service task has no calendar **Steps to reproduce:** - Make sure admin (Michel Admin) has no calendar in the Employee module - Field Service > New - Create a new task with Michel Admin as assignee and click save without choosing Planned Date and leave Allocated Hours at 0 - Choose Planned Date then click save again A traceback error is raised opw-4672980
Spreadsheet pages now show a compact back arrow instead of full breadcrumbs on smaller screens. This saves space so users can still see the spreadsheet name clearly when working on mobile or narrow displays.
Original PR description
The redesign of the spreadsheet layout did not account for the small screen mode. Mor specifically, the breadcrumbs can be reduded to a "previous arrow" to spare some space to display the spreadsheet name. task-4774806
This fixes the employee dashboard filters so they again apply the correct company rules and include departed employees as intended. It prevents HR reporting figures from being skewed by a prior filter change that removed the departure reason condition.
Original PR description
Commit e33522cdc8fcc52 wrongly fixed the first domain of the three. `departure_reason_id` clause disapeared and the active=False was changed to active in [true,false]
The Attendance Gantt view now calculates flexible schedule progress using the actual selected date range, without adding an extra day. This prevents misleading progress totals such as showing expected hours over 11 days when the range is shorter, improving accuracy for managers reviewing attendance.
Original PR description
### Steps to reproduce: - Create an employee with flexible schedule with 8 hours per day - Navigate to Attendance app -> Gantt View - Check the progress bar for the flexible employee - Notice the progress bar will show X/11 ### Cause: This is happening as when calculating the maximum value for the employee's working hours we are adding a day to the date range https://github.com/odoo/enterprise/blob/2da6836520c4e7760e57062e3e97a22b744baacf/hr_attendance_gantt/models/hr_attendance.py#L47 ### Fix: We don't need to add this extra day as already the difference between the start and stop is relfecting the correct number of days opw-4680513
The Hong Kong payroll MPF export now handles employees who do not have a Manulife account number or surname entered. This prevents report generation from failing and lets payroll teams produce the required Manulife MPF report as expected.
Original PR description
Steps to reproduce: - Setup an employee with identification_id, and l10n_hk_given_name - Leave l10n_hk_mpf_manulife_account and l10n_hk_surname empty - Generate Manulife MPF report with any payslips Current behavior: - Error raised Expected behavior: - Should be able to generate the report