Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
3183 Widoki

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.

Awatar
Odrzuć
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

Najlepsza odpowiedź

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.

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
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.

Powiązane posty Odpowiedzi Widoki Czynność
11
lip 19
7558
0
mar 21
3840
1
paź 24
1492
2
sie 24
20495
0
kwi 17
3639