mirror of https://github.com/OCA/web.git
[ADD] web_print_from_browser: addons to get a proper print of only the data shown in an OpenERP screen
commit
4db1126f0f
|
@ -0,0 +1,22 @@
|
||||||
|
# -*- encoding: utf-8 -*-
|
||||||
|
##############################################################################
|
||||||
|
#
|
||||||
|
# OpenERP, Open Source Management Solution
|
||||||
|
# This module copyright (C) 2013 Therp BV (<http://therp.nl>)
|
||||||
|
# All Rights Reserved
|
||||||
|
#
|
||||||
|
# This program is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU Affero General Public License as
|
||||||
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
|
# License, or (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU Affero General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
##############################################################################
|
||||||
|
|
|
@ -0,0 +1,45 @@
|
||||||
|
# -*- encoding: utf-8 -*-
|
||||||
|
##############################################################################
|
||||||
|
#
|
||||||
|
# OpenERP, Open Source Management Solution
|
||||||
|
# This module copyright (C) 2013 Therp BV (<http://therp.nl>)
|
||||||
|
# All Rights Reserved
|
||||||
|
#
|
||||||
|
# This program is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU Affero General Public License as
|
||||||
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
|
# License, or (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU Affero General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
##############################################################################
|
||||||
|
|
||||||
|
{
|
||||||
|
'name': 'Hide OpenERP controls while printing',
|
||||||
|
'version': '1.0',
|
||||||
|
'description': """ This addons provides a stylesheet that removes the menu
|
||||||
|
and controls when printing an OpenERP screen through the browser's print
|
||||||
|
button.""",
|
||||||
|
'author': 'Therp BV',
|
||||||
|
'website': 'http://www.therp.nl',
|
||||||
|
"category": "Tools",
|
||||||
|
"depends": [
|
||||||
|
'web',
|
||||||
|
],
|
||||||
|
'css': [
|
||||||
|
'static/src/css/web_print_from_browser.css',
|
||||||
|
],
|
||||||
|
'data': [
|
||||||
|
],
|
||||||
|
'js': [
|
||||||
|
],
|
||||||
|
'installable': True,
|
||||||
|
'active': False,
|
||||||
|
'certificate': '',
|
||||||
|
}
|
|
@ -0,0 +1,30 @@
|
||||||
|
@media print
|
||||||
|
{
|
||||||
|
.view-manager-main-sidebar,
|
||||||
|
.oe_view_manager_menu_tips,
|
||||||
|
.oe_vm_switch,
|
||||||
|
.oe_form_header,
|
||||||
|
.oe-list-pager,
|
||||||
|
.oe-listview-content thead tr:first-child,
|
||||||
|
.oe-listview-header-columns th:first-child,
|
||||||
|
.oe-listview-header-columns th:nth-child(2),
|
||||||
|
.oe-record-selector,
|
||||||
|
.oe-record-edit-link,
|
||||||
|
.oe-record-delete,
|
||||||
|
.oe_debug_view,
|
||||||
|
.oe_searchable_view,
|
||||||
|
.oe-process-view,
|
||||||
|
#oe_secondary_menu,
|
||||||
|
table.main_table > tbody > tr:first-child,
|
||||||
|
table.main_table > tbody > tr:last-child,
|
||||||
|
.view-manager-main-content > div[id$=search]
|
||||||
|
{
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
*
|
||||||
|
{
|
||||||
|
height: auto !important;
|
||||||
|
width: auto !important;
|
||||||
|
overflow: show !important;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue