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 !