summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorBruno Zanotti (ADHOC) <bz@adhoc.com.ar>2020-12-18 14:47:48 +0000
committerBruno Zanotti (ADHOC) <bz@adhoc.com.ar>2021-02-15 14:29:29 +0000
commit8b8eac4cbbead9330b068d5febf72595c4486fd5 (patch)
tree49d06e33a670e0a7f07d40d15e6c0decadf80a25 /addons
parent9aeba7dec95b397ef894f5a181920dff269d6ad4 (diff)
[FIX] l10n_ar: fix pre-printed invoice report
Fix pre-printed report so that invoice date remains in same position as if not pre-printed closes odoo/odoo#66182 X-original-commit: ab99aa426f5cd317ea69f26c213635b0ab39e716 Signed-off-by: Josse Colpaert <jco@openerp.com>
Diffstat (limited to 'addons')
-rw-r--r--addons/l10n_ar/views/report_invoice.xml12
1 files changed, 6 insertions, 6 deletions
diff --git a/addons/l10n_ar/views/report_invoice.xml b/addons/l10n_ar/views/report_invoice.xml
index 661c7d4c5ce..d509aad9cc5 100644
--- a/addons/l10n_ar/views/report_invoice.xml
+++ b/addons/l10n_ar/views/report_invoice.xml
@@ -4,19 +4,19 @@
<!-- this header can be used on any Argentinean report, to be useful some variables should be passed -->
<template id="custom_header">
<div>
- <div class="row" t-if="not pre_printed_report">
- <div name="left-upper-side" class="col-5">
+ <div class="row">
+ <div name="left-upper-side" class="col-5" t-if="not pre_printed_report">
<img t-if="o.company_id.logo" t-att-src="image_data_uri(o.company_id.logo)" style="max-height: 45px;" alt="Logo"/>
</div>
<div name="center-upper" class="col-2 text-center" t-att-style="'color: %s;' % o.company_id.primary_color">
<span style="display: inline-block; text-align: center; line-height: 8px;">
<h1 style="line-height: 25px;">
- <strong><span t-esc="document_letter"/></strong>
+ <strong><span t-esc="not pre_printed_report and document_letter or '&#160;'"/></strong>
</h1>
- <span style="font-size: x-small;" t-esc="document_legend"/>
+ <span style="font-size: x-small;" t-esc="not pre_printed_report and document_legend or '&#160;'"/>
</span>
</div>
- <div name="right-upper-side" class="col-5 text-right">
+ <div name="right-upper-side" class="col-5 text-right" t-if="not pre_printed_report">
<!-- (6) Titulo de Documento -->
<h4 t-att-style="'color: %s;' % o.company_id.primary_color"><strong>
@@ -51,8 +51,8 @@
<t t-if="not pre_printed_report">
<!-- (7) Numero punto venta - (8) numero de documento -->
<span t-att-style="'color: %s;' % o.company_id.secondary_color">Nro: </span><span t-esc="report_number"/>
- <br/>
</t>
+ <br/>
<!-- (9) Fecha -->
<span t-att-style="'color: %s;' % o.company_id.secondary_color">Date: </span><span t-esc="report_date" t-options='{"widget": "date"}'/>