My field
employee_id = fields.Many2one(comodel_name="hr.employee", string="Employee", required=True, default=_get_employee_id, )
manage_id = fields.Char(string="Manager",required = True,)
I try like this, but It's wrong
manage_id = fields.Char(string="Manager",required = True,)
I try like this, but It's wrong
@api.onchange('manage_id')
def _onchange_manager(self):
self.employee_id.Manager=self.manage_id
These tips help you to get the basic idea about customization in odoo
https://learnopenerp.tumblr.com/