Friday, February 23, 2024
1 change · 17.0
Code cleanup and technical improvements
The manufacturing unbuild process has been restructured to make it easier for developers to customize and extend. Previously, adding new parameters to unbuild operations required completely rewriting the entire function. Now developers can make targeted modifications to specific parts of the process, reducing complexity and maintenance burden.
Original PR description
With the current design, when we want to pass more parameters from the original move lines of MO to the unbuild move lines, we can't easily extend action_unbuild() and it seems we need to completely override it. After this refactoring commit, developers can easily extend and add more parameters. @qrtl --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#151983