summaryrefslogtreecommitdiff
path: root/addons/web/static/src/css
diff options
context:
space:
mode:
authorNicolas Lempereur <nle@odoo.com>2015-05-06 12:40:15 +0200
committerNicolas Lempereur <nle@odoo.com>2015-05-08 11:59:59 +0200
commita1fab0489466950a62f50925a1d3ad45f70a699a (patch)
treefa3cfd9cc8a540e4f7f3a2249c61f8ab835e7487 /addons/web/static/src/css
parent926aa5bcf9217e9fe687602ce8e5281cfc631a73 (diff)
[FIX] web: view list lines in media print
List view elements were not displayed when printing a list view via the browser interface. Also now, with firefox (and maybe other browser but not with webkit based ones) the page break should not happen in the middle of a row (hence something cutting a sentence vertically on two pages). closes #6581 opw-634588
Diffstat (limited to 'addons/web/static/src/css')
-rw-r--r--addons/web/static/src/css/base.css19
-rw-r--r--addons/web/static/src/css/base.sass12
2 files changed, 31 insertions, 0 deletions
diff --git a/addons/web/static/src/css/base.css b/addons/web/static/src/css/base.css
index 43f7a1239d0..c8a1eec698b 100644
--- a/addons/web/static/src/css/base.css
+++ b/addons/web/static/src/css/base.css
@@ -3060,6 +3060,12 @@ body.oe_single_form .oe_single_form_container {
@media print {
body {
height: auto !important;
+ overflow: visible !important;
+ }
+
+ tr, td {
+ page-break-inside: avoid;
+ page-break-after: auto;
}
.openerp#announcement_bar_table {
@@ -3069,6 +3075,13 @@ body.oe_single_form .oe_single_form_container {
.openerp {
text-shadow: none;
}
+ .openerp.openerp_webclient_container {
+ display: block;
+ height: auto !important;
+ }
+ .openerp .oe-view-manager {
+ display: block;
+ }
.openerp .oe_application, .openerp .oe_view_manager_wrapper {
height: auto !important;
}
@@ -3094,6 +3107,9 @@ body.oe_single_form .oe_single_form_container {
.openerp .oe_notebook > li.ui-tabs-selected {
display: block;
}
+ .openerp .oe_application {
+ width: auto;
+ }
.openerp .oe_application .oe_form_sheet, .openerp .oe_application .oe_form_sheetbg {
border: 0px !important;
box-shadow: 0px 0px 0px;
@@ -3111,6 +3127,9 @@ body.oe_single_form .oe_single_form_container {
.openerp .openerp div.oe_mail_wall {
overflow: hidden !important;
}
+ .openerp .oe-view-manager .oe-view-manager-content {
+ overflow: visible;
+ }
.openerp.openerp_webclient_container {
overflow: visible;
diff --git a/addons/web/static/src/css/base.sass b/addons/web/static/src/css/base.sass
index 476ed2cc746..255559543c5 100644
--- a/addons/web/static/src/css/base.sass
+++ b/addons/web/static/src/css/base.sass
@@ -2524,9 +2524,18 @@ body.oe_single_form
@media print
body
height: auto !important
+ overflow: visible !important
+ tr, td
+ page-break-inside: avoid
+ page-break-after: auto
.openerp#announcement_bar_table
display: none
.openerp
+ &.openerp_webclient_container
+ display: block
+ height: auto !important
+ .oe-view-manager
+ display: block
.oe_application, .oe_view_manager_wrapper
height: auto !important
.oe_application > div > .oe_view_manager > .oe_view_manager_wrapper > div > .oe_view_manager_body
@@ -2554,6 +2563,7 @@ body.oe_single_form
box-shadow: 0px 0px 0px
.oe_list
overflow-x: visible
+ width: auto
.oe_view_manager_current > .oe_view_manager_header
border: 0px !important
box-shadow: 0px 0px 0px
@@ -2562,6 +2572,8 @@ body.oe_single_form
background: none
.openerp div.oe_mail_wall
overflow: hidden !important
+ .oe-view-manager .oe-view-manager-content
+ overflow: visible
.openerp.openerp_webclient_container
overflow: visible
// }}}