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
1=== added directory 'web_print_from_browser'
2=== added file 'web_print_from_browser/__init__.py'
3--- web_print_from_browser/__init__.py 1970-01-01 00:00:00 +0000
4+++ web_print_from_browser/__init__.py 2013-06-10 12:53:24 +0000
5@@ -0,0 +1,22 @@
6+# -*- encoding: utf-8 -*-
7+##############################################################################
8+#
9+# OpenERP, Open Source Management Solution
10+# This module copyright (C) 2013 Therp BV (<http://therp.nl>)
11+# All Rights Reserved
12+#
13+# This program is free software: you can redistribute it and/or modify
14+# it under the terms of the GNU Affero General Public License as
15+# published by the Free Software Foundation, either version 3 of the
16+# License, or (at your option) any later version.
17+#
18+# This program is distributed in the hope that it will be useful,
19+# but WITHOUT ANY WARRANTY; without even the implied warranty of
20+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21+# GNU Affero General Public License for more details.
22+#
23+# You should have received a copy of the GNU Affero General Public License
24+# along with this program. If not, see <http://www.gnu.org/licenses/>.
25+#
26+##############################################################################
27+
28
29=== added file 'web_print_from_browser/__openerp__.py'
30--- web_print_from_browser/__openerp__.py 1970-01-01 00:00:00 +0000
31+++ web_print_from_browser/__openerp__.py 2013-06-10 12:53:24 +0000
32@@ -0,0 +1,45 @@
33+# -*- encoding: utf-8 -*-
34+##############################################################################
35+#
36+# OpenERP, Open Source Management Solution
37+# This module copyright (C) 2013 Therp BV (<http://therp.nl>)
38+# All Rights Reserved
39+#
40+# This program is free software: you can redistribute it and/or modify
41+# it under the terms of the GNU Affero General Public License as
42+# published by the Free Software Foundation, either version 3 of the
43+# License, or (at your option) any later version.
44+#
45+# This program is distributed in the hope that it will be useful,
46+# but WITHOUT ANY WARRANTY; without even the implied warranty of
47+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
48+# GNU Affero General Public License for more details.
49+#
50+# You should have received a copy of the GNU Affero General Public License
51+# along with this program. If not, see <http://www.gnu.org/licenses/>.
52+#
53+##############################################################################
54+
55+{
56+ 'name': 'Hide OpenERP controls while printing',
57+ 'version': '1.0',
58+ 'description': """ This addons provides a stylesheet that removes the menu
59+ and controls when printing an OpenERP screen through the browser's print
60+ button.""",
61+ 'author': 'Therp BV',
62+ 'website': 'http://www.therp.nl',
63+ "category": "Tools",
64+ "depends": [
65+ 'web',
66+ ],
67+ 'css': [
68+ 'static/src/css/web_print_from_browser.css',
69+ ],
70+ 'data': [
71+ ],
72+ 'js': [
73+ ],
74+ 'installable': True,
75+ 'active': False,
76+ 'certificate': '',
77+}
78
79=== added directory 'web_print_from_browser/static'
80=== added directory 'web_print_from_browser/static/src'
81=== added directory 'web_print_from_browser/static/src/css'
82=== added file 'web_print_from_browser/static/src/css/web_print_from_browser.css'
83--- web_print_from_browser/static/src/css/web_print_from_browser.css 1970-01-01 00:00:00 +0000
84+++ web_print_from_browser/static/src/css/web_print_from_browser.css 2013-06-10 12:53:24 +0000
85@@ -0,0 +1,30 @@
86+@media print
87+{
88+ .view-manager-main-sidebar,
89+ .oe_view_manager_menu_tips,
90+ .oe_vm_switch,
91+ .oe_form_header,
92+ .oe-list-pager,
93+ .oe-listview-content thead tr:first-child,
94+ .oe-listview-header-columns th:first-child,
95+ .oe-listview-header-columns th:nth-child(2),
96+ .oe-record-selector,
97+ .oe-record-edit-link,
98+ .oe-record-delete,
99+ .oe_debug_view,
100+ .oe_searchable_view,
101+ .oe-process-view,
102+ #oe_secondary_menu,
103+ table.main_table > tbody > tr:first-child,
104+ table.main_table > tbody > tr:last-child,
105+ .view-manager-main-content > div[id$=search]
106+ {
107+ display: none;
108+ }
109+ *
110+ {
111+ height: auto !important;
112+ width: auto !important;
113+ overflow: show !important;
114+ }
115+}

Subscribers

People subscribed via source and target branches