Thursday, November 30, 2023
1 change · 17.0
Code cleanup and technical improvements
This update allows manufacturers to customize how the system behaves when completing workorders, specifically whether to automatically start the next workorder or return to the workorder list. Previously, this behavior was fixed in the system code, but now it can be adjusted through configuration, giving users more flexibility in their manufacturing workflow without requiring backend changes.
Original PR description
The no_start_next context key defines if mrp.workorder.do_finish will return an action to start the next workorder. It is used when we click the "Mark as Done and Close MO" button to redirect the user from the tablet view to the workorders kanban view. If the user wants to process next workorders without having to get back to the kanban view, he can use "Mark as Done", but the manufacturing order will not be closed automatically and he will have to close the MOs manually in the backend. Having this value hardcoded in the backend did not allow to customize this behaviour by changing the value of the context key on the button through an extension view. Depends on: - [x] #48988 Forward-Port-Of: odoo/enterprise#48990