class RUModifier(models.Model):
_inherit = "res.users"
__uid_cache = defaultdict(dict)
#override
@api.multi
def write(self, values):
.......
......
employee = self.env['hr.employee'].search([('id', '=', self.employee_ids.id)])
employee.sudo().write(values)
return res
Settings -> Users & Companies -> Users
I click "inactive" -> Active, i don't get employeer ID?
How to get it?
Thanks