summaryrefslogtreecommitdiff
path: root/addons/web/static/src/scss/report.scss
diff options
context:
space:
mode:
authorSébastien Theys <seb@odoo.com>2018-12-03 13:16:52 +0000
committerSébastien Theys <seb@odoo.com>2018-12-03 13:16:52 +0000
commitdc4a9d3db79ea24fb0350fa547e3a5cb2159440e (patch)
tree96c4569db0bb1bac6e5686a5ac38d6279f97ece3 /addons/web/static/src/scss/report.scss
parent869f99b704bc788111d9e37b1202a46cb564bde7 (diff)
[FIX] account,purchase,repair,sale,web: fix report layouts
Following BS4 migration and adding sections and notes. ===== Document templates: - Remove margin from <p> in "informations" to allow them to be correctly centered vertically on their container. - Also add a mt- and mb- on their <div> to better handle them going to a new line when there are too many of them. - Add class for section and note to be able to customize them in layouts. - Add class for price_total to be able to customize it in layouts instead of relying on :last-child. - Add "page-break-inside: avoid;" on the "total" table to not split it between pages when it can be avoided. - Fix sale report template "Informations" to use col-auto just like invoice See 6b8d7bb6d68221f77dabb223de4160fdfb87a6f8 ===== Boxed layout: - fix section & note style - fix borders in general - fix the total table Background layout: - fix section style - fix the total table Clean layout: - fix page number vertical align task-1889346 closes odoo/odoo#27782
Diffstat (limited to 'addons/web/static/src/scss/report.scss')
-rw-r--r--addons/web/static/src/scss/report.scss15
1 files changed, 15 insertions, 0 deletions
diff --git a/addons/web/static/src/scss/report.scss b/addons/web/static/src/scss/report.scss
index 37a7630225b..e901b5b9364 100644
--- a/addons/web/static/src/scss/report.scss
+++ b/addons/web/static/src/scss/report.scss
@@ -44,3 +44,18 @@ body {
.o_underline {
text-decoration: underline;
}
+
+/*Total table*/
+div#total {
+ page-break-inside: avoid;
+ table {
+ tr {
+ &.o_subtotal,
+ &.o_total {
+ td {
+ border-top: 1px solid black !important;
+ }
+ }
+ }
+ }
+}