[IMP] Improved code to based on printing on browser by click Ctrl+P.

bzr revid: jra@tinyerp.com-20121019090746-do2pmc8z5hvoh8l7
This commit is contained in:
Jiten (OpenERP) 2012-10-19 14:37:46 +05:30
commit 68e66d2dfb
6 changed files with 67 additions and 5 deletions

View File

@ -2927,11 +2927,33 @@ div.ui-widget-overlay {
}
@media print {
.oe_header_row, ul.oe_header, div.oe_mail_thread_action, .oe_mail_recthread_actions, .oe_button_box, .oe_form button, button.oe_invite, .oe_form header {
.oe_header_row, ul.oe_header, div.oe_mail_thread_action, .oe_mail_recthread_actions, .oe_button_box, .oe_form button, button.oe_invite, .oe_form header, .openerp .oe_notebook > li.ui-state-default {
display: none;
}
.openerp .oe_application .oe_form_sheet {
.oe_list_content button, .oe_list_content input[type=checkbox] {
display: none;
}
.openerp .tree_header button {
display: none;
}
.openerp .oe_notebook > li.ui-tabs-selected {
display: block;
}
.openerp .oe_application .oe_form_sheet, .openerp .oe_application .oe_form_sheetbg {
border: none;
}
.openerp div.oe_mail_wall {
overflow: hidden !important;
}
.oe_mail .oe_mail_thread_msg .oe_mail_unread, .oe_mail_fetch_more {
display: none;
}
.openerp {
text-shadow: none;
}
}

View File

@ -2314,10 +2314,25 @@ div.ui-widget-overlay
@include radius(3px)
@media print
.oe_header_row, ul.oe_header, div.oe_mail_thread_action, .oe_mail_recthread_actions, .oe_button_box, .oe_form button, button.oe_invite, .oe_form header
.oe_header_row, ul.oe_header, div.oe_mail_thread_action, .oe_mail_recthread_actions, .oe_button_box, .oe_form button, button.oe_invite, .oe_form header, .openerp .oe_notebook > li.ui-state-default
display: none
.openerp .oe_application .oe_form_sheet
border: none
.oe_list_content
button, input[type=checkbox]
display: none
.openerp
.tree_header button
display: none
.oe_notebook > li.ui-tabs-selected
display: block
.oe_application
.oe_form_sheet, .oe_form_sheetbg
border: none
.openerp div.oe_mail_wall
overflow: hidden !important
.oe_mail .oe_mail_thread_msg .oe_mail_unread, .oe_mail_fetch_more
display: none
.openerp
text-shadow: none
// au BufWritePost,FileWritePost *.sass :!sass --style expanded --line-numbers <afile> > "%:p:r.css"
// vim:tabstop=4:shiftwidth=4:softtabstop=4:fdm=marker:

View File

@ -1053,3 +1053,11 @@ div.openerp .dhx_cal_editor textarea {
.openerp .dhx_cal_event .dhx_header, .openerp .dhx_cal_event .dhx_header {
display:none;
}
@media print {
div.dhx_cal_navline .dhx_cal_tab, div.dhx_cal_navline .dhx_cal_prev_button, div.dhx_cal_navline .dhx_cal_next_button, div.dhx_cal_navline .dhx_cal_today_button{
display: none;
}
.openerp .dhx_cal_data {
overflow-y: hidden !important;
}
}

View File

@ -7,3 +7,11 @@
position: absolute;
top: 5px;
}
@media print {
.oe_gantt button {
display: none;
}
.oe_gantt > table > tbody > tr > td > div > div {
overflow: hidden !important;
}
}

View File

@ -609,3 +609,9 @@
-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 1px rgba(255, 255, 255, 0.8) inset;
-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 1px rgba(255, 255, 255, 0.8) inset;
}
@media print {
.oe_kanban_groups button {
display: none;
}
}

View File

@ -502,6 +502,9 @@
@include vertical-gradient(#f6f6f6, #e3e3e3)
@include box-shadow((0 1px 2px rgba(0, 0, 0, .1), 0 1px 1px rgba(255, 255, 255, .8) inset))
@media print
.oe_kanban_groups button
display: none
// au BufWritePost,FileWritePost *.sass :!sass --style expanded --line-numbers <afile> > "%:p:r.css"
// vim:tabstop=4:shiftwidth=4:softtabstop=4:fdm=marker: