Commit ae2cb3df by Félicie

compagny_code added

parent a7ecd0d6
Pipeline #1468 passed with stage
in 1 minute 33 seconds
...@@ -119,9 +119,10 @@ def get_list_shift_calendar(request, partner_id): ...@@ -119,9 +119,10 @@ def get_list_shift_calendar(request, partner_id):
event["id"] = value['id'] event["id"] = value['id']
smax = int(value['seats_available']) + int(value['seats_reserved']) smax = int(value['seats_available']) + int(value['seats_reserved'])
title_prefix = '- ' value['address_id'] = getattr(settings, 'COMPANY_CODE', '')
title_prefix = ' - '
if len(value['address_id']) == 2 and ',' in value['address_id'][1]: if len(value['address_id']) == 2 and ',' in value['address_id'][1]:
title_prefix = "- " title_prefix = str(value['address_id'][1]).split(",")[1] + " --"
event["title"] = title_prefix + str(value['seats_reserved']) + "/" + str(smax) event["title"] = title_prefix + str(value['seats_reserved']) + "/" + str(smax)
......
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