In mrp.workorder I'm trying to add a Many2one field to hr.employee. I'd like this list filtered so that it only shows employees that are in the correct department for that workcenter.
I also have a new model called mrp.workcenter.types so that I can associated multiple workcenters of a similar type together.
And hr.department is associated with mrp.workcenter.types. I've been trying to make a domain that connects these all together. Something like:
hr.employee -> hr.department -> mrp.workcenter_types -> mrp.workcenter
I've tried using related fields and domains like hr.employee.id.hr.department.id.mrp.workcenter_types.id., etc, etc. without any luck in the hr.employee many2one field. Any ideas?