添加功能
This commit is contained in:
@@ -253,6 +253,9 @@ class YuthonHrEmployee(models.Model):
|
||||
('divorced', 'Divorced')
|
||||
], string='Marital Status', groups="hr.group_hr_user", default='single', tracking=True)
|
||||
|
||||
def read_number(self):
|
||||
return self.env['hr.employee'].search_count([('end_comparison', 'in', ['red', 'yellow', 'blue'])])
|
||||
|
||||
def update_role_group_ids(self):
|
||||
employee_ids = self.env["hr.employee"].browse(
|
||||
self._context.get("active_ids", self._context.get("active_id"))
|
||||
|
||||
Reference in New Issue
Block a user