In the Work Orders search from I would like to select by default the current user logged in, in the drop down list of Work Center, via the ir.actions.act_window
in mrp.production.workcenter.line
.
Example:
<field name="context">{"search_default_workcenter_id":user_id}</field>
Clearly the user_id
is not related to anything in mrp.production.workcenter.line
however the routing_workcenter_id.workcenter_id.resource_id.user_id
is.
Is this possible?
How can this be done?