From aae3d397b39a8a8d394a6e98cbc82b15fdb8670b Mon Sep 17 00:00:00 2001 From: "Andrea Grazioso (agr-odoo)" Date: Tue, 27 Jun 2023 08:06:09 +0000 Subject: [PATCH] [FIX] l10n_din5008: style fixes Configure Document Layout for Paper Format European A4 for DIN 5008 Type A Set layout to DIN 5008 Create an invoice Open preview (portal) Issues: - portal preview contains a lot of white space on the right hand side - Invoice terms and payment reference are not correctly aligned https://wiki.documentfoundation.org/Videos/Business_letter_according_to_DIN_5008#Margins opw-3279157 closes odoo/odoo#127743 X-original-commit: 1ed905666a6fa191c48dec576236942cc2cfb006 Signed-off-by: Florian Gilbert (flg) --- addons/l10n_din5008/static/src/scss/report_din5008.scss | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/addons/l10n_din5008/static/src/scss/report_din5008.scss b/addons/l10n_din5008/static/src/scss/report_din5008.scss index 941162f1da8..aa645e24adb 100644 --- a/addons/l10n_din5008/static/src/scss/report_din5008.scss +++ b/addons/l10n_din5008/static/src/scss/report_din5008.scss @@ -3,6 +3,10 @@ margin-left: -1rem; font-size: 9pt; + .container-fluid & { // center the invoice in portal preview + margin-left: auto; + margin-right: auto; + } &.header { table { width: 100%; @@ -55,7 +59,7 @@ } } } - h2 { + h2, [name=payment_communication], [name=payment_term], [name=comment], [name=note], [name=incoterm] { margin-left: 5mm; margin-right: 10mm; margin-top: 8.46mm;