Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
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?
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 2/3/16, 4:56 AM|
|Seen: 684 times|
|Last updated: 2/3/16, 5:58 AM|