diff options
| author | Nicolas Lempereur <nle@odoo.com> | 2020-07-20 16:32:00 +0000 |
|---|---|---|
| committer | Nicolas Lempereur <nle@odoo.com> | 2020-07-20 19:30:02 +0000 |
| commit | e8951481b60e02502d76165f60610cc07b845428 (patch) | |
| tree | 5974d42940217924e5224ed537bff9de00f43027 /addons/web | |
| parent | 4147f1d313f64fb6f2746cf4b55da77dbd0c23b0 (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/web')
| -rw-r--r-- | addons/web/views/report_templates.xml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/addons/web/views/report_templates.xml b/addons/web/views/report_templates.xml index da919ff7fc5..ab27478b487 100644 --- a/addons/web/views/report_templates.xml +++ b/addons/web/views/report_templates.xml @@ -143,7 +143,7 @@ </template> <template id="external_layout_background"> - <div t-attf-class="o_company_#{company.id}_layout header"> + <div t-attf-class="o_company_#{company.id}_layout header" t-att-style="report_header_style"> <div class="o_background_header"> <div class="float-right"> <h3 class="mt0 text-right" t-field="company.report_header"/> @@ -185,7 +185,7 @@ </template> <template id="external_layout_boxed"> - <div t-attf-class="header o_company_#{company.id}_layout"> + <div t-attf-class="header o_company_#{company.id}_layout" t-att-style="report_header_style"> <div class="o_boxed_header"> <div class="row mb8"> <div class="col-6"> @@ -227,7 +227,7 @@ </template> <template id="external_layout_clean"> - <div t-attf-class="header o_company_#{company.id}_layout"> + <div t-attf-class="header o_company_#{company.id}_layout" t-att-style="report_header_style"> <div class="o_clean_header"> <div class="row"> <div class="col-6"> @@ -273,7 +273,7 @@ </template> <template id="external_layout_standard"> - <div t-attf-class="header o_company_#{company.id}_layout"> + <div t-attf-class="header o_company_#{company.id}_layout" t-att-style="report_header_style"> <div class="row"> <div class="col-3 mb4"> <img t-if="company.logo" t-att-src="image_data_uri(company.logo)" style="max-height: 45px;" alt="Logo"/> |
