Merge lp:~therp-nl/web-addons/web_print_from_browser into lp:~webaddons-core-editors/web-addons/6.1

Proposed by Holger Brunn (Therp)
Status: Merged
Merged at revision: 18
Proposed branch: lp:~therp-nl/web-addons/web_print_from_browser
Merge into: lp:~webaddons-core-editors/web-addons/6.1
Diff against target: 115 lines (+97/-0)
3 files modified
web_print_from_browser/__init__.py (+22/-0)
web_print_from_browser/__openerp__.py (+45/-0)
web_print_from_browser/static/src/css/web_print_from_browser.css (+30/-0)
To merge this branch: bzr merge lp:~therp-nl/web-addons/web_print_from_browser
Reviewer Review Type Date Requested Status
Guewen Baconnier @ Camptocamp code review, no test Approve
Stefan Rijnhart (Opener) test + code review Approve
Review via email: mp+168431@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Stefan Rijnhart (Opener) (stefan-opener) wrote :

Great work! The resulting prints look very nice.

review: Approve (test + code review)
Revision history for this message
Guewen Baconnier @ Camptocamp (gbaconnier-c2c) wrote :

LGTM

review: Approve (code review, no test)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== added directory 'web_print_from_browser'
=== added file 'web_print_from_browser/__init__.py'
--- web_print_from_browser/__init__.py 1970-01-01 00:00:00 +0000
+++ web_print_from_browser/__init__.py 2013-06-10 12:53:24 +0000
@@ -0,0 +1,22 @@
1# -*- encoding: utf-8 -*-
2##############################################################################
3#
4# OpenERP, Open Source Management Solution
5# This module copyright (C) 2013 Therp BV (<http://therp.nl>)
6# All Rights Reserved
7#
8# This program is free software: you can redistribute it and/or modify
9# it under the terms of the GNU Affero General Public License as
10# published by the Free Software Foundation, either version 3 of the
11# License, or (at your option) any later version.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU Affero General Public License for more details.
17#
18# You should have received a copy of the GNU Affero General Public License
19# along with this program. If not, see <http://www.gnu.org/licenses/>.
20#
21##############################################################################
22
023
=== added file 'web_print_from_browser/__openerp__.py'
--- web_print_from_browser/__openerp__.py 1970-01-01 00:00:00 +0000
+++ web_print_from_browser/__openerp__.py 2013-06-10 12:53:24 +0000
@@ -0,0 +1,45 @@
1# -*- encoding: utf-8 -*-
2##############################################################################
3#
4# OpenERP, Open Source Management Solution
5# This module copyright (C) 2013 Therp BV (<http://therp.nl>)
6# All Rights Reserved
7#
8# This program is free software: you can redistribute it and/or modify
9# it under the terms of the GNU Affero General Public License as
10# published by the Free Software Foundation, either version 3 of the
11# License, or (at your option) any later version.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU Affero General Public License for more details.
17#
18# You should have received a copy of the GNU Affero General Public License
19# along with this program. If not, see <http://www.gnu.org/licenses/>.
20#
21##############################################################################
22
23{
24 'name': 'Hide OpenERP controls while printing',
25 'version': '1.0',
26 'description': """ This addons provides a stylesheet that removes the menu
27 and controls when printing an OpenERP screen through the browser's print
28 button.""",
29 'author': 'Therp BV',
30 'website': 'http://www.therp.nl',
31 "category": "Tools",
32 "depends": [
33 'web',
34 ],
35 'css': [
36 'static/src/css/web_print_from_browser.css',
37 ],
38 'data': [
39 ],
40 'js': [
41 ],
42 'installable': True,
43 'active': False,
44 'certificate': '',
45}
046
=== added directory 'web_print_from_browser/static'
=== added directory 'web_print_from_browser/static/src'
=== added directory 'web_print_from_browser/static/src/css'
=== added file 'web_print_from_browser/static/src/css/web_print_from_browser.css'
--- web_print_from_browser/static/src/css/web_print_from_browser.css 1970-01-01 00:00:00 +0000
+++ web_print_from_browser/static/src/css/web_print_from_browser.css 2013-06-10 12:53:24 +0000
@@ -0,0 +1,30 @@
1@media print
2{
3 .view-manager-main-sidebar,
4 .oe_view_manager_menu_tips,
5 .oe_vm_switch,
6 .oe_form_header,
7 .oe-list-pager,
8 .oe-listview-content thead tr:first-child,
9 .oe-listview-header-columns th:first-child,
10 .oe-listview-header-columns th:nth-child(2),
11 .oe-record-selector,
12 .oe-record-edit-link,
13 .oe-record-delete,
14 .oe_debug_view,
15 .oe_searchable_view,
16 .oe-process-view,
17 #oe_secondary_menu,
18 table.main_table > tbody > tr:first-child,
19 table.main_table > tbody > tr:last-child,
20 .view-manager-main-content > div[id$=search]
21 {
22 display: none;
23 }
24 *
25 {
26 height: auto !important;
27 width: auto !important;
28 overflow: show !important;
29 }
30}

Subscribers

People subscribed via source and target branches