Skip to Content
Menu
This question has been flagged
1 Reply
869 Views

Hi guys !

I'm a beginner to automated actions in Odoo and I've an error in my python code and can't understand why this is happening (no report). 

I would like all times, for the same operation name, to be set to the trigger which is the update of one of the times.

Here is my code :

model : mrp.routing.workcenter

trigger : on update value

trigger field : manual duration



A = record['time_cycle_manual']
NOM=env['mrp.routing.workcenter'].search([('name','=',record.name)])

for rec in NOM :
    rec['time_cycle_manual'] = A


I'd appreciate if you could spend some time to help me, thanks !

Avatar
Discard
Best Answer

https://odootricks.tips/about/automated-actions/

Avatar
Discard
Author

Do you have a more precisely link about my problem ?
Can't find anything that could help me...
Thank you !