Merge lp:~account-core-editors/account-invoice-report/7.0-account-webkit-invoice-port into lp:~account-core-editors/account-invoice-report/7.0
- 7.0-account-webkit-invoice-port
- Merge into 7.0
Proposed by
Nicolas Bessi - Camptocamp
Status: | Merged |
---|---|
Merged at revision: | 4 |
Proposed branch: | lp:~account-core-editors/account-invoice-report/7.0-account-webkit-invoice-port |
Merge into: | lp:~account-core-editors/account-invoice-report/7.0 |
Diff against target: |
1352 lines (+1293/-0) 11 files modified
invoice_webkit/__init__.py (+30/-0) invoice_webkit/__openerp__.py (+46/-0) invoice_webkit/i18n/de.po (+214/-0) invoice_webkit/i18n/en.po (+214/-0) invoice_webkit/i18n/fr.po (+218/-0) invoice_webkit/invoice.py (+69/-0) invoice_webkit/invoice_report.xml (+18/-0) invoice_webkit/report/__init__.py (+30/-0) invoice_webkit/report/account_invoice.mako (+330/-0) invoice_webkit/report/account_invoice.py (+56/-0) invoice_webkit/view/invoice_view.xml (+68/-0) |
To merge this branch: | bzr merge lp:~account-core-editors/account-invoice-report/7.0-account-webkit-invoice-port |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Maxime Chambreuil (http://www.savoirfairelinux.com) | Approve | ||
Review via email: mp+140488@code.launchpad.net |
Commit message
Description of the change
Port and cleanup of invoice webkit report
To post a comment you must log in.
Revision history for this message
Maxime Chambreuil (http://www.savoirfairelinux.com) (max3903) : | # |
review:
Approve
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === added directory 'invoice_webkit' |
2 | === added file 'invoice_webkit/__init__.py' |
3 | --- invoice_webkit/__init__.py 1970-01-01 00:00:00 +0000 |
4 | +++ invoice_webkit/__init__.py 2012-12-18 16:32:20 +0000 |
5 | @@ -0,0 +1,30 @@ |
6 | +# -*- coding: utf-8 -*- |
7 | +############################################################################## |
8 | +# |
9 | +# Copyright (c) 2011 Camptocamp SA (http://www.camptocamp.com) |
10 | +# @author Guewen Baconnier, Bessi Nicolas, Vicent Renaville |
11 | +# |
12 | +# WARNING: This program as such is intended to be used by professional |
13 | +# programmers who take the whole responsability of assessing all potential |
14 | +# consequences resulting from its eventual inadequacies and bugs |
15 | +# End users who are looking for a ready-to-use solution with commercial |
16 | +# garantees and support are strongly adviced to contract a Free Software |
17 | +# Service Company |
18 | +# |
19 | +# This program is Free Software; you can redistribute it and/or |
20 | +# modify it under the terms of the GNU General Public License |
21 | +# as published by the Free Software Foundation; either version 2 |
22 | +# of the License, or (at your option) any later version. |
23 | +# |
24 | +# This program is distributed in the hope that it will be useful, |
25 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of |
26 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
27 | +# GNU General Public License for more details. |
28 | +# |
29 | +# You should have received a copy of the GNU General Public License |
30 | +# along with this program; if not, write to the Free Software |
31 | +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
32 | +# |
33 | +############################################################################## |
34 | +from . import invoice |
35 | +from . import report |
36 | \ No newline at end of file |
37 | |
38 | === added file 'invoice_webkit/__openerp__.py' |
39 | --- invoice_webkit/__openerp__.py 1970-01-01 00:00:00 +0000 |
40 | +++ invoice_webkit/__openerp__.py 2012-12-18 16:32:20 +0000 |
41 | @@ -0,0 +1,46 @@ |
42 | +# -*- coding: utf-8 -*- |
43 | +############################################################################## |
44 | +# |
45 | +# Copyright (c) 2011 Camptocamp SA (http://www.camptocamp.com) |
46 | +# @author Guewen Baconnier, Bessi Nicolas, Vicent Renaville |
47 | +# |
48 | +# WARNING: This program as such is intended to be used by professional |
49 | +# programmers who take the whole responsability of assessing all potential |
50 | +# consequences resulting from its eventual inadequacies and bugs |
51 | +# End users who are looking for a ready-to-use solution with commercial |
52 | +# garantees and support are strongly adviced to contract a Free Software |
53 | +# Service Company |
54 | +# |
55 | +# This program is Free Software; you can redistribute it and/or |
56 | +# modify it under the terms of the GNU General Public License |
57 | +# as published by the Free Software Foundation; either version 2 |
58 | +# of the License, or (at your option) any later version. |
59 | +# |
60 | +# This program is distributed in the hope that it will be useful, |
61 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of |
62 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
63 | +# GNU General Public License for more details. |
64 | +# |
65 | +# You should have received a copy of the GNU General Public License |
66 | +# along with this program; if not, write to the Free Software |
67 | +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
68 | +# |
69 | +############################################################################## |
70 | + |
71 | +{ 'name': 'Invoice Report using Webkit Library', |
72 | + 'version': '1.0', |
73 | + 'category': 'Reports/Webkit', |
74 | + 'description': """ |
75 | + Replaces the legacy rml Invoice report by a brand new webkit report. |
76 | + """, |
77 | + 'author': 'Camptocamp', |
78 | + 'website': 'http://www.camptocamp.com', |
79 | + 'depends': ['base', 'report_webkit', 'base_headers_webkit', 'account'], |
80 | + 'init_xml': [], |
81 | + 'update_xml': ['invoice_report.xml', |
82 | + 'view/invoice_view.xml'], |
83 | + 'demo_xml': [], |
84 | + 'test': [], |
85 | + 'installable': True, |
86 | + 'active': False, |
87 | +} |
88 | |
89 | === added directory 'invoice_webkit/i18n' |
90 | === added file 'invoice_webkit/i18n/de.po' |
91 | --- invoice_webkit/i18n/de.po 1970-01-01 00:00:00 +0000 |
92 | +++ invoice_webkit/i18n/de.po 2012-12-18 16:32:20 +0000 |
93 | @@ -0,0 +1,214 @@ |
94 | +# Translation of OpenERP Server. |
95 | +# This file contains the translation of the following modules: |
96 | +# * invoice_webkit |
97 | +# |
98 | +msgid "" |
99 | +msgstr "" |
100 | +"Project-Id-Version: OpenERP Server 6.0.3\n" |
101 | +"Report-Msgid-Bugs-To: support@openerp.com\n" |
102 | +"POT-Creation-Date: 2012-07-23 13:36+0000\n" |
103 | +"PO-Revision-Date: 2012-07-23 13:36+0000\n" |
104 | +"Last-Translator: <>\n" |
105 | +"Language-Team: \n" |
106 | +"MIME-Version: 1.0\n" |
107 | +"Content-Type: text/plain; charset=UTF-8\n" |
108 | +"Content-Transfer-Encoding: \n" |
109 | +"Plural-Forms: \n" |
110 | + |
111 | +#. module: invoice_webkit |
112 | +#: report:addons/invoice_webkit/report/account_invoice.mako:155 |
113 | +msgid "Our VAT No" |
114 | +msgstr "Our VAT No" |
115 | + |
116 | +#. module: invoice_webkit |
117 | +#: report:addons/invoice_webkit/report/account_invoice.mako:133 |
118 | +msgid "Cancelled Invoice" |
119 | +msgstr "Cancelled Invoice" |
120 | + |
121 | +#. module: invoice_webkit |
122 | +#: report:addons/invoice_webkit/report/account_invoice.mako:241 |
123 | +msgid "Thank you for your prompt payment" |
124 | +msgstr "Thank you for your prompt payment" |
125 | + |
126 | +#. module: invoice_webkit |
127 | +#: report:addons/invoice_webkit/report/account_invoice.mako:154 |
128 | +msgid "Customer VAT No" |
129 | +msgstr "Customer VAT No" |
130 | + |
131 | +#. module: invoice_webkit |
132 | +#: report:addons/invoice_webkit/report/account_invoice.mako:145 |
133 | +msgid "Subject : " |
134 | +msgstr "Subject : " |
135 | + |
136 | +#. module: invoice_webkit |
137 | +#: report:addons/invoice_webkit/report/account_invoice.mako:137 |
138 | +msgid "Supplier Invoice" |
139 | +msgstr "Supplier Invoice" |
140 | + |
141 | +#. module: invoice_webkit |
142 | +#: report:addons/invoice_webkit/report/account_invoice.mako:174 |
143 | +msgid "Unit Price" |
144 | +msgstr "Unit Price" |
145 | + |
146 | +#. module: invoice_webkit |
147 | +#: report:addons/invoice_webkit/report/account_invoice.mako:175 |
148 | +msgid "Disc.(%)" |
149 | +msgstr "Disc.(%)" |
150 | + |
151 | +#. module: invoice_webkit |
152 | +#: report:addons/invoice_webkit/report/account_invoice.mako:129 |
153 | +msgid "PRO-FORMA" |
154 | +msgstr "PRO-FORMA" |
155 | + |
156 | +#. module: invoice_webkit |
157 | +#: report:addons/invoice_webkit/report/account_invoice.mako:205 |
158 | +msgid "Taxes:" |
159 | +msgstr "Steuern:" |
160 | + |
161 | +#. module: invoice_webkit |
162 | +#: report:addons/invoice_webkit/report/account_invoice.mako:153 |
163 | +msgid "Our Ref." |
164 | +msgstr "Our Ref." |
165 | + |
166 | +#. module: invoice_webkit |
167 | +#: constraint:account.invoice:0 |
168 | +msgid "Error: Invalid Bvr Number (wrong checksum)." |
169 | +msgstr "Error: Invalid Bvr Number (wrong checksum)." |
170 | + |
171 | +#. module: invoice_webkit |
172 | +#: report:addons/invoice_webkit/report/account_invoice.mako:150 |
173 | +msgid "Invoice Date" |
174 | +msgstr "Rechnungsdatum" |
175 | + |
176 | +#. module: invoice_webkit |
177 | +#: report:addons/invoice_webkit/report/account_invoice.mako:225 |
178 | +msgid "Base" |
179 | +msgstr "Basis" |
180 | + |
181 | +#. module: invoice_webkit |
182 | +#: field:account.condition_text_webkit,text:0 |
183 | +msgid "text" |
184 | +msgstr "text" |
185 | + |
186 | +#. module: invoice_webkit |
187 | +#: field:account.condition_text_webkit,type:0 |
188 | +msgid "type" |
189 | +msgstr "type" |
190 | + |
191 | +#. module: invoice_webkit |
192 | +#: report:addons/invoice_webkit/report/account_invoice.mako:151 |
193 | +msgid "Due Date" |
194 | +msgstr "Zahlbar bis" |
195 | + |
196 | +#. module: invoice_webkit |
197 | +#: selection:account.condition_text_webkit,type:0 |
198 | +#: field:account.invoice,note2_webkit:0 |
199 | +#: field:account.invoice,text_condition2_webkit:0 |
200 | +msgid "Footer" |
201 | +msgstr "Footer" |
202 | + |
203 | +#. module: invoice_webkit |
204 | +#: report:addons/invoice_webkit/report/account_invoice.mako:172 |
205 | +msgid "Taxes" |
206 | +msgstr "Steuern" |
207 | + |
208 | +#. module: invoice_webkit |
209 | +#: field:account.invoice,project_webkit:0 |
210 | +msgid "Project" |
211 | +msgstr "Projekt" |
212 | + |
213 | +#. module: invoice_webkit |
214 | +#: report:addons/invoice_webkit/report/account_invoice.mako:152 |
215 | +msgid "Your Ref." |
216 | +msgstr "Your Ref." |
217 | + |
218 | +#. module: invoice_webkit |
219 | +#: report:addons/invoice_webkit/report/account_invoice.mako:131 |
220 | +msgid "Draft Invoice" |
221 | +msgstr "Entwurf Rechnung" |
222 | + |
223 | +#. module: invoice_webkit |
224 | +#: report:addons/invoice_webkit/report/account_invoice.mako:171 |
225 | +msgid "Description" |
226 | +msgstr "Beschreibung" |
227 | + |
228 | +#. module: invoice_webkit |
229 | +#: report:addons/invoice_webkit/report/account_invoice.mako:139 |
230 | +msgid "Refund" |
231 | +msgstr "Refund" |
232 | + |
233 | +#. module: invoice_webkit |
234 | +#: model:ir.actions.act_window,name:invoice_webkit.action_invoice_condition_form_webkit |
235 | +#: model:ir.actions.act_window,name:invoice_webkit.action_invoice_condition_webkit |
236 | +msgid "account.condition_text" |
237 | +msgstr "account.condition_text" |
238 | + |
239 | +#. module: invoice_webkit |
240 | +#: report:addons/invoice_webkit/report/account_invoice.mako:213 |
241 | +msgid "Total:" |
242 | +msgstr "Total:" |
243 | + |
244 | +#. module: invoice_webkit |
245 | +#: view:account.invoice:0 |
246 | +msgid "Header and footer" |
247 | +msgstr "Header and footer" |
248 | + |
249 | +#. module: invoice_webkit |
250 | +#: constraint:account.invoice:0 |
251 | +msgid "Error: BVR reference is required." |
252 | +msgstr "Error: BVR reference is required." |
253 | + |
254 | +#. module: invoice_webkit |
255 | +#: report:addons/invoice_webkit/report/account_invoice.mako:226 |
256 | +msgid "Tax" |
257 | +msgstr "MwSt" |
258 | + |
259 | +#. module: invoice_webkit |
260 | +#: report:addons/invoice_webkit/report/account_invoice.mako:173 |
261 | +msgid "Qty" |
262 | +msgstr "Menge" |
263 | + |
264 | +#. module: invoice_webkit |
265 | +#: selection:account.condition_text_webkit,type:0 |
266 | +#: field:account.invoice,note1_webkit:0 |
267 | +#: field:account.invoice,text_condition1_webkit:0 |
268 | +msgid "Header" |
269 | +msgstr "Header" |
270 | + |
271 | +#. module: invoice_webkit |
272 | +#: report:addons/invoice_webkit/report/account_invoice.mako:224 |
273 | +msgid "Rate" |
274 | +msgstr "Rate" |
275 | + |
276 | +#. module: invoice_webkit |
277 | +#: field:account.condition_text_webkit,name:0 |
278 | +msgid "Methode" |
279 | +msgstr "Methode" |
280 | + |
281 | +#. module: invoice_webkit |
282 | +#: report:addons/invoice_webkit/report/account_invoice.mako:135 |
283 | +#: model:ir.model,name:invoice_webkit.model_account_invoice |
284 | +msgid "Invoice" |
285 | +msgstr "Rechnung" |
286 | + |
287 | +#. module: invoice_webkit |
288 | +#: view:account.condition_text_webkit:0 |
289 | +#: model:ir.model,name:invoice_webkit.model_account_condition_text_webkit |
290 | +msgid "Invoice condition text" |
291 | +msgstr "Invoice condition text" |
292 | + |
293 | +#. module: invoice_webkit |
294 | +#: report:addons/invoice_webkit/report/account_invoice.mako:141 |
295 | +msgid "Supplier Refund" |
296 | +msgstr "Supplier Refund" |
297 | + |
298 | +#. module: invoice_webkit |
299 | +#: report:addons/invoice_webkit/report/account_invoice.mako:176 |
300 | +msgid "Net Sub Total" |
301 | +msgstr "Net Sub Total" |
302 | + |
303 | +#. module: invoice_webkit |
304 | +#: report:addons/invoice_webkit/report/account_invoice.mako:199 |
305 | +msgid "Net :" |
306 | +msgstr "Net :" |
307 | + |
308 | |
309 | === added file 'invoice_webkit/i18n/en.po' |
310 | --- invoice_webkit/i18n/en.po 1970-01-01 00:00:00 +0000 |
311 | +++ invoice_webkit/i18n/en.po 2012-12-18 16:32:20 +0000 |
312 | @@ -0,0 +1,214 @@ |
313 | +# Translation of OpenERP Server. |
314 | +# This file contains the translation of the following modules: |
315 | +# * invoice_webkit |
316 | +# |
317 | +msgid "" |
318 | +msgstr "" |
319 | +"Project-Id-Version: OpenERP Server 6.0.3\n" |
320 | +"Report-Msgid-Bugs-To: support@openerp.com\n" |
321 | +"POT-Creation-Date: 2012-07-23 13:36+0000\n" |
322 | +"PO-Revision-Date: 2012-07-23 13:36+0000\n" |
323 | +"Last-Translator: <>\n" |
324 | +"Language-Team: \n" |
325 | +"MIME-Version: 1.0\n" |
326 | +"Content-Type: text/plain; charset=UTF-8\n" |
327 | +"Content-Transfer-Encoding: \n" |
328 | +"Plural-Forms: \n" |
329 | + |
330 | +#. module: invoice_webkit |
331 | +#: report:addons/invoice_webkit/report/account_invoice.mako:155 |
332 | +msgid "Our VAT No" |
333 | +msgstr "Our VAT No" |
334 | + |
335 | +#. module: invoice_webkit |
336 | +#: report:addons/invoice_webkit/report/account_invoice.mako:133 |
337 | +msgid "Cancelled Invoice" |
338 | +msgstr "Cancelled Invoice" |
339 | + |
340 | +#. module: invoice_webkit |
341 | +#: report:addons/invoice_webkit/report/account_invoice.mako:241 |
342 | +msgid "Thank you for your prompt payment" |
343 | +msgstr "Thank you for your prompt payment" |
344 | + |
345 | +#. module: invoice_webkit |
346 | +#: report:addons/invoice_webkit/report/account_invoice.mako:154 |
347 | +msgid "Customer VAT No" |
348 | +msgstr "Customer VAT No" |
349 | + |
350 | +#. module: invoice_webkit |
351 | +#: report:addons/invoice_webkit/report/account_invoice.mako:145 |
352 | +msgid "Subject : " |
353 | +msgstr "Subject : " |
354 | + |
355 | +#. module: invoice_webkit |
356 | +#: report:addons/invoice_webkit/report/account_invoice.mako:137 |
357 | +msgid "Supplier Invoice" |
358 | +msgstr "Supplier Invoice" |
359 | + |
360 | +#. module: invoice_webkit |
361 | +#: report:addons/invoice_webkit/report/account_invoice.mako:174 |
362 | +msgid "Unit Price" |
363 | +msgstr "Unit Price" |
364 | + |
365 | +#. module: invoice_webkit |
366 | +#: report:addons/invoice_webkit/report/account_invoice.mako:175 |
367 | +msgid "Disc.(%)" |
368 | +msgstr "Disc.(%)" |
369 | + |
370 | +#. module: invoice_webkit |
371 | +#: report:addons/invoice_webkit/report/account_invoice.mako:129 |
372 | +msgid "PRO-FORMA" |
373 | +msgstr "PRO-FORMA" |
374 | + |
375 | +#. module: invoice_webkit |
376 | +#: report:addons/invoice_webkit/report/account_invoice.mako:205 |
377 | +msgid "Taxes:" |
378 | +msgstr "Taxes:" |
379 | + |
380 | +#. module: invoice_webkit |
381 | +#: report:addons/invoice_webkit/report/account_invoice.mako:153 |
382 | +msgid "Our Ref." |
383 | +msgstr "Our Ref." |
384 | + |
385 | +#. module: invoice_webkit |
386 | +#: constraint:account.invoice:0 |
387 | +msgid "Error: Invalid Bvr Number (wrong checksum)." |
388 | +msgstr "Error: Invalid Bvr Number (wrong checksum)." |
389 | + |
390 | +#. module: invoice_webkit |
391 | +#: report:addons/invoice_webkit/report/account_invoice.mako:150 |
392 | +msgid "Invoice Date" |
393 | +msgstr "Invoice Date" |
394 | + |
395 | +#. module: invoice_webkit |
396 | +#: report:addons/invoice_webkit/report/account_invoice.mako:225 |
397 | +msgid "Base" |
398 | +msgstr "Base" |
399 | + |
400 | +#. module: invoice_webkit |
401 | +#: field:account.condition_text_webkit,text:0 |
402 | +msgid "text" |
403 | +msgstr "text" |
404 | + |
405 | +#. module: invoice_webkit |
406 | +#: field:account.condition_text_webkit,type:0 |
407 | +msgid "type" |
408 | +msgstr "type" |
409 | + |
410 | +#. module: invoice_webkit |
411 | +#: report:addons/invoice_webkit/report/account_invoice.mako:151 |
412 | +msgid "Due Date" |
413 | +msgstr "Due Date" |
414 | + |
415 | +#. module: invoice_webkit |
416 | +#: selection:account.condition_text_webkit,type:0 |
417 | +#: field:account.invoice,note2_webkit:0 |
418 | +#: field:account.invoice,text_condition2_webkit:0 |
419 | +msgid "Footer" |
420 | +msgstr "Footer" |
421 | + |
422 | +#. module: invoice_webkit |
423 | +#: report:addons/invoice_webkit/report/account_invoice.mako:172 |
424 | +msgid "Taxes" |
425 | +msgstr "Taxes" |
426 | + |
427 | +#. module: invoice_webkit |
428 | +#: field:account.invoice,project_webkit:0 |
429 | +msgid "Project" |
430 | +msgstr "Project" |
431 | + |
432 | +#. module: invoice_webkit |
433 | +#: report:addons/invoice_webkit/report/account_invoice.mako:152 |
434 | +msgid "Your Ref." |
435 | +msgstr "Your Ref." |
436 | + |
437 | +#. module: invoice_webkit |
438 | +#: report:addons/invoice_webkit/report/account_invoice.mako:131 |
439 | +msgid "Draft Invoice" |
440 | +msgstr "Draft Invoice" |
441 | + |
442 | +#. module: invoice_webkit |
443 | +#: report:addons/invoice_webkit/report/account_invoice.mako:171 |
444 | +msgid "Description" |
445 | +msgstr "Description" |
446 | + |
447 | +#. module: invoice_webkit |
448 | +#: report:addons/invoice_webkit/report/account_invoice.mako:139 |
449 | +msgid "Refund" |
450 | +msgstr "Refund" |
451 | + |
452 | +#. module: invoice_webkit |
453 | +#: model:ir.actions.act_window,name:invoice_webkit.action_invoice_condition_form_webkit |
454 | +#: model:ir.actions.act_window,name:invoice_webkit.action_invoice_condition_webkit |
455 | +msgid "account.condition_text" |
456 | +msgstr "account.condition_text" |
457 | + |
458 | +#. module: invoice_webkit |
459 | +#: report:addons/invoice_webkit/report/account_invoice.mako:213 |
460 | +msgid "Total:" |
461 | +msgstr "Total:" |
462 | + |
463 | +#. module: invoice_webkit |
464 | +#: view:account.invoice:0 |
465 | +msgid "Header and footer" |
466 | +msgstr "Header and footer" |
467 | + |
468 | +#. module: invoice_webkit |
469 | +#: constraint:account.invoice:0 |
470 | +msgid "Error: BVR reference is required." |
471 | +msgstr "Error: BVR reference is required." |
472 | + |
473 | +#. module: invoice_webkit |
474 | +#: report:addons/invoice_webkit/report/account_invoice.mako:226 |
475 | +msgid "Tax" |
476 | +msgstr "Tax" |
477 | + |
478 | +#. module: invoice_webkit |
479 | +#: report:addons/invoice_webkit/report/account_invoice.mako:173 |
480 | +msgid "Qty" |
481 | +msgstr "Qty" |
482 | + |
483 | +#. module: invoice_webkit |
484 | +#: selection:account.condition_text_webkit,type:0 |
485 | +#: field:account.invoice,note1_webkit:0 |
486 | +#: field:account.invoice,text_condition1_webkit:0 |
487 | +msgid "Header" |
488 | +msgstr "Header" |
489 | + |
490 | +#. module: invoice_webkit |
491 | +#: report:addons/invoice_webkit/report/account_invoice.mako:224 |
492 | +msgid "Rate" |
493 | +msgstr "Rate" |
494 | + |
495 | +#. module: invoice_webkit |
496 | +#: field:account.condition_text_webkit,name:0 |
497 | +msgid "Methode" |
498 | +msgstr "Methode" |
499 | + |
500 | +#. module: invoice_webkit |
501 | +#: report:addons/invoice_webkit/report/account_invoice.mako:135 |
502 | +#: model:ir.model,name:invoice_webkit.model_account_invoice |
503 | +msgid "Invoice" |
504 | +msgstr "Invoice" |
505 | + |
506 | +#. module: invoice_webkit |
507 | +#: view:account.condition_text_webkit:0 |
508 | +#: model:ir.model,name:invoice_webkit.model_account_condition_text_webkit |
509 | +msgid "Invoice condition text" |
510 | +msgstr "Invoice condition text" |
511 | + |
512 | +#. module: invoice_webkit |
513 | +#: report:addons/invoice_webkit/report/account_invoice.mako:141 |
514 | +msgid "Supplier Refund" |
515 | +msgstr "Supplier Refund" |
516 | + |
517 | +#. module: invoice_webkit |
518 | +#: report:addons/invoice_webkit/report/account_invoice.mako:176 |
519 | +msgid "Net Sub Total" |
520 | +msgstr "Net Sub Total" |
521 | + |
522 | +#. module: invoice_webkit |
523 | +#: report:addons/invoice_webkit/report/account_invoice.mako:199 |
524 | +msgid "Net :" |
525 | +msgstr "Net :" |
526 | + |
527 | |
528 | === added file 'invoice_webkit/i18n/fr.po' |
529 | --- invoice_webkit/i18n/fr.po 1970-01-01 00:00:00 +0000 |
530 | +++ invoice_webkit/i18n/fr.po 2012-12-18 16:32:20 +0000 |
531 | @@ -0,0 +1,218 @@ |
532 | +# Translation of OpenERP Server. |
533 | +# This file contains the translation of the following modules: |
534 | +# * invoice_webkit |
535 | +# |
536 | +msgid "" |
537 | +msgstr "" |
538 | +"Project-Id-Version: OpenERP Server 6.0.3\n" |
539 | +"Report-Msgid-Bugs-To: support@openerp.com\n" |
540 | +"POT-Creation-Date: 2012-07-23 13:36+0000\n" |
541 | +"PO-Revision-Date: 2012-07-23 13:36+0000\n" |
542 | +"Last-Translator: <>\n" |
543 | +"Language-Team: \n" |
544 | +"MIME-Version: 1.0\n" |
545 | +"Content-Type: text/plain; charset=UTF-8\n" |
546 | +"Content-Transfer-Encoding: \n" |
547 | +"Plural-Forms: \n" |
548 | + |
549 | +#. module: invoice_webkit |
550 | +#: report:addons/invoice_webkit/report/account_invoice.mako:155 |
551 | +msgid "Our VAT No" |
552 | +msgstr "Notre N° TVA" |
553 | + |
554 | +#. module: invoice_webkit |
555 | +#: report:addons/invoice_webkit/report/account_invoice.mako:133 |
556 | +msgid "Cancelled Invoice" |
557 | +msgstr "Facture annulée" |
558 | + |
559 | +#. module: invoice_webkit |
560 | +#: report:addons/invoice_webkit/report/account_invoice.mako:241 |
561 | +msgid "Thank you for your prompt payment" |
562 | +msgstr "Avec nos remerciements" |
563 | + |
564 | +#. module: invoice_webkit |
565 | +#: report:addons/invoice_webkit/report/account_invoice.mako:154 |
566 | +msgid "Customer VAT No" |
567 | +msgstr "No TVA Client" |
568 | + |
569 | +#. module: invoice_webkit |
570 | +#: report:addons/invoice_webkit/report/account_invoice.mako:145 |
571 | +msgid "Subject : " |
572 | +msgstr "Description : " |
573 | + |
574 | +#. module: invoice_webkit |
575 | +#: report:addons/invoice_webkit/report/account_invoice.mako:137 |
576 | +msgid "Supplier Invoice" |
577 | +msgstr "Facture Fournisseur" |
578 | + |
579 | +#. module: invoice_webkit |
580 | +#: report:addons/invoice_webkit/report/account_invoice.mako:174 |
581 | +msgid "Unit Price" |
582 | +msgstr "Prix unitaire" |
583 | + |
584 | +#. module: invoice_webkit |
585 | +#: report:addons/invoice_webkit/report/account_invoice.mako:175 |
586 | +msgid "Disc.(%)" |
587 | +msgstr "Esc.(%)" |
588 | + |
589 | +#. module: invoice_webkit |
590 | +#: report:addons/invoice_webkit/report/account_invoice.mako:129 |
591 | +msgid "PRO-FORMA" |
592 | +msgstr "PRO-FORMA" |
593 | + |
594 | +#. module: invoice_webkit |
595 | +#: report:addons/invoice_webkit/report/account_invoice.mako:205 |
596 | +msgid "Taxes:" |
597 | +msgstr "Taxes:" |
598 | + |
599 | +#. module: invoice_webkit |
600 | +#: report:addons/invoice_webkit/report/account_invoice.mako:153 |
601 | +msgid "Our Ref." |
602 | +msgstr "Notre Ref." |
603 | + |
604 | +#. module: invoice_webkit |
605 | +#: constraint:account.invoice:0 |
606 | +msgid "Error: Invalid Bvr Number (wrong checksum)." |
607 | +msgstr "Error: Numéro BVR invalide (mauvais checksum)." |
608 | + |
609 | +#. module: invoice_webkit |
610 | +#: report:addons/invoice_webkit/report/account_invoice.mako:150 |
611 | +msgid "Invoice Date" |
612 | +msgstr "Date de Facturation" |
613 | + |
614 | +#. module: invoice_webkit |
615 | +#: report:addons/invoice_webkit/report/account_invoice.mako:225 |
616 | +msgid "Base" |
617 | +msgstr "Base" |
618 | + |
619 | +#. module: invoice_webkit |
620 | +#: field:account.condition_text_webkit,text:0 |
621 | +msgid "text" |
622 | +msgstr "text" |
623 | + |
624 | +#. module: invoice_webkit |
625 | +#: field:account.condition_text_webkit,type:0 |
626 | +msgid "type" |
627 | +msgstr "type" |
628 | + |
629 | +#. module: invoice_webkit |
630 | +#: report:addons/invoice_webkit/report/account_invoice.mako:151 |
631 | +msgid "Due Date" |
632 | +msgstr "Echéance" |
633 | + |
634 | +#. module: invoice_webkit |
635 | +#: selection:account.condition_text_webkit,type:0 |
636 | +#: field:account.invoice,note2_webkit:0 |
637 | +#: field:account.invoice,text_condition2_webkit:0 |
638 | +msgid "Footer" |
639 | +msgstr "Pied de page" |
640 | + |
641 | +#. module: invoice_webkit |
642 | +#: report:addons/invoice_webkit/report/account_invoice.mako:172 |
643 | +msgid "Taxes" |
644 | +msgstr "Taxes" |
645 | + |
646 | +#. module: invoice_webkit |
647 | +#: field:account.invoice,project_webkit:0 |
648 | +msgid "Project" |
649 | +msgstr "Projet" |
650 | + |
651 | +#. module: invoice_webkit |
652 | +#: report:addons/invoice_webkit/report/account_invoice.mako:152 |
653 | +msgid "Your Ref." |
654 | +msgstr "Votre Ref." |
655 | + |
656 | +#. module: invoice_webkit |
657 | +#: report:addons/invoice_webkit/report/account_invoice.mako:131 |
658 | +msgid "Draft Invoice" |
659 | +msgstr "Facture Brouillon" |
660 | + |
661 | +#. module: invoice_webkit |
662 | +#: report:addons/invoice_webkit/report/account_invoice.mako:171 |
663 | +msgid "Description" |
664 | +msgstr "Description" |
665 | + |
666 | +#. module: invoice_webkit |
667 | +#: report:addons/invoice_webkit/report/account_invoice.mako:139 |
668 | +msgid "Refund" |
669 | +msgstr "Refund" |
670 | + |
671 | +#. module: invoice_webkit |
672 | +#: model:ir.actions.act_window,name:invoice_webkit.action_invoice_condition_form_webkit |
673 | +#: model:ir.actions.act_window,name:invoice_webkit.action_invoice_condition_webkit |
674 | +msgid "account.condition_text" |
675 | +msgstr "account.condition_text" |
676 | + |
677 | +#. module: invoice_webkit |
678 | +#: report:addons/invoice_webkit/report/account_invoice.mako:213 |
679 | +msgid "Total:" |
680 | +msgstr "Total:" |
681 | + |
682 | +#. module: invoice_webkit |
683 | +#: view:account.invoice:0 |
684 | +msgid "Header and footer" |
685 | +msgstr "Header and footer" |
686 | + |
687 | +#. module: invoice_webkit |
688 | +#: constraint:account.invoice:0 |
689 | +msgid "Error: BVR reference is required." |
690 | +msgstr "Error: Une référence BVR est requise." |
691 | + |
692 | +#. module: invoice_webkit |
693 | +#: report:addons/invoice_webkit/report/account_invoice.mako:226 |
694 | +msgid "Tax" |
695 | +msgstr "Taxe" |
696 | + |
697 | +#. module: invoice_webkit |
698 | +#: report:addons/invoice_webkit/report/account_invoice.mako:173 |
699 | +msgid "Qty" |
700 | +msgstr "Quantité" |
701 | + |
702 | +#. module: invoice_webkit |
703 | +#: selection:account.condition_text_webkit,type:0 |
704 | +#: field:account.invoice,note1_webkit:0 |
705 | +#: field:account.invoice,text_condition1_webkit:0 |
706 | +msgid "Header" |
707 | +msgstr "En-tête" |
708 | + |
709 | +#. module: invoice_webkit |
710 | +#: report:addons/invoice_webkit/report/account_invoice.mako:224 |
711 | +msgid "Rate" |
712 | +msgstr "Taux" |
713 | + |
714 | +#. module: invoice_webkit |
715 | +#: field:account.condition_text_webkit,name:0 |
716 | +msgid "Methode" |
717 | +msgstr "Méthode" |
718 | + |
719 | +#. module: invoice_webkit |
720 | +#: report:addons/invoice_webkit/report/account_invoice.mako:135 |
721 | +#: model:ir.model,name:invoice_webkit.model_account_invoice |
722 | +msgid "Invoice" |
723 | +msgstr "Facture" |
724 | + |
725 | +#. module: invoice_webkit |
726 | +#: view:account.condition_text_webkit:0 |
727 | +#: model:ir.model,name:invoice_webkit.model_account_condition_text_webkit |
728 | +msgid "Invoice condition text" |
729 | +msgstr "Invoice condition text" |
730 | + |
731 | +#. module: invoice_webkit |
732 | +#: report:addons/invoice_webkit/report/account_invoice.mako:141 |
733 | +msgid "Supplier Refund" |
734 | +msgstr "Supplier Refund" |
735 | + |
736 | +#. module: invoice_webkit |
737 | +#: report:addons/invoice_webkit/report/account_invoice.mako:176 |
738 | +msgid "Net Sub Total" |
739 | +msgstr "Sous total" |
740 | + |
741 | +#. module: invoice_webkit |
742 | +#: report:addons/invoice_webkit/report/account_invoice.mako:199 |
743 | +msgid "Net :" |
744 | +msgstr "Net :" |
745 | + |
746 | +#. module: invoice_webkit |
747 | +#: report:addons/invoice_webkit/report/account_invoice.mako:0 |
748 | +msgid "Bank" |
749 | +msgstr "Banque" |
750 | |
751 | === added file 'invoice_webkit/invoice.py' |
752 | --- invoice_webkit/invoice.py 1970-01-01 00:00:00 +0000 |
753 | +++ invoice_webkit/invoice.py 2012-12-18 16:32:20 +0000 |
754 | @@ -0,0 +1,69 @@ |
755 | +# -*- coding: utf-8 -*- |
756 | +############################################################################## |
757 | +# |
758 | +# Copyright (c) 2011 Camptocamp SA (http://www.camptocamp.com) |
759 | +# @author Bessi Nicolas, Vicent Renaville |
760 | +# |
761 | +# WARNING: This program as such is intended to be used by professional |
762 | +# programmers who take the whole responsability of assessing all potential |
763 | +# consequences resulting from its eventual inadequacies and bugs |
764 | +# End users who are looking for a ready-to-use solution with commercial |
765 | +# garantees and support are strongly adviced to contract a Free Software |
766 | +# Service Company |
767 | +# |
768 | +# This program is Free Software; you can redistribute it and/or |
769 | +# modify it under the terms of the GNU General Public License |
770 | +# as published by the Free Software Foundation; either version 2 |
771 | +# of the License, or (at your option) any later version. |
772 | +# |
773 | +# This program is distributed in the hope that it will be useful, |
774 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of |
775 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
776 | +# GNU General Public License for more details. |
777 | +# |
778 | +# You should have received a copy of the GNU General Public License |
779 | +# along with this program; if not, write to the Free Software |
780 | +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
781 | +# |
782 | +############################################################################## |
783 | +from openerp.osv.orm import Model, fields |
784 | + |
785 | +class InvoiceConditionText(Model): |
786 | + """add info condition in the invoice""" |
787 | + _name = "account.condition_text" |
788 | + _description = "Invoices conditions" |
789 | + |
790 | + _columns = { |
791 | + 'name' : fields.char('Condition summary', required=True, size=128), |
792 | + 'type' : fields.selection([('header','Top condition'), |
793 | + ('footer','Bottom condition')], |
794 | + 'type', required=True), |
795 | + |
796 | + 'text': fields.text('Condition', translate=True, required=True)} |
797 | + |
798 | +class AccountInvoice(Model): |
799 | + """ Add account.condition_text to invoice""" |
800 | + |
801 | + _inherit = "account.invoice" |
802 | + |
803 | + def _set_condition(self, cr, uid, inv_id, commentid, key): |
804 | + """Set the text of the notes in invoices""" |
805 | + if not commentid : |
806 | + return {} |
807 | + try : |
808 | + lang = self.browse(cr, uid, inv_id)[0].partner_id.lang |
809 | + except : |
810 | + lang = 'en_US' |
811 | + cond = self.pool.get('account.condition_text').browse(cr, uid, commentid, {'lang': lang}) |
812 | + return {'value': {key: cond.text}} |
813 | + |
814 | + def set_header(self, cr, uid, inv_id, commentid): |
815 | + return self._set_condition(cr, uid, inv_id, commentid, 'note1') |
816 | + |
817 | + def set_footer(self, cr, uid, inv_id, commentid): |
818 | + return self._set_condition(cr, uid, inv_id, commentid, 'note2') |
819 | + |
820 | + _columns = {'text_condition1': fields.many2one('account.condition_text', 'Header condition'), |
821 | + 'text_condition2': fields.many2one('account.condition_text', 'Footer condition'), |
822 | + 'note1' : fields.text('Header'), |
823 | + 'note2' : fields.text('Footer'),} |
824 | |
825 | === added file 'invoice_webkit/invoice_report.xml' |
826 | --- invoice_webkit/invoice_report.xml 1970-01-01 00:00:00 +0000 |
827 | +++ invoice_webkit/invoice_report.xml 2012-12-18 16:32:20 +0000 |
828 | @@ -0,0 +1,18 @@ |
829 | +<?xml version="1.0" encoding="utf-8"?> |
830 | +<openerp> |
831 | + <data> |
832 | + <!-- replace by account.account_invoices --> |
833 | + <report |
834 | + auto="False" |
835 | + id="account.account_invoices" |
836 | + model="account.invoice" |
837 | + name="account.invoice" |
838 | + file="invoice_webkit/report/account_invoice.mako" |
839 | + string="Invoices" |
840 | + attachment="(object.state in ('open','paid')) and ('INV'+(object.number or '').replace('/',''))" |
841 | + attachment_use="1" |
842 | + multi="True" |
843 | + webkit_header="base_headers_webkit.base_reports_portrait_header" |
844 | + report_type="webkit"/> |
845 | + </data> |
846 | +</openerp> |
847 | |
848 | === added directory 'invoice_webkit/report' |
849 | === added file 'invoice_webkit/report/__init__.py' |
850 | --- invoice_webkit/report/__init__.py 1970-01-01 00:00:00 +0000 |
851 | +++ invoice_webkit/report/__init__.py 2012-12-18 16:32:20 +0000 |
852 | @@ -0,0 +1,30 @@ |
853 | +# -*- coding: utf-8 -*- |
854 | +############################################################################## |
855 | +# |
856 | +# Copyright (c) 2011 Camptocamp SA (http://www.camptocamp.com) |
857 | +# @author Guewen Baconnier |
858 | +# |
859 | +# WARNING: This program as such is intended to be used by professional |
860 | +# programmers who take the whole responsability of assessing all potential |
861 | +# consequences resulting from its eventual inadequacies and bugs |
862 | +# End users who are looking for a ready-to-use solution with commercial |
863 | +# garantees and support are strongly adviced to contract a Free Software |
864 | +# Service Company |
865 | +# |
866 | +# This program is Free Software; you can redistribute it and/or |
867 | +# modify it under the terms of the GNU General Public License |
868 | +# as published by the Free Software Foundation; either version 2 |
869 | +# of the License, or (at your option) any later version. |
870 | +# |
871 | +# This program is distributed in the hope that it will be useful, |
872 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of |
873 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
874 | +# GNU General Public License for more details. |
875 | +# |
876 | +# You should have received a copy of the GNU General Public License |
877 | +# along with this program; if not, write to the Free Software |
878 | +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
879 | +# |
880 | +############################################################################## |
881 | + |
882 | +import account_invoice |
883 | |
884 | === added file 'invoice_webkit/report/account_invoice.mako' |
885 | --- invoice_webkit/report/account_invoice.mako 1970-01-01 00:00:00 +0000 |
886 | +++ invoice_webkit/report/account_invoice.mako 2012-12-18 16:32:20 +0000 |
887 | @@ -0,0 +1,330 @@ |
888 | +<html> |
889 | +<head> |
890 | + <style type="text/css"> |
891 | + ${css} |
892 | + |
893 | +.list_invoice_table { |
894 | + border:thin solid #E3E4EA; |
895 | + text-align:center; |
896 | + border-collapse: collapse; |
897 | +} |
898 | +.list_invoice_table th { |
899 | + background-color: #EEEEEE; |
900 | + border: thin solid #000000; |
901 | + text-align:center; |
902 | + font-size:12; |
903 | + font-weight:bold; |
904 | + padding-right:3px; |
905 | + padding-left:3px; |
906 | +} |
907 | +.list_invoice_table td { |
908 | + border-top : thin solid #EEEEEE; |
909 | + text-align:left; |
910 | + font-size:12; |
911 | + padding-right:3px; |
912 | + padding-left:3px; |
913 | + padding-top:3px; |
914 | + padding-bottom:3px; |
915 | +} |
916 | +.list_invoice_table thead { |
917 | + display:table-header-group; |
918 | +} |
919 | + |
920 | + |
921 | +.list_bank_table { |
922 | + text-align:center; |
923 | + border-collapse: collapse; |
924 | +} |
925 | +.list_bank_table th { |
926 | + background-color: #EEEEEE; |
927 | + text-align:left; |
928 | + font-size:12; |
929 | + font-weight:bold; |
930 | + padding-right:3px; |
931 | + padding-left:3px; |
932 | +} |
933 | +.list_bank_table td { |
934 | + text-align:left; |
935 | + font-size:12; |
936 | + padding-right:3px; |
937 | + padding-left:3px; |
938 | + padding-top:3px; |
939 | + padding-bottom:3px; |
940 | +} |
941 | + |
942 | + |
943 | +.list_tax_table { |
944 | +} |
945 | +.list_tax_table td { |
946 | + text-align:left; |
947 | + font-size:12; |
948 | +} |
949 | +.list_tax_table th { |
950 | +} |
951 | +.list_tax_table thead { |
952 | + display:table-header-group; |
953 | +} |
954 | + |
955 | + |
956 | +.list_total_table { |
957 | + border:thin solid #E3E4EA; |
958 | + text-align:center; |
959 | + border-collapse: collapse; |
960 | +} |
961 | +.list_total_table td { |
962 | + border-top : thin solid #EEEEEE; |
963 | + text-align:left; |
964 | + font-size:12; |
965 | + padding-right:3px; |
966 | + padding-left:3px; |
967 | + padding-top:3px; |
968 | + padding-bottom:3px; |
969 | +} |
970 | +.list_total_table th { |
971 | + background-color: #EEEEEE; |
972 | + border: thin solid #000000; |
973 | + text-align:center; |
974 | + font-size:12; |
975 | + font-weight:bold; |
976 | + padding-right:3px |
977 | + padding-left:3px |
978 | +} |
979 | +.list_total_table thead { |
980 | + display:table-header-group; |
981 | +} |
982 | + |
983 | + |
984 | +.no_bloc { |
985 | + border-top: thin solid #ffffff ; |
986 | +} |
987 | + |
988 | +.right_table { |
989 | + right: 4cm; |
990 | + width:"100%"; |
991 | +} |
992 | + |
993 | +.std_text { |
994 | + font-size:12; |
995 | +} |
996 | + |
997 | +td.amount |
998 | + white-space: nowrap; |
999 | + text-align: right; |
1000 | +} |
1001 | + |
1002 | +tfoot.totals tr:first-child td{ |
1003 | + padding-top: 15px; |
1004 | +} |
1005 | + |
1006 | +th.date { |
1007 | + width: 90px; |
1008 | +} |
1009 | + |
1010 | +td.amount, th.amount { |
1011 | + text-align: right; |
1012 | + white-space: nowrap; |
1013 | +} |
1014 | +.header_table { |
1015 | + text-align: center; |
1016 | + border: 1px solid lightGrey; |
1017 | + border-collapse: collapse; |
1018 | +} |
1019 | +.header_table th { |
1020 | + font-size: 12px; |
1021 | + border: 1px solid lightGrey; |
1022 | +} |
1023 | +.header_table td { |
1024 | + font-size: 12px; |
1025 | + border: 1px solid lightGrey; |
1026 | +} |
1027 | + |
1028 | +td.date { |
1029 | + white-space: nowrap; |
1030 | + width: 90px; |
1031 | +} |
1032 | + |
1033 | +td.vat { |
1034 | + white-space: nowrap; |
1035 | +} |
1036 | + |
1037 | + </style> |
1038 | +</head> |
1039 | +<body> |
1040 | + <%page expression_filter="entity"/> |
1041 | + <% |
1042 | + def carriage_returns(text): |
1043 | + return text.replace('\n', '<br />') |
1044 | + %> |
1045 | + |
1046 | + %for inv in objects: |
1047 | + <% setLang(inv.partner_id.lang) %> |
1048 | + <div class="address"> |
1049 | + <table class="recipient"> |
1050 | + <tr><td class="name">${inv.partner_id.title and inv.partner_id.title.name or ''} ${inv.partner_id.name }</td></tr> |
1051 | + <tr><td>${inv.partner_id.street or ''}</td></tr> |
1052 | + <tr><td>${inv.partner_id.street2 or ''}</td></tr> |
1053 | + <tr><td>${inv.partner_id.zip or ''} ${inv.partner_id.city or ''}</td></tr> |
1054 | + %if inv.partner_id.country_id: |
1055 | + <tr><td>${inv.partner_id.country_id.name or ''} </td></tr> |
1056 | + %endif |
1057 | + </table> |
1058 | + </div> |
1059 | + <div> |
1060 | + |
1061 | + %if inv.note1 : |
1062 | + <p class="std_text"> ${inv.note1 | carriage_returns} </p> |
1063 | + %endif |
1064 | + </div> |
1065 | + <h1 style="clear: both; padding-top: 20px;"> |
1066 | + %if inv.type == 'out_invoice' and inv.state == 'proforma2': |
1067 | + ${_("PRO-FORMA")} |
1068 | + %elif inv.type == 'out_invoice' and inv.state == 'draft': |
1069 | + ${_("Draft Invoice")} |
1070 | + %elif inv.type == 'out_invoice' and inv.state == 'cancel': |
1071 | + ${_("Cancelled Invoice")} ${inv.number or ''} |
1072 | + %elif inv.type == 'out_invoice': |
1073 | + ${_("Invoice")} ${inv.number or ''} |
1074 | + %elif inv.type == 'in_invoice': |
1075 | + ${_("Supplier Invoice")} ${inv.number or ''} |
1076 | + %elif inv.type == 'out_refund': |
1077 | + ${_("Refund")} ${inv.number or ''} |
1078 | + %elif inv.type == 'in_refund': |
1079 | + ${_("Supplier Refund")} ${inv.number or ''} |
1080 | + %endif |
1081 | + </h1> |
1082 | + <h3 style="clear: both; padding-top: 20px;"> |
1083 | + ${_("Subject : ")} ${inv.name or ''} |
1084 | + </h3> |
1085 | + |
1086 | + <table class="basic_table" width="100%"> |
1087 | + <tr> |
1088 | + <th class="date">${_("Invoice Date")}</td> |
1089 | + <th class="date">${_("Due Date")}</td> |
1090 | + <th style="text-align:left;">${_("Our Ref.")}</td> |
1091 | + </tr> |
1092 | + <tr> |
1093 | + <td class="date">${formatLang(inv.date_invoice, date=True)}</td> |
1094 | + <td class="date">${formatLang(inv.date_due, date=True)}</td> |
1095 | + <td style="text-align:left;">${inv.origin or ''}</td> |
1096 | + </tr> |
1097 | + </table> |
1098 | + |
1099 | + <table class="list_invoice_table" width="100%" style="margin-top: 20px;"> |
1100 | + <thead> |
1101 | + <tr> |
1102 | + <th>${_("Description")}</th> |
1103 | + <th>${_("Qty")}</th> |
1104 | + <th>${_("UoM")}</th> |
1105 | + <th>${_("Unit Price")}</th> |
1106 | + <th>${_("Taxes")}</th> |
1107 | + <th>${_("Disc.(%)")}</th> |
1108 | + <th>${_("Net Sub Total")}</th> |
1109 | + </tr> |
1110 | + </thead> |
1111 | + <tbody> |
1112 | + %for line in inv.invoice_line : |
1113 | + <tr > |
1114 | + <td>${line.product_id and line.product_id.code or ''} ${line.product_id and line.product_id.name or ''}</td> |
1115 | + <td class="amount">${formatLang(line.quantity or 0.0,digits=get_digits(dp='Account'))}</td> |
1116 | + <td class="amount">${line.uos_id and line.uos_id.name or ''}</td> |
1117 | + <td class="amount">${formatLang(line.price_unit)}</td> |
1118 | + <td style="font-style:italic; font-size: 10;text-align:center;" >${ ', '.join([ tax.name or '' for tax in line.invoice_line_tax_id ])}</td> |
1119 | + <td class="amount" width="10%">${line.discount and formatLang(line.discount, digits=get_digits(dp='Account')) or ''} ${line.discount and '%' or ''}</td> |
1120 | + <td class="amount" width="13%">${formatLang(line.price_subtotal, digits=get_digits(dp='Account'))} ${inv.currency_id.symbol}</td> |
1121 | + </tr> |
1122 | + %if line.name : |
1123 | + <tr> |
1124 | + <td colspan="7" class="note" style="font-style:italic; font-size: 10; border-top: thin solid #ffffff ; border-right: thin solid #E3E4EA; padding:20;">${line.name | carriage_returns}</td> |
1125 | + </tr> |
1126 | + %endif |
1127 | + %endfor |
1128 | + </tbody> |
1129 | + <tfoot class="totals"> |
1130 | + <tr> |
1131 | + <td colspan="6" style="text-align:right;border-right: thin solid #ffffff ;border-left: thin solid #ffffff ;"> |
1132 | + <b>${_("Net :")}</b> |
1133 | + </td> |
1134 | + <td class="amount" style="border-right: thin solid #ffffff ;border-left: thin solid #ffffff ;"> |
1135 | + ${formatLang(inv.amount_untaxed, digits=get_digits(dp='Account'))} ${inv.currency_id.symbol} |
1136 | + </td> |
1137 | + </tr> |
1138 | + <tr class="no_bloc"> |
1139 | + <td colspan="6" style="text-align:right; border-top: thin solid #ffffff ; border-right: thin solid #ffffff ;border-left: thin solid #ffffff ;"> |
1140 | + <b>${_("Taxes:")}</b> |
1141 | + </td> |
1142 | + <td class="amount" style="border-right: thin solid #ffffff ;border-top: thin solid #ffffff ;border-left: thin solid #ffffff ;"> |
1143 | + ${formatLang(inv.amount_tax, digits=get_digits(dp='Account'))} ${inv.currency_id.symbol} |
1144 | + </td> |
1145 | + </tr> |
1146 | + <tr> |
1147 | + <td colspan="6" style="border-right: thin solid #ffffff ;border-top: thin solid #ffffff ;border-left: thin solid #ffffff ;border-bottom: thin solid #ffffff ;text-align:right;"> |
1148 | + <b>${_("Total:")}</b> |
1149 | + </td> |
1150 | + <td class="amount" style="border-right: thin solid #ffffff ;border-top: thin solid #ffffff ;border-left: thin solid #ffffff ;border-bottom: thin solid #ffffff ;"> |
1151 | + <b>${formatLang(inv.amount_total, digits=get_digits(dp='Account'))} ${inv.currency_id.symbol}</b> |
1152 | + </td> |
1153 | + </tr> |
1154 | + </tfoot> |
1155 | + </table> |
1156 | + <br/> |
1157 | + <table class="list_total_table" width="40%" > |
1158 | + <tr> |
1159 | + <th style="text-align:left;">${_("Rate")}</th> |
1160 | + <th>${_("Base")}</th> |
1161 | + <th>${_("Tax")}</th> |
1162 | + </tr> |
1163 | + %if inv.tax_line : |
1164 | + %for t in inv.tax_line : |
1165 | + <tr> |
1166 | + <td style="text-align:left;">${ t.name } </td> |
1167 | + <td class="amount">${ formatLang(t.base, digits=get_digits(dp='Account')) }</td> |
1168 | + <td class="amount">${ formatLang(t.amount, digits=get_digits(dp='Account')) }</td> |
1169 | + </tr> |
1170 | + %endfor |
1171 | + %endif |
1172 | + </table> |
1173 | + <br/> |
1174 | + <br/> |
1175 | + <h4> |
1176 | + ${_("Thank you for your prompt payment")} |
1177 | + </h4> |
1178 | + <br/> |
1179 | + <% |
1180 | + inv_bank = inv.partner_bank_id |
1181 | + bank_institution = inv_bank and inv_bank.bank |
1182 | + %> |
1183 | + <table class="list_bank_table" width="100%" > |
1184 | + <tr> |
1185 | + <th style="width:20%;">${_("Bank")}</th> |
1186 | + <td style="width:30%;text-align:left;">${ bank_institution and bank_institution.name or '-' } </td> |
1187 | + %if inv.partner_id and inv.partner_id.vat : |
1188 | + <th style="width:20%;">${_("Customer VAT No")}</th> |
1189 | + <td style="width:30%;">${inv.partner_id.vat or '-'}</td> |
1190 | + %else: |
1191 | + <!-- conserve table's cells widths --> |
1192 | + <td style="width:20%;"></td> |
1193 | + <td style="width:30%;"></td> |
1194 | + %endif |
1195 | + </tr> |
1196 | + <tr> |
1197 | + <th style="width:20%;">${_("IBAN")}</th> |
1198 | + <td style="width:30%;text-align:left;">${ inv_bank and inv_bank.iban or '-' }</td> |
1199 | + <th style="width:20%;">${_("Our VAT No")}</th> |
1200 | + <td style="width:30%;" class="vat">''</td> |
1201 | + </tr> |
1202 | + <tr> |
1203 | + <th width="20%">${_("BIC")}</th> |
1204 | + <td style="width:30%;">${ inv.partner_bank_id and inv.partner_bank_id.bank and inv.partner_bank_id.bank.bic or '-' }</td> |
1205 | + </tr> |
1206 | + </table> |
1207 | + <br/> |
1208 | + %if inv.comment : |
1209 | + <p class="std_text">${inv.comment | carriage_returns}</p> |
1210 | + %endif |
1211 | + %if inv.note2 : |
1212 | + <p class="std_text">${inv.note2 | carriage_returns}</p> |
1213 | + %endif |
1214 | + <p style="page-break-after:always"></p> |
1215 | + %endfor |
1216 | +</body> |
1217 | +</html> |
1218 | |
1219 | === added file 'invoice_webkit/report/account_invoice.py' |
1220 | --- invoice_webkit/report/account_invoice.py 1970-01-01 00:00:00 +0000 |
1221 | +++ invoice_webkit/report/account_invoice.py 2012-12-18 16:32:20 +0000 |
1222 | @@ -0,0 +1,56 @@ |
1223 | +# -*- coding: utf-8 -*- |
1224 | +############################################################################## |
1225 | +# |
1226 | +# Copyright (c) 2011 Camptocamp SA (http://www.camptocamp.com) |
1227 | +# @author Guewen Baconnier, Vincent Renaville, Nicolas Bessi |
1228 | +# |
1229 | +# WARNING: This program as such is intended to be used by professional |
1230 | +# programmers who take the whole responsability of assessing all potential |
1231 | +# consequences resulting from its eventual inadequacies and bugs |
1232 | +# End users who are looking for a ready-to-use solution with commercial |
1233 | +# garantees and support are strongly adviced to contract a Free Software |
1234 | +# Service Company |
1235 | +# |
1236 | +# This program is Free Software; you can redistribute it and/or |
1237 | +# modify it under the terms of the GNU General Public License |
1238 | +# as published by the Free Software Foundation; either version 2 |
1239 | +# of the License, or (at your option) any later version. |
1240 | +# |
1241 | +# This program is distributed in the hope that it will be useful, |
1242 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of |
1243 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
1244 | +# GNU General Public License for more details. |
1245 | +# |
1246 | +# You should have received a copy of the GNU General Public License |
1247 | +# along with this program; if not, write to the Free Software |
1248 | +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
1249 | +# |
1250 | +############################################################################## |
1251 | +import time |
1252 | + |
1253 | +from openerp.report import report_sxw |
1254 | +from openerp import pooler |
1255 | + |
1256 | +class AccountInvoice_Report(report_sxw.rml_parse): |
1257 | + def __init__(self, cr, uid, name, context): |
1258 | + super(AccountInvoice_Report, self).__init__(cr, uid, name, context=context) |
1259 | + self.localcontext.update({ |
1260 | + 'time': time, |
1261 | + 'cr': cr, |
1262 | + 'uid': uid, |
1263 | + 'company_vat': self._get_company_vat, |
1264 | + }) |
1265 | + |
1266 | + |
1267 | + def _get_company_vat(self): |
1268 | + res_users_obj = pooler.get_pool(self.cr.dbname).get('res.users') |
1269 | + company_vat = res_users_obj.browse(self.cr, self.uid, self.uid).company_id.partner_id.vat |
1270 | + if company_vat: |
1271 | + return company_vat |
1272 | + else: |
1273 | + return False |
1274 | + |
1275 | +report_sxw.report_sxw('report.account.invoice.webkit', |
1276 | + 'account.invoice', |
1277 | + 'invoice_webkit/report/account_invoice.mako', |
1278 | + parser=AccountInvoice_Report) |
1279 | |
1280 | === added directory 'invoice_webkit/view' |
1281 | === added file 'invoice_webkit/view/invoice_view.xml' |
1282 | --- invoice_webkit/view/invoice_view.xml 1970-01-01 00:00:00 +0000 |
1283 | +++ invoice_webkit/view/invoice_view.xml 2012-12-18 16:32:20 +0000 |
1284 | @@ -0,0 +1,68 @@ |
1285 | +<?xml version="1.0"?> |
1286 | +<openerp> |
1287 | + <data> |
1288 | + <record model="ir.ui.view" id="view_invoice_condition_webkit"> |
1289 | + <field name="name">account.condition_text.form</field> |
1290 | + <field name="model">account.condition_text</field> |
1291 | + <field name="type">form</field> |
1292 | + <field name="arch" type="xml"> |
1293 | + <form string="Invoice condition text"> |
1294 | + <field name="name" select="1"/> |
1295 | + <field name="type" select="1"/> |
1296 | + <field name="text" colspan="4"/> |
1297 | + </form> |
1298 | + </field> |
1299 | + </record> |
1300 | + <record model="ir.ui.view" id="view_invoice_condition_list_webkit"> |
1301 | + <field name="name">account.condition_text.list</field> |
1302 | + <field name="model">account.condition_text</field> |
1303 | + <field name="type">tree</field> |
1304 | + <field name="priority" eval="6"/> |
1305 | + <field name="arch" type="xml"> |
1306 | + <tree string="Invoice condition text"> |
1307 | + <field name="name" select="1"/> |
1308 | + <field name="type" select="1"/> |
1309 | + <field name="text"/> |
1310 | + </tree> |
1311 | + </field> |
1312 | + </record> |
1313 | + |
1314 | + <record model="ir.actions.act_window" id="action_invoice_condition_webkit"> |
1315 | + <field name="name">account.condition_text</field> |
1316 | + <field name="type">ir.actions.act_window</field> |
1317 | + <field name="res_model">account.condition_text</field> |
1318 | + <field name="view_type">form</field> |
1319 | + <field name="view_mode">tree,form</field> |
1320 | + <field name="view_id" ref="view_invoice_condition_list_webkit"/> |
1321 | + </record> |
1322 | + |
1323 | + <record model="ir.actions.act_window" id="action_invoice_condition_form_webkit"> |
1324 | + <field name="name">account.condition_text</field> |
1325 | + <field name="type">ir.actions.act_window</field> |
1326 | + <field name="res_model">account.condition_text</field> |
1327 | + <field name="view_type">form</field> |
1328 | + <field name="view_id" ref="view_invoice_condition_webkit"/> |
1329 | + </record> |
1330 | + |
1331 | + <record model="ir.ui.view" id="invoice_form_add_notes"> |
1332 | + <field name="name">account.invoice.form.add.notes</field> |
1333 | + <field name="model">account.invoice</field> |
1334 | + <field name="inherit_id" ref="account.invoice_form"/> |
1335 | + <field name="arch" type="xml"> |
1336 | + <xpath expr="//notebook" position="inside"> |
1337 | + <page string="Conditions"> |
1338 | + <group> |
1339 | + <field name="text_condition1" domain="[('type','=','header')]" |
1340 | + on_change="set_header(text_condition1)" colspan="2"/> |
1341 | + <field name="text_condition2" domain="[('type','=','footer')]" |
1342 | + on_change="set_footer(text_condition2)" colspan="2"/> |
1343 | + <field name="note1" colspan="4" nolabel="1" placeholder="Your top conditions here"/> |
1344 | + <field name="note2" colspan="4" nolabel="1" placeholder="Your bottom conditions here"/> |
1345 | + </group> |
1346 | + </page> |
1347 | + </xpath> |
1348 | + </field> |
1349 | + </record> |
1350 | + |
1351 | + </data> |
1352 | +</openerp> |