Hello,
I am using the MTO & Manufacture routes to create Manufacturing orders from Sales/Delivery orders. My company uses the enterprise version with Odoo Studio for customization.
I would like to implement a sort of engineering checklist after a delivery order is created and before the automated creation of manufacturing orders. This will give engineering a chance to modify the product BOMs before a manufacturing order is generated. (Ideally this will still keep the manufacturing order linked to the sales order, if possible.)
I am thinking to create a checklist that lives in its own model, that is:
1. Created when there is demand in Delivery Order
2. Triggers Manufacture route upon completion
Once I am not sure how to approach this issue from a technical perspective. If anyone has any ideas please share here.
I have been messing around with automated actions and custom python code but am not having any success. Keeps saying "RPC_ERROR Odoo Server Error null" when I try to create a test delivery order with the automated action activated.
Here's my automated action code:
for record in self:
env['studio_customization.x_design_checklist'].create({
'x_product_m2o': record.move_ids_without_package.product_id
})
If anyone is able to point me in the right direction it would be greatly appreciated. I have read every article I could find on 'Lines' but still do not understand how to do this. Thanks