[FIX] hr: trigger job count computation on employee archive

opw-676542
This commit is contained in:
Damien Bouvy
2016-05-20 13:43:32 +02:00
parent d9073a7773
commit b9bca7909a
+1 -1
View File
@@ -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,