In odoo V13, we need to "update" the BoM in a manufacturing order. We use the PLM application to make changes to BoMs, and a change was made after the manufacturing order was created. We would prefer to not delete and re-create the manufacturing order.
I came across this post but there are no instructions for Odoo V13. I tried to figure it out by trial and error but I don't know odoo enough to be certain the result is correct.
This is the code for V14 with functions unavailable in V13 identified:
for record in records:
record._compute_allowed_product_ids() <- Not in V13
record._onchange_bom_id()
record._onchange_move_raw()
record._onchange_move_finished() <- Not in V13
record._onchange_location
I planned on adapting it to work with a wizard to allow selecting a specific BoM version.
How can I create a server action to "update/change" the BoM of a manufacturing order?