Daily updates from Odoo
Friday, February 7, 2025
3 changes
2 changes
Code cleanup and technical improvements
The way campaign activities are ordered in the marketing automation form has been simplified without changing the intended display behavior. This makes the underlying logic easier to maintain and adapt in future updates, reducing long-term maintenance risk.
Original PR description
The marketing campaign form view displays child activities sorted topologically, based on ancestry. However, the current implementation of the sorting algorithm is recursive, rendering it unclear and hard to read. This commit implements an easier-to-read sorting algorithm, which should be easier to port to new framework versions. task-3390523
This draft consolidates employee-related work order accounting into the manufacturing accounting area and removes unused work order code. It should make manufacturing cost reporting and valuation logic easier to maintain, with supporting test updates to protect existing behavior.
1 change
Code cleanup and technical improvements
This change removes an unused internal input from the HTML editor’s text paste handling. It simplifies the code and helps prevent future maintenance issues without changing the user experience.
Original PR description
**Reason**: After PR https://github.com/odoo/odoo/pull/196130, we discovered that the `selection` parameter of `pasteText` was unnecessary. It was not used before calling `insert`, and after that, the selection is outdated. The current selection should instead be retrieved from the selection plugin. **Change**: Remove the unused `selection` parameter from `pasteText`. opw-4558222 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr