Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
2951 Vistas

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
Descartar
Autor

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

Mejor respuesta

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
Descartar
Mejor respuesta

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
Descartar
Autor

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.

Publicaciones relacionadas Respuestas Vistas Actividad
11
jul 19
7373
0
mar 21
3577
1
oct 24
1339
2
ago 24
20116
0
abr 17
3502