Hi,
I have a readonly many2one field of hr.employee, I have to do that when I load the form containing this field the employee corresponding to the current logged in user should be filled in the above field. I have tried with onchange method but it doesn’t work for me.
employee_id = fields.Many2one('hr.employee', string="Employee",readonly=True, required=True)
Thanks in Advance