Tuesday, February 25, 2025
2 changes · master
Resolved issues and error corrections
Maintenance requests now keep the previously selected maintenance team when a chosen work center does not have its own team assigned. This prevents accidental loss of team ownership and helps ensure requests remain routed to the right people.
Original PR description
- When a maintenance team is set in a maintenance request and a workcenter without an assigned maintenance team is selected, the maintenance team was incorrectly removed. Now, the maintenance team is only updated if the workcenter has an assigned team, preserving the previously selected team when no team is defined for the workcenter. task-4544384
This fixes a data setup issue in the Swiss payroll accounting tests by using the correct phone field after an older mobile field was removed. It prevents demo data loading failures, helping test and validation environments run reliably.
Original PR description
A recent change (https://github.com/odoo/enterprise/pull/75203) removed the field `mobile` on the `res.partner` model, however the demo data in `l10n_ch_hr_payroll_account` was not fully adapted, leading to error and failure to load demo data. This commit changes the field `mobile` to `phone` to avoid the issue. Runbot Error: https://runbot.odoo.com/odoo/action-573/114995