When we produce many lot numbers from work order tablet view, a new manufacturing order is created for every lot number when you press 'Mark As Done' in the tablet view.
The order with the lot number that is complete stays in status "To close", and you have to manually close the manufacturing order that also post product movements.
We want to avoid this extra manual step. Create an automatic action that do this.
I know how to create an automatic action, but I do not know coding. So I need that line of Python code that execute this.
There is a button in the form view of Manufacturing order and I can see it uses method 'button_mark_done'. How do I write the python expression that execute thios from an automatic action.
A video of how we confirm orders is found here. Jumpt to 3 minutes to see how orders are closed