From 4e09f70bbf6f604f701c2dd7db8ca78e4e0563c8 Mon Sep 17 00:00:00 2001
From: benjamin <benjamin@le-filament.com>
Date: Tue, 12 Jul 2022 16:16:24 +0200
Subject: [PATCH] [update] invoice template

---
 templates/report_account.xml | 24 ++++++++++++++----------
 1 file changed, 14 insertions(+), 10 deletions(-)

diff --git a/templates/report_account.xml b/templates/report_account.xml
index 6c09e35..1280c6a 100644
--- a/templates/report_account.xml
+++ b/templates/report_account.xml
@@ -7,9 +7,8 @@
         </t>
         <xpath expr="//h2" position="replace">
             <div class="row mb-16">
-                <div class="col-6" />
-                <div class="col-6">
-                    <h2>
+                <div class="col-12">
+                    <h3>
                         <span
                             t-if="o.move_type == 'out_invoice' and o.state == 'posted'"
                         >Facture</span>
@@ -27,7 +26,12 @@
                             t-if="o.move_type == 'in_invoice'"
                         >Facture fournisseur</span>
                         <span t-if="o.name != '/'" t-field="o.name" />
-                    </h2>
+                    </h3>
+                </div>
+            </div>
+            <div class="row mb-16">
+                <div class="col-6" />
+                <div class="col-6">
                     <address
                         t-field="o.partner_id"
                         t-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": True}'
@@ -62,7 +66,7 @@
                     t-if="o.invoice_origin"
                     name="origin"
                 >
-                    <strong>Origine:</strong>
+                    <strong>Devis :</strong>
                     <p class="m-0" t-field="o.invoice_origin" />
                 </div>
                 <div
@@ -70,7 +74,7 @@
                     t-if="o.invoice_date"
                     name="invoice_date"
                 >
-                    <strong>Date de facturation:</strong>
+                    <strong>Date de facturation :</strong>
                     <p class="m-0" t-field="o.invoice_date" />
                 </div>
                 <div
@@ -78,7 +82,7 @@
                     t-if="o.invoice_date_due and o.move_type == 'out_invoice' and o.state == 'posted'"
                     name="due_date"
                 >
-                    <strong>Echéance:</strong>
+                    <strong>Echéance :</strong>
                     <p class="m-0" t-field="o.invoice_date_due" />
                 </div>
 
@@ -87,7 +91,7 @@
                     t-if="o.invoice_user_id"
                     name="referent"
                 >
-                    <strong>Référent:</strong>
+                    <strong>Référent :</strong>
                     <p class="m-0"><span t-field="o.invoice_user_id" /><t
                             t-if="o.invoice_user_id.phone"
                         >, <t t-esc="o.invoice_user_id.phone" /></t></p>
@@ -334,8 +338,8 @@
                                 </t>
                                 <t t-if="len(payments_vals) > 0">
                                     <tr class="border-black">
-                                        <td><strong>Montant dû</strong></td>
-                                        <td class="text-right">
+                                        <td style="background-color: #fff; color: #000;"><strong>Montant dû</strong></td>
+                                        <td class="text-right" style="background-color: #fff; color: #000;">
                                             <span t-field="o.amount_residual" />
                                         </td>
                                     </tr>
-- 
GitLab