diff --git a/yuthon_hr_employee/models/inherit_res_user.py b/yuthon_hr_employee/models/inherit_res_user.py index 3906c86c0..b80969cba 100644 --- a/yuthon_hr_employee/models/inherit_res_user.py +++ b/yuthon_hr_employee/models/inherit_res_user.py @@ -10,7 +10,7 @@ class ResUsers(models.Model): # access_token2 = fields.Char(string='OAuth 访问令牌2', help='验证消息通知。') company_ids1 = fields.Many2many('res.company', string='公司', compute='_compute_company_ids1', store=True) @api.depends("company_ids") - def compute_company_ids1(self): + def _compute_company_ids1(self): for record in self: employee_id = self.env['hr.employee'].search([('user_id', '=', record.id)], limit=1) is_admin = self.has_group('base.group_system')