Greetings.
working on a repair module and have mechanic as field
mechanic_id = fields.Many2one('hr.employee', string="Mechanic's In Charge")
In my view, i want to limit the employees in the dropdown to be employees only in "garage" department and job type "mechanic".
This is my code
<field name="mechanic_id" required="1"
domain="('job_id.name', '=', 'Mechanic'),
('department_id.name', '=', 'Garage')" />
But it tells me name is not an attribute.
Sorry if i have funny code, but what am i doing wrong?