[FIX] account: deduplicate the date string on invoice/refund PDF

Fixup of 1b80454fc26bdcf3bcfb97b37b3bd68d2982310d

closes odoo/odoo#102746

X-original-commit: d93de218effbbffd083b60dc2064bded64c311dc
Signed-off-by: Florian Gilbert (flg) <flg@odoo.com>
Signed-off-by: William André (wan) <wan@odoo.com>
This commit is contained in:
william-andre
2022-10-08 08:48:49 +02:00
parent 7fa1f1dbd0
commit c803e9e231
+2 -2
View File
@@ -63,8 +63,8 @@
<div id="informations" class="row mt-4 mb-4">
<div class="col-auto col-3 mw-100 mb-2" t-if="o.invoice_date" name="invoice_date">
<t t-if="o.move_type == 'out_invoice'"><strong>Invoice Date:</strong></t>
<t t-if="o.move_type == 'out_refund'"><strong>Credit Note Date:</strong></t>
<t t-if="o.move_type == 'out_receipt'"><strong>Receipt Date:</strong></t>
<t t-elif="o.move_type == 'out_refund'"><strong>Credit Note Date:</strong></t>
<t t-elif="o.move_type == 'out_receipt'"><strong>Receipt Date:</strong></t>
<t t-else=""><strong>Date:</strong></t>
<p class="m-0" t-field="o.invoice_date"/>
</div>