From 6fee01f6ce44dcdb0efa6ef4b2e7f44a54487d51 Mon Sep 17 00:00:00 2001 From: benjamin <benjamin@le-filament.com> Date: Thu, 13 Jun 2024 18:58:15 +0200 Subject: [PATCH] [UPD] department --- controllers/endpoint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/endpoint.py b/controllers/endpoint.py index 7d2bef7..3255f88 100644 --- a/controllers/endpoint.py +++ b/controllers/endpoint.py @@ -45,7 +45,7 @@ class AlterincubEndpoint(http.Controller): "theme": p.sector_id.mapped("name") if p.sector_id else [], "start_date": p.start_date.year if p.start_date else None, "address": p.get_formatted_address(), - "department": p.department_id.code if p.department_id else "", + "department": p.department_id.display_name if p.department_id else "", "region": "Auvergne-Rhône-Alpes", "zip": p.zip if p.zip else "", "city": p.city if p.city else "", -- GitLab