This question has been flagged

I have ODOO EE 12 with MRP with WO enabled. I have searched the forum but unfortunately cant find the answer I was looking for. I created a new field with Studio to assign the WO to an Employee (x_studio_assigned_employee). I would need to record daily production adding a field with the assigned Employee at that point in time. The idea is to create the field (x_studio_working_employee) and an automated action on creation to copy that information to the new record, but don't know which is the right model in order to include it. I would also appreciate how the python code should look like, as I'm relatively new to ODOO/python and don't know how to call data form an other model. I was thinking to use the following code:

record[("x_studio_working_employee")] = workorder_id.x_studio_assigned_employee

Summing up, do you think this code would work? Which is the model in which I should add this code and automated action?

Thanks and sorry in advance if this question is too trivial.  

Avatar
Discard