Skip to content
Extraits de code Groupes Projets
Valider 4e09f70b rédigé par Benjamin - Le Filament's avatar Benjamin - Le Filament
Parcourir les fichiers

[update] invoice template

parent c42b6cdb
Branches
Étiquettes v1.1.0
Aucune requête de fusion associée trouvée
...@@ -7,9 +7,8 @@ ...@@ -7,9 +7,8 @@
</t> </t>
<xpath expr="//h2" position="replace"> <xpath expr="//h2" position="replace">
<div class="row mb-16"> <div class="row mb-16">
<div class="col-6" /> <div class="col-12">
<div class="col-6"> <h3>
<h2>
<span <span
t-if="o.move_type == 'out_invoice' and o.state == 'posted'" t-if="o.move_type == 'out_invoice' and o.state == 'posted'"
>Facture</span> >Facture</span>
...@@ -27,7 +26,12 @@ ...@@ -27,7 +26,12 @@
t-if="o.move_type == 'in_invoice'" t-if="o.move_type == 'in_invoice'"
>Facture fournisseur</span> >Facture fournisseur</span>
<span t-if="o.name != '/'" t-field="o.name" /> <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 <address
t-field="o.partner_id" t-field="o.partner_id"
t-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": True}' t-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": True}'
...@@ -62,7 +66,7 @@ ...@@ -62,7 +66,7 @@
t-if="o.invoice_origin" t-if="o.invoice_origin"
name="origin" name="origin"
> >
<strong>Origine:</strong> <strong>Devis :</strong>
<p class="m-0" t-field="o.invoice_origin" /> <p class="m-0" t-field="o.invoice_origin" />
</div> </div>
<div <div
...@@ -334,8 +338,8 @@ ...@@ -334,8 +338,8 @@
</t> </t>
<t t-if="len(payments_vals) > 0"> <t t-if="len(payments_vals) > 0">
<tr class="border-black"> <tr class="border-black">
<td><strong>Montant dû</strong></td> <td style="background-color: #fff; color: #000;"><strong>Montant dû</strong></td>
<td class="text-right"> <td class="text-right" style="background-color: #fff; color: #000;">
<span t-field="o.amount_residual" /> <span t-field="o.amount_residual" />
</td> </td>
</tr> </tr>
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter