Skip to Content
Menu
This question has been flagged
2 Replies
1827 Views

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.

Avatar
Discard
Author

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

Best Answer

Have you considered using the 'quality app' for this purpose? You can use studio to design the worksheet template or use the instructions field to provide the checklist. Create Control Points and then provide the operation (delivery order or Manufacturing) to trigger quality checks 

With this you would be able track the history of quality checks and document any associated actions as well.

Avatar
Discard
Best Answer

Hello Hayden, I think the best way here if we can restrict the Delivery order into a some pre-draft record status or not letting the delivery order get generated and allow Engineering team to review BOM then upon Review Done Button press Delivery( the demand) can be generated to trigger the MTO routes - to create the desired Manufacturing order.

Probably this may needs some sort of experimental configuration on clone of your database or minor customization.

Thanks

Avatar
Discard
Author

Thank you Rajesh, I like the approach you have taken here. I will do some experimenting with this idea in the dev branch and see what I can come up with. Will post here with any successes.

Related Posts Replies Views Activity
11
Jul 19
6421
0
Mar 21
2458
1
Oct 24
123
2
Aug 24
17705
0
Apr 17
2725