Commit e2227909 by François

Call res.partner.run_process_target_status() at the end of record_absences (members)

parent 1c77c4b9
Pipeline #1450 passed with stage
in 1 minute 27 seconds
......@@ -1255,7 +1255,10 @@ class CagetteServices(models.Model):
if int(_h) < 21:
ids.append(int(r['id']))
f = {'state': absence_status}
return {'update': api.update('shift.registration', ids, f), 'reg_shift': res}
update_shift_reg_result = {'update': api.update('shift.registration', ids, f), 'reg_shift': res}
if update_shift_reg_result['update'] is True:
update_shift_reg_result['process_status_res'] = api.execute('res.partner','run_process_target_status', [])
return update_shift_reg_result
@staticmethod
def close_ftop_service():
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment