[FIX] hr: trigger job count computation on employee archive
opw-676542
This commit is contained in:
+1
-1
@@ -62,7 +62,7 @@ class hr_job(osv.Model):
|
||||
'no_of_employee': fields.function(_get_nbr_employees, string="Current Number of Employees",
|
||||
help='Number of employees currently occupying this job position.',
|
||||
store = {
|
||||
'hr.employee': (_get_job_position, ['job_id'], 10),
|
||||
'hr.employee': (_get_job_position, ['job_id', 'active'], 10),
|
||||
}, type='integer',
|
||||
multi='_get_nbr_employees'),
|
||||
'no_of_recruitment': fields.integer('Expected New Employees', copy=False,
|
||||
|
||||
Reference in New Issue
Block a user