Commit 26fb019c by Yvon Kerdoncuff

#7647 : on adm bdm, properly display correct nb of makeups after moving to ftop shift

parent 9293efef
Pipeline #4115 failed with stage
in 0 seconds
...@@ -597,8 +597,10 @@ def shift_subscription(request): ...@@ -597,8 +597,10 @@ def shift_subscription(request):
f = ['id', 'name'] f = ['id', 'name']
res["shift_template"] = api.search_read('shift.template', c, f)[0] res["shift_template"] = api.search_read('shift.template', c, f)[0]
c = [['id', '=', partner_id]] c = [['id', '=', partner_id]]
f = ['cooperative_state'] f = ['cooperative_state', 'makeups_to_do']
res["cooperative_state"] = api.search_read('res.partner', c, f)[0]['cooperative_state'] m = api.search_read('res.partner', c, f)[0]
res["cooperative_state"] = m['cooperative_state']
res["makeups_to_do"] = m['makeups_to_do']
coop_logger.info("Resultat shift_subscription : %s (données reçues = %s)", str(res), str(data)) coop_logger.info("Resultat shift_subscription : %s (données reçues = %s)", str(res), str(data))
response = JsonResponse(res) response = JsonResponse(res)
else: else:
......
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