summaryrefslogtreecommitdiff
path: root/addons/l10n_ch
diff options
context:
space:
mode:
authorNicolas Lempereur <nle@odoo.com>2020-07-20 16:32:00 +0000
committerNicolas Lempereur <nle@odoo.com>2020-07-20 19:30:02 +0000
commite8951481b60e02502d76165f60610cc07b845428 (patch)
tree5974d42940217924e5224ed537bff9de00f43027 /addons/l10n_ch
parent4147f1d313f64fb6f2746cf4b55da77dbd0c23b0 (diff)
[FIX] l10n_ch: add padding on QR-BILL header
QR-BILL report has no margin so we can position things exactly where they needs to be according to standard. For example the form must stick at the bottom and have 100% width, so we can't use paperformat margin that would not allow to have 100% width. With this change, we set default padding on header so it match better "European A4" paperformat (that has 5mm top margin and 7mm right and left margin) for stylistic purpose. This is currently not configurable so for custom header size still need view editing to change current values, but this at least make the edition easy. opw-2267041 closes #54717 closes odoo/odoo#54725 X-original-commit: b758a02ae50fa13f090190accce1fa6d1dbde7d2 Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Diffstat (limited to 'addons/l10n_ch')
-rw-r--r--addons/l10n_ch/report/swissqr_report.xml2
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/l10n_ch/report/swissqr_report.xml b/addons/l10n_ch/report/swissqr_report.xml
index 69c149c6f25..71b3c915641 100644
--- a/addons/l10n_ch/report/swissqr_report.xml
+++ b/addons/l10n_ch/report/swissqr_report.xml
@@ -24,6 +24,8 @@
<t t-call="web.external_layout">
<!-- add class to body tag -->
<script>document.body.className += " l10n_ch_qr";</script>
+ <!-- add default margin for header (matching A4 European margin) -->
+ <t t-set="report_header_style">padding-top:6.2mm; padding-left:8.2mm; padding-right:8.2mm;</t>
<t t-set="formated_amount" t-value="'{:,.2f}'.format(o.amount_residual).replace(',','\xa0')"/>