Commit c029066b by Damien Moulard

Merge branch '3832-makeups-and-member-status-update-from-proper-branch' into 'dev_cooperatic'

run process target status at the end of update_members_makeups - from proper branch

See merge request !210
parents 326486b1 abb1f931
Pipeline #2438 passed with stage
in 1 minute 26 seconds
...@@ -408,7 +408,13 @@ def update_members_makeups(request): ...@@ -408,7 +408,13 @@ def update_members_makeups(request):
} }
cm.update_member_points(data) cm.update_member_points(data)
# Better to call run_process_target_status now, otherwise partner remains
# in alert until routine is called (every 5 minutes). It is a bit weird for users and
# allocation of rattrapages before the routine is executed will not trigger change to delay state !
# (the parner would have to go back to espace membre and click on "j'affecte mes rattrapage"
# even though it shows 'J'ai 0 rattrapages à effecter' for the delay state change to be eventually triggered)
api = OdooAPI()
api.execute('res.partner', 'run_process_target_status', [])
response = JsonResponse(res) response = JsonResponse(res)
else: else:
res["message"] = "Unauthorized" res["message"] = "Unauthorized"
......
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