From 3f5663e995491e80ab6d4dc0fdef508726f293a5 Mon Sep 17 00:00:00 2001 From: Nicolas Lempereur Date: Mon, 19 Mar 2018 14:11:52 +0100 Subject: [PATCH] [FIX] l10n_ch: ignore stylistic background If user choose custom report type with background, we don't want the background on the ISR report that is intended to be printed on preprinted paper. opw-1820123 closes #23743 --- addons/l10n_ch/static/src/less/report_isr.less | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/addons/l10n_ch/static/src/less/report_isr.less b/addons/l10n_ch/static/src/less/report_isr.less index 913404727d2..83de6851409 100644 --- a/addons/l10n_ch/static/src/less/report_isr.less +++ b/addons/l10n_ch/static/src/less/report_isr.less @@ -19,12 +19,18 @@ body.l10n_ch_isr { } } } -} -/* content outside isr needs margins to not overlap header */ -body.l10n_ch_isr #content_outside_isr { - padding: 15px; - padding-top: 150px; + /* content outside isr needs margins to not overlap header */ + #content_outside_isr { + padding: 15px; + padding-top: 150px; + } + + /* ISR is intended for pre-printed paper, we don't want stylistic background */ + .o_report_layout_background { + background: none; + min-height: 0; + } } body.l10n_ch_isr #isr {