Merge lp:~camptocamp/sale-reports/sale-reports-add-so-webkit into lp:~sale-core-editors/sale-reports/7.0
- sale-reports-add-so-webkit
- Merge into 7.0
Status: | Merged |
---|---|
Merged at revision: | 10 |
Proposed branch: | lp:~camptocamp/sale-reports/sale-reports-add-so-webkit |
Merge into: | lp:~sale-core-editors/sale-reports/7.0 |
Diff against target: |
818 lines (+765/-0) 10 files modified
sale_order_webkit/__init__.py (+22/-0) sale_order_webkit/__openerp__.py (+46/-0) sale_order_webkit/i18n/fr.po (+98/-0) sale_order_webkit/i18n/sale_order_webkit.pot (+98/-0) sale_order_webkit/report/__init__.py (+22/-0) sale_order_webkit/report/sale_order.mako (+269/-0) sale_order_webkit/report/sale_order.py (+41/-0) sale_order_webkit/sale.py (+72/-0) sale_order_webkit/sale_report.xml (+13/-0) sale_order_webkit/view/sale_view.xml (+84/-0) |
To merge this branch: | bzr merge lp:~camptocamp/sale-reports/sale-reports-add-so-webkit |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Niels Huylebroeck (community) | Approve | ||
Guewen Baconnier @ Camptocamp | code review, no test | Approve | |
Alexandre Fayolle - camptocamp | code review, no test | Pending | |
Review via email: mp+144875@code.launchpad.net |
This proposal supersedes a proposal from 2013-01-24.
Commit message
Description of the change
Port of sale order webkit report + add HTML not and sale conditions
+ fix file licence
Yannick Vaucher @ Camptocamp (yvaucher-c2c) wrote : Posted in a previous version of this proposal | # |
Alexandre Fayolle - camptocamp (alexandre-fayolle-c2c) wrote : Posted in a previous version of this proposal | # |
628 + if company_vat:
629 + return company_vat
630 + else:
631 + return False
I think this can be rewritten as "return company_vat"
Nicolas Bessi - Camptocamp (nbessi-c2c-deactivatedaccount) wrote : | # |
Just fixed the if statement
Guewen Baconnier @ Camptocamp (gbaconnier-c2c) wrote : | # |
LGTM
Nicolas Bessi - Camptocamp (nbessi-c2c-deactivatedaccount) wrote : | # |
Hello,
If nobody has an objection can we merge this module. It starts to be blocking.
Regards
Nicolas
Niels Huylebroeck (red15) wrote : | # |
Considering the changes in the v7 for the partner address it would be advised to also use the date formatting as used in the default sale order.
In the sale/report/
Considering the blocking nature of this merge I will give it approve and try to merge it, I just thought it could help you guys in the future for more compatibility with the rest of openerp.
Niels Huylebroeck (red15) wrote : | # |
Just noticed that you have not yet committed (at least not here) the module base_headers_webkit ?
Nicolas Bessi - Camptocamp (nbessi-c2c-deactivatedaccount) wrote : | # |
Hello,
the header are in this branch:
https:/
Regards
Nicolas
Alexandre Fayolle - camptocamp (alexandre-fayolle-c2c) : Posted in a previous version of this proposal | # |
Nicolas Bessi - Camptocamp (nbessi-c2c-deactivatedaccount) wrote : Posted in a previous version of this proposal | # |
Hello,
This MP has been approved and merged by Alexandre Fayolle indirectly with:
https:/
Regards
Preview Diff
1 | === added directory 'sale_order_webkit' | |||
2 | === added file 'sale_order_webkit/__init__.py' | |||
3 | --- sale_order_webkit/__init__.py 1970-01-01 00:00:00 +0000 | |||
4 | +++ sale_order_webkit/__init__.py 2013-01-25 09:44:22 +0000 | |||
5 | @@ -0,0 +1,22 @@ | |||
6 | 1 | # -*- coding: utf-8 -*- | ||
7 | 2 | ############################################################################## | ||
8 | 3 | # | ||
9 | 4 | # Copyright (c) 2011 Camptocamp SA (http://www.camptocamp.com) | ||
10 | 5 | # @author Nicolas Bessi, Vincent Renaville, Guewen Baconnier | ||
11 | 6 | # | ||
12 | 7 | # This program is free software: you can redistribute it and/or modify | ||
13 | 8 | # it under the terms of the GNU Affero General Public License as | ||
14 | 9 | # published by the Free Software Foundation, either version 3 of the | ||
15 | 10 | # License, or (at your option) any later version. | ||
16 | 11 | # | ||
17 | 12 | # This program is distributed in the hope that it will be useful, | ||
18 | 13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
19 | 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
20 | 15 | # GNU Affero General Public License for more details. | ||
21 | 16 | # | ||
22 | 17 | # You should have received a copy of the GNU Affero General Public License | ||
23 | 18 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
24 | 19 | # | ||
25 | 20 | ############################################################################## | ||
26 | 21 | from . import sale | ||
27 | 22 | from . import report | ||
28 | 0 | 23 | ||
29 | === added file 'sale_order_webkit/__openerp__.py' | |||
30 | --- sale_order_webkit/__openerp__.py 1970-01-01 00:00:00 +0000 | |||
31 | +++ sale_order_webkit/__openerp__.py 2013-01-25 09:44:22 +0000 | |||
32 | @@ -0,0 +1,46 @@ | |||
33 | 1 | # -*- coding: utf-8 -*- | ||
34 | 2 | ############################################################################## | ||
35 | 3 | # | ||
36 | 4 | # Copyright (c) 2011 Camptocamp SA (http://www.camptocamp.com) | ||
37 | 5 | # @author Nicolas Bessi, Vincent Renaville, Guewen Baconnier | ||
38 | 6 | # | ||
39 | 7 | # This program is free software: you can redistribute it and/or modify | ||
40 | 8 | # it under the terms of the GNU Affero General Public License as | ||
41 | 9 | # published by the Free Software Foundation, either version 3 of the | ||
42 | 10 | # License, or (at your option) any later version. | ||
43 | 11 | # | ||
44 | 12 | # This program is distributed in the hope that it will be useful, | ||
45 | 13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
46 | 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
47 | 15 | # GNU Affero General Public License for more details. | ||
48 | 16 | # | ||
49 | 17 | # You should have received a copy of the GNU Affero General Public License | ||
50 | 18 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
51 | 19 | # | ||
52 | 20 | ############################################################################## | ||
53 | 21 | |||
54 | 22 | {'name': 'Sales Order Report using Webkit Library', | ||
55 | 23 | 'version': '1.0.1', | ||
56 | 24 | 'category': 'Reports/Webkit', | ||
57 | 25 | 'description': """ | ||
58 | 26 | Sale order webkit | ||
59 | 27 | ################# | ||
60 | 28 | |||
61 | 29 | * Replaces the legacy RML Quotation/Sales Order report by a brand new webkit report. | ||
62 | 30 | * Add header and footer notes | ||
63 | 31 | * Add HTML note on Sale Order lines | ||
64 | 32 | |||
65 | 33 | Depends on base_header_webkit community addon available here: | ||
66 | 34 | `https://launchpad.net/webkit-utils <https://launchpad.net/webkit-utils>`_ | ||
67 | 35 | """, | ||
68 | 36 | 'author': 'Camptocamp', | ||
69 | 37 | 'website': 'http://www.camptocamp.com', | ||
70 | 38 | 'depends': ['base', 'report_webkit', 'base_headers_webkit', 'sale'], | ||
71 | 39 | 'init_xml': [], | ||
72 | 40 | 'update_xml': ['sale_report.xml', | ||
73 | 41 | 'view/sale_view.xml'], | ||
74 | 42 | 'demo_xml': [], | ||
75 | 43 | 'test': [], | ||
76 | 44 | 'installable': True, | ||
77 | 45 | 'active': False, | ||
78 | 46 | } | ||
79 | 0 | 47 | ||
80 | === added directory 'sale_order_webkit/i18n' | |||
81 | === added file 'sale_order_webkit/i18n/fr.po' | |||
82 | --- sale_order_webkit/i18n/fr.po 1970-01-01 00:00:00 +0000 | |||
83 | +++ sale_order_webkit/i18n/fr.po 2013-01-25 09:44:22 +0000 | |||
84 | @@ -0,0 +1,98 @@ | |||
85 | 1 | # Translation of OpenERP Server. | ||
86 | 2 | # This file contains the translation of the following modules: | ||
87 | 3 | # * sale_order_webkit | ||
88 | 4 | # | ||
89 | 5 | msgid "" | ||
90 | 6 | msgstr "" | ||
91 | 7 | "Project-Id-Version: OpenERP Server 6.0.3\n" | ||
92 | 8 | "Report-Msgid-Bugs-To: support@openerp.com\n" | ||
93 | 9 | "POT-Creation-Date: 2011-12-12 11:13+0000\n" | ||
94 | 10 | "PO-Revision-Date: 2011-12-12 11:13+0000\n" | ||
95 | 11 | "Last-Translator: <>\n" | ||
96 | 12 | "Language-Team: \n" | ||
97 | 13 | "MIME-Version: 1.0\n" | ||
98 | 14 | "Content-Type: text/plain; charset=UTF-8\n" | ||
99 | 15 | "Content-Transfer-Encoding: \n" | ||
100 | 16 | "Plural-Forms: \n" | ||
101 | 17 | |||
102 | 18 | #. module: sale_order_webkit | ||
103 | 19 | #: report:addons/sale_order_webkit/report/sale_order.mako:78 | ||
104 | 20 | msgid "Your Reference" | ||
105 | 21 | msgstr "Votre Référence" | ||
106 | 22 | |||
107 | 23 | #. module: sale_order_webkit | ||
108 | 24 | #: report:addons/sale_order_webkit/report/sale_order.mako:35 | ||
109 | 25 | msgid "Fax" | ||
110 | 26 | msgstr "Fax" | ||
111 | 27 | |||
112 | 28 | #. module: sale_order_webkit | ||
113 | 29 | #: report:addons/sale_order_webkit/report/sale_order.mako:32 | ||
114 | 30 | msgid "Tel" | ||
115 | 31 | msgstr "Tél" | ||
116 | 32 | |||
117 | 33 | #. module: sale_order_webkit | ||
118 | 34 | #: report:addons/sale_order_webkit/report/sale_order.mako:94 | ||
119 | 35 | msgid "Description" | ||
120 | 36 | msgstr "Description" | ||
121 | 37 | |||
122 | 38 | #. module: sale_order_webkit | ||
123 | 39 | #: report:addons/sale_order_webkit/report/sale_order.mako:79 | ||
124 | 40 | msgid "Quotation Date" | ||
125 | 41 | msgstr "Date du devis" | ||
126 | 42 | |||
127 | 43 | #. module: sale_order_webkit | ||
128 | 44 | #: report:addons/sale_order_webkit/report/sale_order.mako:99 | ||
129 | 45 | msgid "Price" | ||
130 | 46 | msgstr "Prix" | ||
131 | 47 | |||
132 | 48 | #. module: sale_order_webkit | ||
133 | 49 | #: report:addons/sale_order_webkit/report/sale_order.mako:79 | ||
134 | 50 | msgid "Date Ordered" | ||
135 | 51 | msgstr "Date de commande" | ||
136 | 52 | |||
137 | 53 | #. module: sale_order_webkit | ||
138 | 54 | #: report:addons/sale_order_webkit/report/sale_order.mako:81 | ||
139 | 55 | msgid "Payment Term" | ||
140 | 56 | msgstr "Condition de règlement" | ||
141 | 57 | |||
142 | 58 | #. module: sale_order_webkit | ||
143 | 59 | #: report:addons/sale_order_webkit/report/sale_order.mako:38 | ||
144 | 60 | msgid "E-mail" | ||
145 | 61 | msgstr "E-mail" | ||
146 | 62 | |||
147 | 63 | #. module: sale_order_webkit | ||
148 | 64 | #: report:addons/sale_order_webkit/report/sale_order.mako:74 | ||
149 | 65 | msgid "Quotation N°" | ||
150 | 66 | msgstr "Devis N°" | ||
151 | 67 | |||
152 | 68 | #. module: sale_order_webkit | ||
153 | 69 | #: report:addons/sale_order_webkit/report/sale_order.mako:97 | ||
154 | 70 | msgid "Unit Price" | ||
155 | 71 | msgstr "Prix unitaire" | ||
156 | 72 | |||
157 | 73 | #. module: sale_order_webkit | ||
158 | 74 | #: report:addons/sale_order_webkit/report/sale_order.mako:74 | ||
159 | 75 | msgid "Order N°" | ||
160 | 76 | msgstr "N° de commande" | ||
161 | 77 | |||
162 | 78 | #. module: sale_order_webkit | ||
163 | 79 | #: report:addons/sale_order_webkit/report/sale_order.mako:98 | ||
164 | 80 | msgid "Disc.(%)" | ||
165 | 81 | msgstr "Rem.(%)" | ||
166 | 82 | |||
167 | 83 | #. module: sale_order_webkit | ||
168 | 84 | #: report:addons/sale_order_webkit/report/sale_order.mako:80 | ||
169 | 85 | msgid "Salesman" | ||
170 | 86 | msgstr "Vendeur" | ||
171 | 87 | |||
172 | 88 | #. module: sale_order_webkit | ||
173 | 89 | #: report:addons/sale_order_webkit/report/sale_order.mako:41 | ||
174 | 90 | #: report:addons/sale_order_webkit/report/sale_order.mako:95 | ||
175 | 91 | msgid "VAT" | ||
176 | 92 | msgstr "TVA" | ||
177 | 93 | |||
178 | 94 | #. module: sale_order_webkit | ||
179 | 95 | #: report:addons/sale_order_webkit/report/sale_order.mako:96 | ||
180 | 96 | msgid "Quantity" | ||
181 | 97 | msgstr "Quantité" | ||
182 | 98 | |||
183 | 0 | 99 | ||
184 | === added file 'sale_order_webkit/i18n/sale_order_webkit.pot' | |||
185 | --- sale_order_webkit/i18n/sale_order_webkit.pot 1970-01-01 00:00:00 +0000 | |||
186 | +++ sale_order_webkit/i18n/sale_order_webkit.pot 2013-01-25 09:44:22 +0000 | |||
187 | @@ -0,0 +1,98 @@ | |||
188 | 1 | # Translation of OpenERP Server. | ||
189 | 2 | # This file contains the translation of the following modules: | ||
190 | 3 | # * sale_order_webkit | ||
191 | 4 | # | ||
192 | 5 | msgid "" | ||
193 | 6 | msgstr "" | ||
194 | 7 | "Project-Id-Version: OpenERP Server 6.0.3\n" | ||
195 | 8 | "Report-Msgid-Bugs-To: support@openerp.com\n" | ||
196 | 9 | "POT-Creation-Date: 2011-12-12 11:13+0000\n" | ||
197 | 10 | "PO-Revision-Date: 2011-12-12 11:13+0000\n" | ||
198 | 11 | "Last-Translator: <>\n" | ||
199 | 12 | "Language-Team: \n" | ||
200 | 13 | "MIME-Version: 1.0\n" | ||
201 | 14 | "Content-Type: text/plain; charset=UTF-8\n" | ||
202 | 15 | "Content-Transfer-Encoding: \n" | ||
203 | 16 | "Plural-Forms: \n" | ||
204 | 17 | |||
205 | 18 | #. module: sale_order_webkit | ||
206 | 19 | #: report:addons/sale_order_webkit/report/sale_order.mako:78 | ||
207 | 20 | msgid "Your Reference" | ||
208 | 21 | msgstr "" | ||
209 | 22 | |||
210 | 23 | #. module: sale_order_webkit | ||
211 | 24 | #: report:addons/sale_order_webkit/report/sale_order.mako:35 | ||
212 | 25 | msgid "Fax" | ||
213 | 26 | msgstr "" | ||
214 | 27 | |||
215 | 28 | #. module: sale_order_webkit | ||
216 | 29 | #: report:addons/sale_order_webkit/report/sale_order.mako:32 | ||
217 | 30 | msgid "Tel" | ||
218 | 31 | msgstr "" | ||
219 | 32 | |||
220 | 33 | #. module: sale_order_webkit | ||
221 | 34 | #: report:addons/sale_order_webkit/report/sale_order.mako:94 | ||
222 | 35 | msgid "Description" | ||
223 | 36 | msgstr "" | ||
224 | 37 | |||
225 | 38 | #. module: sale_order_webkit | ||
226 | 39 | #: report:addons/sale_order_webkit/report/sale_order.mako:79 | ||
227 | 40 | msgid "Quotation Date" | ||
228 | 41 | msgstr "" | ||
229 | 42 | |||
230 | 43 | #. module: sale_order_webkit | ||
231 | 44 | #: report:addons/sale_order_webkit/report/sale_order.mako:99 | ||
232 | 45 | msgid "Price" | ||
233 | 46 | msgstr "" | ||
234 | 47 | |||
235 | 48 | #. module: sale_order_webkit | ||
236 | 49 | #: report:addons/sale_order_webkit/report/sale_order.mako:79 | ||
237 | 50 | msgid "Date Ordered" | ||
238 | 51 | msgstr "" | ||
239 | 52 | |||
240 | 53 | #. module: sale_order_webkit | ||
241 | 54 | #: report:addons/sale_order_webkit/report/sale_order.mako:81 | ||
242 | 55 | msgid "Payment Term" | ||
243 | 56 | msgstr "" | ||
244 | 57 | |||
245 | 58 | #. module: sale_order_webkit | ||
246 | 59 | #: report:addons/sale_order_webkit/report/sale_order.mako:38 | ||
247 | 60 | msgid "E-mail" | ||
248 | 61 | msgstr "" | ||
249 | 62 | |||
250 | 63 | #. module: sale_order_webkit | ||
251 | 64 | #: report:addons/sale_order_webkit/report/sale_order.mako:74 | ||
252 | 65 | msgid "Quotation N°" | ||
253 | 66 | msgstr "" | ||
254 | 67 | |||
255 | 68 | #. module: sale_order_webkit | ||
256 | 69 | #: report:addons/sale_order_webkit/report/sale_order.mako:97 | ||
257 | 70 | msgid "Unit Price" | ||
258 | 71 | msgstr "" | ||
259 | 72 | |||
260 | 73 | #. module: sale_order_webkit | ||
261 | 74 | #: report:addons/sale_order_webkit/report/sale_order.mako:74 | ||
262 | 75 | msgid "Order N°" | ||
263 | 76 | msgstr "" | ||
264 | 77 | |||
265 | 78 | #. module: sale_order_webkit | ||
266 | 79 | #: report:addons/sale_order_webkit/report/sale_order.mako:98 | ||
267 | 80 | msgid "Disc.(%)" | ||
268 | 81 | msgstr "" | ||
269 | 82 | |||
270 | 83 | #. module: sale_order_webkit | ||
271 | 84 | #: report:addons/sale_order_webkit/report/sale_order.mako:80 | ||
272 | 85 | msgid "Salesman" | ||
273 | 86 | msgstr "" | ||
274 | 87 | |||
275 | 88 | #. module: sale_order_webkit | ||
276 | 89 | #: report:addons/sale_order_webkit/report/sale_order.mako:41 | ||
277 | 90 | #: report:addons/sale_order_webkit/report/sale_order.mako:95 | ||
278 | 91 | msgid "VAT" | ||
279 | 92 | msgstr "" | ||
280 | 93 | |||
281 | 94 | #. module: sale_order_webkit | ||
282 | 95 | #: report:addons/sale_order_webkit/report/sale_order.mako:96 | ||
283 | 96 | msgid "Quantity" | ||
284 | 97 | msgstr "" | ||
285 | 98 | |||
286 | 0 | 99 | ||
287 | === added directory 'sale_order_webkit/report' | |||
288 | === added file 'sale_order_webkit/report/__init__.py' | |||
289 | --- sale_order_webkit/report/__init__.py 1970-01-01 00:00:00 +0000 | |||
290 | +++ sale_order_webkit/report/__init__.py 2013-01-25 09:44:22 +0000 | |||
291 | @@ -0,0 +1,22 @@ | |||
292 | 1 | # -*- coding: utf-8 -*- | ||
293 | 2 | ############################################################################## | ||
294 | 3 | # | ||
295 | 4 | # Copyright (c) 2011 Camptocamp SA (http://www.camptocamp.com) | ||
296 | 5 | # @author Nicolas Bessi, Vincent Renaville, Guewen Baconnier | ||
297 | 6 | # | ||
298 | 7 | # This program is free software: you can redistribute it and/or modify | ||
299 | 8 | # it under the terms of the GNU Affero General Public License as | ||
300 | 9 | # published by the Free Software Foundation, either version 3 of the | ||
301 | 10 | # License, or (at your option) any later version. | ||
302 | 11 | # | ||
303 | 12 | # This program is distributed in the hope that it will be useful, | ||
304 | 13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
305 | 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
306 | 15 | # GNU Affero General Public License for more details. | ||
307 | 16 | # | ||
308 | 17 | # You should have received a copy of the GNU Affero General Public License | ||
309 | 18 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
310 | 19 | # | ||
311 | 20 | ############################################################################## | ||
312 | 21 | |||
313 | 22 | from . import sale_order | ||
314 | 0 | 23 | ||
315 | === added file 'sale_order_webkit/report/sale_order.mako' | |||
316 | --- sale_order_webkit/report/sale_order.mako 1970-01-01 00:00:00 +0000 | |||
317 | +++ sale_order_webkit/report/sale_order.mako 2013-01-25 09:44:22 +0000 | |||
318 | @@ -0,0 +1,269 @@ | |||
319 | 1 | <html> | ||
320 | 2 | <head> | ||
321 | 3 | <style type="text/css"> | ||
322 | 4 | ${css} | ||
323 | 5 | |||
324 | 6 | .list_sale_table { | ||
325 | 7 | border:thin solid #E3E4EA; | ||
326 | 8 | text-align:center; | ||
327 | 9 | border-collapse: collapse; | ||
328 | 10 | } | ||
329 | 11 | |||
330 | 12 | .list_sale_table td { | ||
331 | 13 | border-top:thin solid #EEEEEE; | ||
332 | 14 | text-align:right; | ||
333 | 15 | font-size:12; | ||
334 | 16 | padding-right:3px; | ||
335 | 17 | padding-left:3px; | ||
336 | 18 | padding-top:3px; | ||
337 | 19 | padding-bottom:3px; | ||
338 | 20 | } | ||
339 | 21 | |||
340 | 22 | .list_bank_table { | ||
341 | 23 | text-align:center; | ||
342 | 24 | border-collapse: collapse; | ||
343 | 25 | } | ||
344 | 26 | |||
345 | 27 | .list_bank_table td { | ||
346 | 28 | text-align:left; | ||
347 | 29 | font-size:12; | ||
348 | 30 | padding-right:3px; | ||
349 | 31 | padding-left:3px; | ||
350 | 32 | padding-top:3px; | ||
351 | 33 | padding-bottom:3px; | ||
352 | 34 | } | ||
353 | 35 | |||
354 | 36 | .list_bank_table th { | ||
355 | 37 | background-color: #EEEEEE; | ||
356 | 38 | text-align:left; | ||
357 | 39 | font-size:12; | ||
358 | 40 | font-weight:bold; | ||
359 | 41 | padding-right:3px | ||
360 | 42 | padding-left:3px | ||
361 | 43 | } | ||
362 | 44 | |||
363 | 45 | .list_sale_table th { | ||
364 | 46 | background-color: #EEEEEE; | ||
365 | 47 | border: thin solid #000000; | ||
366 | 48 | text-align:center; | ||
367 | 49 | font-size:12; | ||
368 | 50 | font-weight:bold; | ||
369 | 51 | padding-right:3px; | ||
370 | 52 | padding-left:3px; | ||
371 | 53 | } | ||
372 | 54 | |||
373 | 55 | .list_table thead { | ||
374 | 56 | display:table-header-group; | ||
375 | 57 | } | ||
376 | 58 | |||
377 | 59 | |||
378 | 60 | .list_tax_table { | ||
379 | 61 | } | ||
380 | 62 | .list_tax_table td { | ||
381 | 63 | text-align:left; | ||
382 | 64 | font-size:12; | ||
383 | 65 | } | ||
384 | 66 | |||
385 | 67 | |||
386 | 68 | .list_table thead { | ||
387 | 69 | display:table-header-group; | ||
388 | 70 | } | ||
389 | 71 | |||
390 | 72 | |||
391 | 73 | .list_total_table { | ||
392 | 74 | border-collapse: collapse; | ||
393 | 75 | } | ||
394 | 76 | |||
395 | 77 | .list_total_table td { | ||
396 | 78 | text-align:right; | ||
397 | 79 | font-size:12; | ||
398 | 80 | } | ||
399 | 81 | |||
400 | 82 | .no_bloc { | ||
401 | 83 | border-top: thin solid #ffffff ; | ||
402 | 84 | } | ||
403 | 85 | |||
404 | 86 | |||
405 | 87 | .list_total_table th { | ||
406 | 88 | background-color: #F7F7F7; | ||
407 | 89 | border-collapse: collapse; | ||
408 | 90 | } | ||
409 | 91 | |||
410 | 92 | tfoot.totals tr:first-child td{ | ||
411 | 93 | padding-top: 15px; | ||
412 | 94 | } | ||
413 | 95 | |||
414 | 96 | .right_table { | ||
415 | 97 | right: 4cm; | ||
416 | 98 | width:"100%"; | ||
417 | 99 | } | ||
418 | 100 | |||
419 | 101 | .std_text { | ||
420 | 102 | font-size:12; | ||
421 | 103 | } | ||
422 | 104 | |||
423 | 105 | .note { | ||
424 | 106 | text-align:left; | ||
425 | 107 | font-size:10; | ||
426 | 108 | border-top:thin solid #ffffff; | ||
427 | 109 | border-left:thin solid #ffffff; | ||
428 | 110 | border-right:thin solid #ffffff; | ||
429 | 111 | } | ||
430 | 112 | |||
431 | 113 | |||
432 | 114 | </style> | ||
433 | 115 | </head> | ||
434 | 116 | <body> | ||
435 | 117 | <%page expression_filter="entity"/> | ||
436 | 118 | <% | ||
437 | 119 | def carriage_returns(text): | ||
438 | 120 | return text.replace('\n', '<br />') | ||
439 | 121 | |||
440 | 122 | %> | ||
441 | 123 | %for order in objects: | ||
442 | 124 | <% setLang(order.partner_id.lang) %> | ||
443 | 125 | <% | ||
444 | 126 | quotation = order.state == 'draft' | ||
445 | 127 | %> | ||
446 | 128 | <div class="address"> | ||
447 | 129 | <table class="recipient"> | ||
448 | 130 | <tr><td class="name">${order.partner_id.title or ''} ${order.partner_id.name }</td></tr> | ||
449 | 131 | <tr><td>${order.partner_id.street or ''}</td></tr> | ||
450 | 132 | <tr><td>${order.partner_id.street2 or ''}</td></tr> | ||
451 | 133 | <tr><td>${order.partner_id.zip or ''} ${order.partner_id.city or ''}</td></tr> | ||
452 | 134 | %if order.partner_id.state_id: | ||
453 | 135 | <tr><td>${order.partner_id.state_id.name or ''} </td></tr> | ||
454 | 136 | %endif | ||
455 | 137 | %if order.partner_id.country_id: | ||
456 | 138 | <tr><td>${order.partner_id.country_id.name or ''} </td></tr> | ||
457 | 139 | %endif | ||
458 | 140 | %if order.partner_id.phone: | ||
459 | 141 | <tr><td>${_("Tel")}: ${order.partner_id.phone}</td></tr> | ||
460 | 142 | %endif | ||
461 | 143 | %if order.partner_id.fax: | ||
462 | 144 | <tr><td>${_("Fax")}: ${order.partner_id.fax}</td></tr> | ||
463 | 145 | %endif | ||
464 | 146 | %if order.partner_id.email: | ||
465 | 147 | <tr><td>${_("E-mail")}: ${order.partner_id.email}</td></tr> | ||
466 | 148 | %endif | ||
467 | 149 | %if order.partner_id.vat: | ||
468 | 150 | <tr><td>${_("VAT")}: ${order.partner_id.vat}</td></tr> | ||
469 | 151 | %endif | ||
470 | 152 | </table> | ||
471 | 153 | |||
472 | 154 | <table class="shipping"> | ||
473 | 155 | <tr><td class="address_title">${_("Shipping address:")}</td></tr> | ||
474 | 156 | <tr><td >${order.partner_id.title or ''} ${order.partner_id.name }</td></tr> | ||
475 | 157 | <tr><td>${order.partner_shipping_id.street or ''}</td></tr> | ||
476 | 158 | <tr><td>${order.partner_shipping_id.street2 or ''}</td></tr> | ||
477 | 159 | <tr><td>${order.partner_shipping_id.zip or ''} ${order.partner_shipping_id.city or ''}</td></tr> | ||
478 | 160 | %if order.partner_shipping_id.state_id: | ||
479 | 161 | <tr><td>${order.partner_shipping_id.state_id.name or ''} </td></tr> | ||
480 | 162 | %endif | ||
481 | 163 | %if order.partner_shipping_id.country_id: | ||
482 | 164 | <tr><td>${order.partner_shipping_id.country_id.name or ''} </td></tr> | ||
483 | 165 | %endif | ||
484 | 166 | </table> | ||
485 | 167 | |||
486 | 168 | <table class="invoice"> | ||
487 | 169 | <tr><td class="address_title">${_("Invoice address:")}</td></tr> | ||
488 | 170 | <tr><td>${order.partner_id.title or ''} ${order.partner_id.name }</td></tr> | ||
489 | 171 | <tr><td>${order.partner_invoice_id.street or ''}</td></tr> | ||
490 | 172 | <tr><td>${order.partner_invoice_id.street2 or ''}</td></tr> | ||
491 | 173 | <tr><td>${order.partner_invoice_id.zip or ''} ${order.partner_invoice_id.city or ''}</td></tr> | ||
492 | 174 | %if order.partner_invoice_id.state_id: | ||
493 | 175 | <tr><td>${order.partner_invoice_id.state_id.name or ''} </td></tr> | ||
494 | 176 | %endif | ||
495 | 177 | %if order.partner_invoice_id.country_id: | ||
496 | 178 | <tr><td>${order.partner_invoice_id.country_id.name or ''} </td></tr> | ||
497 | 179 | %endif | ||
498 | 180 | </table> | ||
499 | 181 | </div> | ||
500 | 182 | <div> | ||
501 | 183 | |||
502 | 184 | %if order.note1: | ||
503 | 185 | <p class="std_text"> ${order.note1| n} </p> | ||
504 | 186 | %endif | ||
505 | 187 | </div> | ||
506 | 188 | |||
507 | 189 | <h1 style="clear:both;">${quotation and _(u'Quotation N°') or _(u'Order N°') } ${order.name}</h1> | ||
508 | 190 | |||
509 | 191 | <table class="basic_table" width="100%"> | ||
510 | 192 | <tr> | ||
511 | 193 | <td style="font-weight:bold;">${quotation and _("Date Ordered") or _("Quotation Date")}</td> | ||
512 | 194 | <td style="font-weight:bold;">${_("Your Reference")}</td> | ||
513 | 195 | <td style="font-weight:bold;">${_("Salesman")}</td> | ||
514 | 196 | <td style="font-weight:bold;">${_('Payment Term')}</td> | ||
515 | 197 | <td style="font-weight:bold;">${_('Incoterm')}</td> | ||
516 | 198 | </tr> | ||
517 | 199 | <tr> | ||
518 | 200 | <td>${formatLang(order.date_order, date=True)}</td> | ||
519 | 201 | <td>${order.client_order_ref or ''}</td> | ||
520 | 202 | <td>${order.user_id and order.user_id.name or ''}</td> | ||
521 | 203 | <td>${order.payment_term and order.payment_term.name or ''}</td> | ||
522 | 204 | <td>${''}</td> | ||
523 | 205 | </tr> | ||
524 | 206 | </table> | ||
525 | 207 | |||
526 | 208 | <table class="list_sale_table" width="100%" style="margin-top: 20px;"> | ||
527 | 209 | <thead> | ||
528 | 210 | <tr> | ||
529 | 211 | <th>${_("Description")}</th> | ||
530 | 212 | <th class="amount">${_("Quantity")}</th> | ||
531 | 213 | <th class="amount">${_("UoM")}</th> | ||
532 | 214 | <th class="amount">${_("Unit Price")}</th> | ||
533 | 215 | <th>${_("VAT")}</th> | ||
534 | 216 | <th class="amount">${_("Disc.(%)")}</th> | ||
535 | 217 | <th class="amount">${_("Price")}</th> | ||
536 | 218 | </tr> | ||
537 | 219 | </thead> | ||
538 | 220 | <tbody> | ||
539 | 221 | %for line in order.order_line: | ||
540 | 222 | <tr class="line"> | ||
541 | 223 | <td style="text-align:left; " >${ line.name }</td> | ||
542 | 224 | <td class="amount" width="7.5%">${ formatLang(line.product_uos and line.product_uos_qty or line.product_uom_qty) }</td> | ||
543 | 225 | <td style="text-align:center;">${ line.product_uos and line.product_uos.name or line.product_uom.name }</td> | ||
544 | 226 | <td class="amount" width="8%">${formatLang(line.price_unit)}</td> | ||
545 | 227 | <td style="font-style:italic; font-size: 10;">${ ', '.join([tax.name or '' for tax in line.tax_id]) }</td> | ||
546 | 228 | <td class="amount" width="10%">${line.discount and formatLang(line.discount, digits=get_digits(dp='Sale Price')) or ''} ${line.discount and '%' or ''}</td> | ||
547 | 229 | <td class="amount" width="13%">${formatLang(line.price_subtotal, digits=get_digits(dp='Sale Price'))} ${order.pricelist_id.currency_id.symbol}</td> | ||
548 | 230 | </tr> | ||
549 | 231 | %if line.formatted_note: | ||
550 | 232 | <tr class="line"> | ||
551 | 233 | <td colspan="7" class="note" style="text-align:left;">${line.formatted_note| n}</td> | ||
552 | 234 | </tr> | ||
553 | 235 | %endif | ||
554 | 236 | %endfor | ||
555 | 237 | </tbody> | ||
556 | 238 | <tfoot class="totals"> | ||
557 | 239 | <tr> | ||
558 | 240 | <td colspan="5" style="border-style:none"/> | ||
559 | 241 | <td style="border-style:none"><b>${_("Net Total:")}</b></td> | ||
560 | 242 | <td class="amount" style="border-style:none">${formatLang(order.amount_untaxed, get_digits(dp='Sale Price'))} ${order.pricelist_id.currency_id.symbol}</td> | ||
561 | 243 | </tr> | ||
562 | 244 | <tr> | ||
563 | 245 | <td colspan="5" style="border-style:none"/> | ||
564 | 246 | <td style="border-style:none" ><b>${_("Taxes:")}</b></td> | ||
565 | 247 | <td class="amount"style="border-style:none" >${formatLang(order.amount_tax, get_digits(dp='Sale Price'))} ${order.pricelist_id.currency_id.symbol}</td> | ||
566 | 248 | </tr> | ||
567 | 249 | <tr> | ||
568 | 250 | <td colspan="5" style="border-style:none"/> | ||
569 | 251 | <td style="border-style:none"><b>${_("Total:")}</b></td> | ||
570 | 252 | <td class="amount" style="border-style:none">${formatLang(order.amount_total, get_digits(dp='Sale Price'))} ${order.pricelist_id.currency_id.symbol}</td> | ||
571 | 253 | </tr> | ||
572 | 254 | </tfoot> | ||
573 | 255 | </table> | ||
574 | 256 | <p style="margin-top: 20px;">${order.payment_term and order.payment_term.note or '' | carriage_returns}</p> | ||
575 | 257 | |||
576 | 258 | %if order.note : | ||
577 | 259 | <p class="std_text">${order.note | carriage_returns}</p> | ||
578 | 260 | %endif | ||
579 | 261 | %if order.note2: | ||
580 | 262 | <p class="std_text">${order.note2 | n}</p> | ||
581 | 263 | %endif | ||
582 | 264 | |||
583 | 265 | <p style="page-break-after: always"/> | ||
584 | 266 | <br/> | ||
585 | 267 | %endfor | ||
586 | 268 | </body> | ||
587 | 269 | </html> | ||
588 | 0 | 270 | ||
589 | === added file 'sale_order_webkit/report/sale_order.py' | |||
590 | --- sale_order_webkit/report/sale_order.py 1970-01-01 00:00:00 +0000 | |||
591 | +++ sale_order_webkit/report/sale_order.py 2013-01-25 09:44:22 +0000 | |||
592 | @@ -0,0 +1,41 @@ | |||
593 | 1 | # -*- coding: utf-8 -*- | ||
594 | 2 | ############################################################################## | ||
595 | 3 | # | ||
596 | 4 | # Copyright (c) 2011 Camptocamp SA (http://www.camptocamp.com) | ||
597 | 5 | # @author Nicolas Bessi, Vincent Renaville, Guewen Baconnier | ||
598 | 6 | # | ||
599 | 7 | # This program is free software: you can redistribute it and/or modify | ||
600 | 8 | # it under the terms of the GNU Affero General Public License as | ||
601 | 9 | # published by the Free Software Foundation, either version 3 of the | ||
602 | 10 | # License, or (at your option) any later version. | ||
603 | 11 | # | ||
604 | 12 | # This program is distributed in the hope that it will be useful, | ||
605 | 13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
606 | 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
607 | 15 | # GNU Affero General Public License for more details. | ||
608 | 16 | # | ||
609 | 17 | # You should have received a copy of the GNU Affero General Public License | ||
610 | 18 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
611 | 19 | # | ||
612 | 20 | ############################################################################## | ||
613 | 21 | import time | ||
614 | 22 | |||
615 | 23 | from openerp.report import report_sxw | ||
616 | 24 | from openerp import pooler | ||
617 | 25 | |||
618 | 26 | |||
619 | 27 | class SaleOrderReport(report_sxw.rml_parse): | ||
620 | 28 | def __init__(self, cr, uid, name, context): | ||
621 | 29 | super(SaleOrderReport, self).__init__(cr, uid, name, context=context) | ||
622 | 30 | self.localcontext.update({'time': time, | ||
623 | 31 | 'company_vat': self._get_company_vat}) | ||
624 | 32 | |||
625 | 33 | def _get_company_vat(self): | ||
626 | 34 | res_users_obj = pooler.get_pool(self.cr.dbname).get('res.users') | ||
627 | 35 | company_vat = res_users_obj.browse(self.cr, self.uid, self.uid).company_id.partner_id.vat | ||
628 | 36 | return company_vat | ||
629 | 37 | |||
630 | 38 | report_sxw.report_sxw('report.sale.order.webkit', | ||
631 | 39 | 'sale.order', | ||
632 | 40 | 'addons/sale_report_webkit/report/sale_order.mako', | ||
633 | 41 | parser=SaleOrderReport) | ||
634 | 0 | 42 | ||
635 | === added file 'sale_order_webkit/sale.py' | |||
636 | --- sale_order_webkit/sale.py 1970-01-01 00:00:00 +0000 | |||
637 | +++ sale_order_webkit/sale.py 2013-01-25 09:44:22 +0000 | |||
638 | @@ -0,0 +1,72 @@ | |||
639 | 1 | # -*- coding: utf-8 -*- | ||
640 | 2 | ############################################################################## | ||
641 | 3 | # | ||
642 | 4 | # Copyright (c) 2011 Camptocamp SA (http://www.camptocamp.com) | ||
643 | 5 | # @author Nicolas Bessi, Vincent Renaville, Guewen Baconnier | ||
644 | 6 | # | ||
645 | 7 | # This program is free software: you can redistribute it and/or modify | ||
646 | 8 | # it under the terms of the GNU Affero General Public License as | ||
647 | 9 | # published by the Free Software Foundation, either version 3 of the | ||
648 | 10 | # License, or (at your option) any later version. | ||
649 | 11 | # | ||
650 | 12 | # This program is distributed in the hope that it will be useful, | ||
651 | 13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
652 | 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
653 | 15 | # GNU Affero General Public License for more details. | ||
654 | 16 | # | ||
655 | 17 | # You should have received a copy of the GNU Affero General Public License | ||
656 | 18 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
657 | 19 | # | ||
658 | 20 | ############################################################################## | ||
659 | 21 | from openerp.osv import orm, fields | ||
660 | 22 | |||
661 | 23 | |||
662 | 24 | class SaleConditionText(orm.Model): | ||
663 | 25 | """Sale order Textual information""" | ||
664 | 26 | _name = "sale.condition_text" | ||
665 | 27 | _description = "sale conditions" | ||
666 | 28 | |||
667 | 29 | _columns = { | ||
668 | 30 | 'name': fields.char('Condition summary', required=True, size=128), | ||
669 | 31 | 'type': fields.selection([('header', 'Top condition'), | ||
670 | 32 | ('footer', 'Bottom condition')], | ||
671 | 33 | 'type', required=True), | ||
672 | 34 | 'text': fields.html('Condition', translate=True, required=True)} | ||
673 | 35 | |||
674 | 36 | |||
675 | 37 | class SaleOrder(orm.Model): | ||
676 | 38 | """Adds condition to SO""" | ||
677 | 39 | |||
678 | 40 | _inherit = "sale.order" | ||
679 | 41 | _description = 'Sale Order' | ||
680 | 42 | |||
681 | 43 | _columns = {'text_condition1': fields.many2one('sale.condition_text', 'Header'), | ||
682 | 44 | 'text_condition2': fields.many2one('sale.condition_text', 'Footer'), | ||
683 | 45 | 'note1': fields.html('Header'), | ||
684 | 46 | 'note2': fields.html('Footer')} | ||
685 | 47 | |||
686 | 48 | def _set_condition(self, cursor, uid, inv_id, commentid, key): | ||
687 | 49 | """Set the text of the notes in invoices""" | ||
688 | 50 | if not commentid: | ||
689 | 51 | return {} | ||
690 | 52 | try: | ||
691 | 53 | lang = self.browse(cursor, uid, inv_id)[0].partner_id.lang | ||
692 | 54 | except Exception, exc: | ||
693 | 55 | lang = 'en_US' | ||
694 | 56 | cond = self.pool.get('sale.condition_text').browse(cursor, uid, | ||
695 | 57 | commentid, {'lang': lang}) | ||
696 | 58 | return {'value': {key: cond.text}} | ||
697 | 59 | |||
698 | 60 | def set_header(self, cursor, uid, inv_id, commentid): | ||
699 | 61 | return self._set_condition(cursor, uid, inv_id, commentid, 'note1') | ||
700 | 62 | |||
701 | 63 | def set_footer(self, cursor, uid, inv_id, commentid): | ||
702 | 64 | return self._set_condition(cursor, uid, inv_id, commentid, 'note2') | ||
703 | 65 | |||
704 | 66 | |||
705 | 67 | class SaleOrderLine(orm.Model): | ||
706 | 68 | """ADD HTML note to sale order lines""" | ||
707 | 69 | |||
708 | 70 | _inherit = "sale.order.line" | ||
709 | 71 | |||
710 | 72 | _columns = {'formatted_note': fields.html('Formatted Note')} | ||
711 | 0 | 73 | ||
712 | === added file 'sale_order_webkit/sale_report.xml' | |||
713 | --- sale_order_webkit/sale_report.xml 1970-01-01 00:00:00 +0000 | |||
714 | +++ sale_order_webkit/sale_report.xml 2013-01-25 09:44:22 +0000 | |||
715 | @@ -0,0 +1,13 @@ | |||
716 | 1 | <?xml version="1.0" encoding="utf-8"?> | ||
717 | 2 | <openerp> | ||
718 | 3 | <data> | ||
719 | 4 | <report id="sale.report_sale_order" | ||
720 | 5 | name="sale.order.webkit" | ||
721 | 6 | auto="False" | ||
722 | 7 | model="sale.order" | ||
723 | 8 | file="sale_order_webkit/report/sale_order.mako" | ||
724 | 9 | string="Quotation - Order" | ||
725 | 10 | webkit_header="base_headers_webkit.base_reports_portrait_header" | ||
726 | 11 | report_type="webkit"/> | ||
727 | 12 | </data> | ||
728 | 13 | </openerp> | ||
729 | 0 | 14 | ||
730 | === added directory 'sale_order_webkit/view' | |||
731 | === added file 'sale_order_webkit/view/sale_view.xml' | |||
732 | --- sale_order_webkit/view/sale_view.xml 1970-01-01 00:00:00 +0000 | |||
733 | +++ sale_order_webkit/view/sale_view.xml 2013-01-25 09:44:22 +0000 | |||
734 | @@ -0,0 +1,84 @@ | |||
735 | 1 | <?xml version="1.0"?> | ||
736 | 2 | <openerp> | ||
737 | 3 | <data> | ||
738 | 4 | <!-- Sale condition text views --> | ||
739 | 5 | <record model="ir.ui.view" id="view_sale_condition_webkit"> | ||
740 | 6 | <field name="name">sale.condition_text.form</field> | ||
741 | 7 | <field name="model">sale.condition_text</field> | ||
742 | 8 | <field name="type">form</field> | ||
743 | 9 | <field name="arch" type="xml"> | ||
744 | 10 | <form string="sale condition text"> | ||
745 | 11 | <field name="name" select="1"/> | ||
746 | 12 | <field name="type" select="1"/> | ||
747 | 13 | <field name="text" colspan="4"/> | ||
748 | 14 | </form> | ||
749 | 15 | </field> | ||
750 | 16 | </record> | ||
751 | 17 | <record model="ir.ui.view" id="view_sale_condition_list_webkit"> | ||
752 | 18 | <field name="name">sale.condition_text.list</field> | ||
753 | 19 | <field name="model">sale.condition_text</field> | ||
754 | 20 | <field name="type">tree</field> | ||
755 | 21 | <field name="priority" eval="6"/> | ||
756 | 22 | <field name="arch" type="xml"> | ||
757 | 23 | <tree string="Sale condition text"> | ||
758 | 24 | <field name="name" select="1"/> | ||
759 | 25 | <field name="type" select="1"/> | ||
760 | 26 | <field name="text"/> | ||
761 | 27 | </tree> | ||
762 | 28 | </field> | ||
763 | 29 | </record> | ||
764 | 30 | <record model="ir.actions.act_window" id="action_sale_condition_webkit"> | ||
765 | 31 | <field name="name">sale.condition_text</field> | ||
766 | 32 | <field name="type">ir.actions.act_window</field> | ||
767 | 33 | <field name="res_model">sale.condition_text</field> | ||
768 | 34 | <field name="view_type">form</field> | ||
769 | 35 | <field name="view_mode">tree,form</field> | ||
770 | 36 | <field name="view_id" ref="view_sale_condition_list_webkit"/> | ||
771 | 37 | </record> | ||
772 | 38 | <record model="ir.actions.act_window" id="action_sale_condition_form_webkit"> | ||
773 | 39 | <field name="name">sale.condition_text</field> | ||
774 | 40 | <field name="type">ir.actions.act_window</field> | ||
775 | 41 | <field name="res_model">sale.condition_text</field> | ||
776 | 42 | <field name="view_type">form</field> | ||
777 | 43 | <field name="view_id" ref="view_sale_condition_webkit"/> | ||
778 | 44 | </record> | ||
779 | 45 | |||
780 | 46 | <!-- Overwrite of sale order / sale order line form view --> | ||
781 | 47 | |||
782 | 48 | |||
783 | 49 | <record model="ir.ui.view" id="sale_order_add_notes_in_invoice_line_1"> | ||
784 | 50 | <field name="name">sale.odrer.form.add.notes</field> | ||
785 | 51 | <field name="model">sale.order</field> | ||
786 | 52 | <field name="inherit_id" ref="sale.view_order_form"/> | ||
787 | 53 | <field name="arch" type="xml"> | ||
788 | 54 | <xpath expr="/form/sheet/notebook/page/field/form/field[@name='name']" position="after"> | ||
789 | 55 | <group> | ||
790 | 56 | <field name="formatted_note" colspan="4"/> | ||
791 | 57 | </group> | ||
792 | 58 | </xpath> | ||
793 | 59 | </field> | ||
794 | 60 | </record> | ||
795 | 61 | |||
796 | 62 | <record model="ir.ui.view" id="view_order_form"> | ||
797 | 63 | <field name="name">sale.order.form.add.notes</field> | ||
798 | 64 | <field name="model">sale.order</field> | ||
799 | 65 | <field name="inherit_id" ref="sale.view_order_form"/> | ||
800 | 66 | <field name="arch" type="xml"> | ||
801 | 67 | <notebook position="inside"> | ||
802 | 68 | <page string="Conditions"> | ||
803 | 69 | <group> | ||
804 | 70 | <field name="text_condition1" domain="[('type','=','header')]" | ||
805 | 71 | on_change="set_header(text_condition1)" colspan="2"/> | ||
806 | 72 | <field name="text_condition2" domain="[('type','=','footer')]" | ||
807 | 73 | on_change="set_footer(text_condition2)" colspan="2"/> | ||
808 | 74 | <field name="note1" colspan="4" nolabel="1" placeholder="Your top conditions here"/> | ||
809 | 75 | <field name="note2" colspan="4" nolabel="1" placeholder="Your bottom conditions here"/> | ||
810 | 76 | </group> | ||
811 | 77 | </page> | ||
812 | 78 | </notebook> | ||
813 | 79 | </field> | ||
814 | 80 | </record> | ||
815 | 81 | |||
816 | 82 | |||
817 | 83 | </data> | ||
818 | 84 | </openerp> |
LGTM
I just think the dependancies on 'base' and 'report_webkit' modules aren't necessary in __openerp__.py as already inherited from base_header_webkit