Friday, November 24, 2023
4 changes · master
Resolved issues and error corrections
The planning Gantt view now shows the correct percentage in each progress bar instead of displaying 0% for every row. This helps users quickly understand progress and workload status without misreading planning data.
Original PR description
ISSUE:
- percentage in gantt progress bar in planning is putting 0% for
every row.
REASON:
- ratio is divided by 100 before being rounded, leading to 0.
SOLUTION:
- round before dividing by 0.The Planning app now uses the current standard translation method instead of an outdated one. This keeps the code aligned with the wider platform cleanup and helps avoid future maintenance issues without changing user-facing behavior.
Original PR description
https://github.com/odoo/odoo/pull/141399 has removed translation function _lt from the whole codebase. It has however been reintroduced in the planning codebase by odoo/enterprise#50748. This commit simply modifies _lt by _t in the diff of this previous pr.
This change updates Web Studio tests after an unused partner method was removed elsewhere. It also makes test cleanup more reliable so one approval test does not affect another, reducing false failures in development checks.
Original PR description
`open_parent`/`main_partner` has been removed in the community PR. Use anothers methods to test web_studio. The `_unregister_hook` is not rollback safe, then I need to add it as a cleanup in the `TestStudioApproval`/`TestStudioApprovalPost` setUp. In fact, `test_10_exclusive_collision` patched `open_commercial_entity` but the `_unregister_hook` was called after the TransactionCase rollback, it means that `_unregister_hook` wasn't able to unpatch `open_commercial_entity` (the search called didn't return anything). Then the `test_approval_method_patch` (of the next test Class) crashed because of this (check that `open_commercial_entity` is not patched). https://github.com/odoo/odoo/pull/112769 https://github.com/odoo/upgrade/pull/5374
Field service tasks now keep their customer information when no sales order is linked. The delivery address is only copied when a related sales order exists, preventing accidental loss of customer details.
Original PR description
… linked Before this commit: - When no SO linked to the fsm task, customer is set to False. After this commit: - Make sure an SO is linked to the fsm task before propagating the delivery address. X-original-commit: a774806