From 6ec77ba6dc047d8f3f05c3923335d6f1c7559ea0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Laporte?= <stephane.laporte@enercoop.org>
Date: Thu, 22 May 2025 15:35:59 +0200
Subject: [PATCH] =?UTF-8?q?[UPD]=20tableau=20de=20r=C3=A9partition=202=20c?=
 =?UTF-8?q?hiffres=20apr=C3=A8s=20la=20virgule=20kWh?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 templates/operation_templates_page.xml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/templates/operation_templates_page.xml b/templates/operation_templates_page.xml
index 370a0cf..af59291 100644
--- a/templates/operation_templates_page.xml
+++ b/templates/operation_templates_page.xml
@@ -451,7 +451,7 @@
                 <tr class="fw-bolder bg-light">
                     <td class="text-uppercase">Surplus</td>
                     <td class="text-end text-nowrap"><t
-                                t-esc="('%.0f' % tSurplus['surplus'])"
+                                t-esc="('%.2f' % tSurplus['surplus']).replace('.', ',')"
                             /> kWh</td>
                     <td class="text-end text-nowrap"><t
                                 t-esc="('%.1f' % tSurplus['percentage']).replace('.', ',')"
@@ -466,7 +466,7 @@
                         >
                         <td><t t-esc="tPartner['name']" /></td>
                         <td class="text-end text-nowrap"><t
-                                    t-esc="('%.0f' % tPartner['autocons'])"
+                                    t-esc="('%.2f' % tPartner['autocons']).replace('.', ',')"
                                 /> kWh</td>
                         <td class="text-end text-nowrap"><t
                                     t-esc="('%.1f' % tPartner['percentage']).replace('.', ',')"
@@ -491,7 +491,7 @@
                                     />
                             </td>
                             <td class="text-end text-nowrap"><t
-                                        t-esc="('%.0f' % tCounter['autocons'])"
+                                        t-esc="('%.2f' % tCounter['autocons']).replace('.', ',')"
                                     /> kWh</td>
                             <td class="text-end text-nowrap"><t
                                         t-esc="('%.1f' % tCounter['percentage']).replace('.', ',')"
-- 
GitLab