Hello el mehdi,
First You can add field in res.company using _inherit
You can inherit the hr.employee model and add boolean field which is related to company.
_inherit = 'res.company'
boolean_field_com = fields.Boolean('Boolean String Company')
_inherit = 'hr.employee'
boolean_field_emp = fields.Boolean('Boolean String Employee', related='company_id.boolean_field_com')
Hope it works for you.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 11/11/16, 7:44 AM|
|Seen: 156 times|
|Last updated: 11/15/16, 7:57 AM|