Daily updates from Odoo
Friday, February 7, 2025
2 changes · master
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.