Merge lp:~vauxoo/addons-vauxoo/7.0_addons-vauxoo_account_move_report-yzk into lp:addons-vauxoo/7.0
- 7.0_addons-vauxoo_account_move_report-yzk
- Merge into 7.0
Proposed by
Isaac López Zúñiga
Status: | Merged |
---|---|
Merged at revision: | 924 |
Proposed branch: | lp:~vauxoo/addons-vauxoo/7.0_addons-vauxoo_account_move_report-yzk |
Merge into: | lp:addons-vauxoo/7.0 |
Diff against target: |
583 lines (+535/-0) 9 files modified
account_move_report/__init__.py (+23/-0) account_move_report/__openerp__.py (+50/-0) account_move_report/account_move_report.xml (+21/-0) account_move_report/data.xml (+99/-0) account_move_report/i18n/account_move_report.pot (+77/-0) account_move_report/i18n/es.po (+72/-0) account_move_report/report/__init__.py (+24/-0) account_move_report/report/account_move_html.py (+51/-0) account_move_report/report/account_move_report_html.mako (+118/-0) |
To merge this branch: | bzr merge lp:~vauxoo/addons-vauxoo/7.0_addons-vauxoo_account_move_report-yzk |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
hbto [Vauxoo] http://www.vauxoo.com | Approve | ||
Review via email:
|
Commit message
Description of the change
Agrega el módulo account_move_report
To post a comment you must log in.
Revision history for this message
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
hbto [Vauxoo] http://www.vauxoo.com (humbertoarocha) wrote : | # |
- 926. By Isaac López Zúñiga
-
[ADD][account_
move_report. pot] - 927. By Isaac López Zúñiga
-
[REF][account_
move_report] translation
Revision history for this message
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
hbto [Vauxoo] http://www.vauxoo.com (humbertoarocha) : | # |
review:
Approve
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === added directory 'account_move_report' | |||
2 | === added file 'account_move_report/__init__.py' | |||
3 | --- account_move_report/__init__.py 1970-01-01 00:00:00 +0000 | |||
4 | +++ account_move_report/__init__.py 2013-11-08 21:42:25 +0000 | |||
5 | @@ -0,0 +1,23 @@ | |||
6 | 1 | #!/usr/bin/python | ||
7 | 2 | # -*- encoding: utf-8 -*- | ||
8 | 3 | ########################################################################### | ||
9 | 4 | # Module Writen to OpenERP, Open Source Management Solution | ||
10 | 5 | # Copyright (C) Vauxoo (<http://vauxoo.com>). | ||
11 | 6 | # All Rights Reserved | ||
12 | 7 | ###############Credits###################################################### | ||
13 | 8 | # Coded by: Luis Ernesto García (ernesto_gm@vauxoo.com) | ||
14 | 9 | ############################################################################# | ||
15 | 10 | # This program is free software: you can redistribute it and/or modify | ||
16 | 11 | # it under the terms of the GNU Affero General Public License as published by | ||
17 | 12 | # the Free Software Foundation, either version 3 of the License, or | ||
18 | 13 | # (at your option) any later version. | ||
19 | 14 | # | ||
20 | 15 | # This program is distributed in the hope that it will be useful, | ||
21 | 16 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
22 | 17 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
23 | 18 | # GNU Affero General Public License for more details. | ||
24 | 19 | # | ||
25 | 20 | # You should have received a copy of the GNU Affero General Public License | ||
26 | 21 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
27 | 22 | ################################################################################ | ||
28 | 23 | import report | ||
29 | 0 | 24 | ||
30 | === added file 'account_move_report/__openerp__.py' | |||
31 | --- account_move_report/__openerp__.py 1970-01-01 00:00:00 +0000 | |||
32 | +++ account_move_report/__openerp__.py 2013-11-08 21:42:25 +0000 | |||
33 | @@ -0,0 +1,50 @@ | |||
34 | 1 | #!/usr/bin/python | ||
35 | 2 | # -*- encoding: utf-8 -*- | ||
36 | 3 | ########################################################################### | ||
37 | 4 | # Module Writen to OpenERP, Open Source Management Solution | ||
38 | 5 | # Copyright (C) Vauxoo (<http://vauxoo.com>). | ||
39 | 6 | # All Rights Reserved | ||
40 | 7 | ###############Credits###################################################### | ||
41 | 8 | # Coded by: Luis Ernesto García (ernesto_gm@vauxoo.com) | ||
42 | 9 | ############################################################################# | ||
43 | 10 | # This program is free software: you can redistribute it and/or modify | ||
44 | 11 | # it under the terms of the GNU Affero General Public License as published by | ||
45 | 12 | # the Free Software Foundation, either version 3 of the License, or | ||
46 | 13 | # (at your option) any later version. | ||
47 | 14 | # | ||
48 | 15 | # This program is distributed in the hope that it will be useful, | ||
49 | 16 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
50 | 17 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
51 | 18 | # GNU Affero General Public License for more details. | ||
52 | 19 | # | ||
53 | 20 | # You should have received a copy of the GNU Affero General Public License | ||
54 | 21 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
55 | 22 | ################################################################################ | ||
56 | 23 | |||
57 | 24 | { | ||
58 | 25 | "name" : "Journal Entries report", | ||
59 | 26 | "version" : "1.0", | ||
60 | 27 | "author" : "Vauxoo", | ||
61 | 28 | "category" : "Accouting", | ||
62 | 29 | "description" : """ | ||
63 | 30 | Report for Journal Entries | ||
64 | 31 | ========================== | ||
65 | 32 | |||
66 | 33 | This module adds a report in journal entries. You can print one o several | ||
67 | 34 | journal entries in PDF file. | ||
68 | 35 | |||
69 | 36 | """, | ||
70 | 37 | "website" : "http://www.vauxoo.com/", | ||
71 | 38 | "license" : "AGPL-3", | ||
72 | 39 | "depends" : [ | ||
73 | 40 | "account", | ||
74 | 41 | "report_webkit", | ||
75 | 42 | ], | ||
76 | 43 | "demo" : [], | ||
77 | 44 | "data" : [ | ||
78 | 45 | "data.xml", | ||
79 | 46 | "account_move_report.xml", | ||
80 | 47 | ], | ||
81 | 48 | "installable" : True, | ||
82 | 49 | "active" : False, | ||
83 | 50 | } | ||
84 | 0 | 51 | ||
85 | === added file 'account_move_report/account_move_report.xml' | |||
86 | --- account_move_report/account_move_report.xml 1970-01-01 00:00:00 +0000 | |||
87 | +++ account_move_report/account_move_report.xml 2013-11-08 21:42:25 +0000 | |||
88 | @@ -0,0 +1,21 @@ | |||
89 | 1 | <?xml version="1.0" encoding="utf-8"?> | ||
90 | 2 | <openerp> | ||
91 | 3 | <data> | ||
92 | 4 | <report auto="False" | ||
93 | 5 | id="account_move_report_webkit" | ||
94 | 6 | model="account.move" | ||
95 | 7 | name="account.move.report.webkit" | ||
96 | 8 | file="account_move_report/report/account_move_report_html.mako" | ||
97 | 9 | string="Report Journal Entries" | ||
98 | 10 | report_type="webkit" | ||
99 | 11 | attachment_use="1"/> | ||
100 | 12 | |||
101 | 13 | <record id="property_account_move_report_webkit" model="ir.property"> | ||
102 | 14 | <field name="name">webkit_header</field> | ||
103 | 15 | <field name="fields_id" ref="report_webkit.field_ir_act_report_xml_webkit_header"/> | ||
104 | 16 | <field eval="'ir.header_webkit,'+str(ref('account_move_report.ir_header_webkit_account_move'))" model="ir.header_webkit" name="value"/> | ||
105 | 17 | <field eval="'ir.actions.report.xml,'+str(ref('account_move_report.account_move_report_webkit'))" model="ir.actions.report.xml" name="res_id"/> | ||
106 | 18 | </record> | ||
107 | 19 | |||
108 | 20 | </data> | ||
109 | 21 | </openerp> | ||
110 | 0 | 22 | ||
111 | === added file 'account_move_report/data.xml' | |||
112 | --- account_move_report/data.xml 1970-01-01 00:00:00 +0000 | |||
113 | +++ account_move_report/data.xml 2013-11-08 21:42:25 +0000 | |||
114 | @@ -0,0 +1,99 @@ | |||
115 | 1 | <?xml version="1.0" ?> | ||
116 | 2 | <openerp> | ||
117 | 3 | <data noupdate="1"> | ||
118 | 4 | <record id="ir_header_webkit_account_move" model="ir.header_webkit"> | ||
119 | 5 | <field name="footer_html"><![CDATA[<html> | ||
120 | 6 | <head> | ||
121 | 7 | <meta content="text/html; charset=UTF-8" http-equiv="content-type"/> | ||
122 | 8 | <script> | ||
123 | 9 | function subst() { | ||
124 | 10 | var vars={}; | ||
125 | 11 | var x=document.location.search.substring(1).split('&'); | ||
126 | 12 | for(var i in x) {var z=x[i].split('=',2);vars[z[0]] = unescape(z[1]);} | ||
127 | 13 | var x=['frompage','topage','page','webpage','section','subsection','subsubsection']; | ||
128 | 14 | for(var i in x) { | ||
129 | 15 | var y = document.getElementsByClassName(x[i]); | ||
130 | 16 | for(var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]]; | ||
131 | 17 | } | ||
132 | 18 | } | ||
133 | 19 | </script> | ||
134 | 20 | </head> | ||
135 | 21 | <body style="border:0; margin: 0;" onload="subst()"> | ||
136 | 22 | <table style="border-top: 1px solid black; width: 100%"> | ||
137 | 23 | <tr > | ||
138 | 24 | <td style="text-align:right;font-size:9;" width="35%">Generado con software libre en OpenERP y Webkit por http://www.vauxoo.com</td> | ||
139 | 25 | <td style="text-align:right;font-size:12;" width="55%">Page <span class="page"/></td><td style="text-align:left;font-size:12;"> of <span class="topage"/></td> | ||
140 | 26 | </tr> | ||
141 | 27 | </table> | ||
142 | 28 | </body> | ||
143 | 29 | </html>]]></field> | ||
144 | 30 | <field name="orientation">Portrait</field> | ||
145 | 31 | <field name="format">Letter</field> | ||
146 | 32 | <field name="html"><![CDATA[<html> | ||
147 | 33 | <head> | ||
148 | 34 | <meta content="text/html; charset=UTF-8" http-equiv="content-type"/> | ||
149 | 35 | <script> | ||
150 | 36 | function subst() { | ||
151 | 37 | var vars={}; | ||
152 | 38 | var x=document.location.search.substring(1).split('&'); | ||
153 | 39 | for(var i in x) {var z=x[i].split('=',2);vars[z[0]] = unescape(z[1]);} | ||
154 | 40 | var x=['frompage','topage','page','webpage','section','subsection','subsubsection']; | ||
155 | 41 | for(var i in x) { | ||
156 | 42 | var y = document.getElementsByClassName(x[i]); | ||
157 | 43 | for(var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]]; | ||
158 | 44 | } | ||
159 | 45 | } | ||
160 | 46 | </script> | ||
161 | 47 | <style type="text/css"> | ||
162 | 48 | ${css} | ||
163 | 49 | </style> | ||
164 | 50 | </head> | ||
165 | 51 | <body style="border:0; margin: 0;" onload="subst()"> | ||
166 | 52 | ${_debug or ''|n} </body> | ||
167 | 53 | </html>]]> | ||
168 | 54 | </field> | ||
169 | 55 | <field eval="0.0" name="margin_top"/> | ||
170 | 56 | <field name="css" ><![CDATA[ | ||
171 | 57 | .company_font{ | ||
172 | 58 | text-align: center; | ||
173 | 59 | font-size: 16pt; | ||
174 | 60 | } | ||
175 | 61 | td.basic_td | ||
176 | 62 | { | ||
177 | 63 | text-align: center; | ||
178 | 64 | font-size: 10; | ||
179 | 65 | padding-right:3px; | ||
180 | 66 | padding-left:3px; | ||
181 | 67 | } | ||
182 | 68 | td.dir_font{ | ||
183 | 69 | font-size: 10; | ||
184 | 70 | text-align: center; | ||
185 | 71 | } | ||
186 | 72 | td.date_font{ | ||
187 | 73 | font-size: 12; | ||
188 | 74 | text-align: center; | ||
189 | 75 | } | ||
190 | 76 | .title | ||
191 | 77 | { | ||
192 | 78 | text-align: center; | ||
193 | 79 | border-top:1px solid #000000; | ||
194 | 80 | border-bottom: solid 1.5px #000000; | ||
195 | 81 | font-size: 12; | ||
196 | 82 | padding-right:3px; | ||
197 | 83 | padding-left:3px; | ||
198 | 84 | } | ||
199 | 85 | .table | ||
200 | 86 | { | ||
201 | 87 | border-collapse:collapse; | ||
202 | 88 | } | ||
203 | 89 | |||
204 | 90 | |||
205 | 91 | ]]> </field> | ||
206 | 92 | <field name="name">Poliza</field> | ||
207 | 93 | </record> | ||
208 | 94 | <record id="ir_header_img_companylogo0" model="ir.header_img"> | ||
209 | 95 | <field eval=""""jpg"""" name="type"/> | ||
210 | 96 | <field eval=""""company_logo"""" name="name"/> | ||
211 | 97 | </record> | ||
212 | 98 | </data> | ||
213 | 99 | </openerp> | ||
214 | 0 | 100 | ||
215 | === added directory 'account_move_report/i18n' | |||
216 | === added file 'account_move_report/i18n/account_move_report.pot' | |||
217 | --- account_move_report/i18n/account_move_report.pot 1970-01-01 00:00:00 +0000 | |||
218 | +++ account_move_report/i18n/account_move_report.pot 2013-11-08 21:42:25 +0000 | |||
219 | @@ -0,0 +1,77 @@ | |||
220 | 1 | # Translation of OpenERP Server. | ||
221 | 2 | # This file contains the translation of the following modules: | ||
222 | 3 | # * account_move_report | ||
223 | 4 | # | ||
224 | 5 | msgid "" | ||
225 | 6 | msgstr "" | ||
226 | 7 | "Project-Id-Version: OpenERP Server 7.0\n" | ||
227 | 8 | "Report-Msgid-Bugs-To: \n" | ||
228 | 9 | "POT-Creation-Date: 2013-11-08 21:04+0000\n" | ||
229 | 10 | "PO-Revision-Date: 2013-11-08 21:04+0000\n" | ||
230 | 11 | "Last-Translator: <>\n" | ||
231 | 12 | "Language-Team: \n" | ||
232 | 13 | "MIME-Version: 1.0\n" | ||
233 | 14 | "Content-Type: text/plain; charset=UTF-8\n" | ||
234 | 15 | "Content-Transfer-Encoding: \n" | ||
235 | 16 | "Plural-Forms: \n" | ||
236 | 17 | |||
237 | 18 | #. module: account_move_report | ||
238 | 19 | #: report:addons/account_move_report/report/account_move_report_html.mako:55 | ||
239 | 20 | msgid "Account" | ||
240 | 21 | msgstr "" | ||
241 | 22 | |||
242 | 23 | #. module: account_move_report | ||
243 | 24 | #: report:addons/account_move_report/report/account_move_report_html.mako:49 | ||
244 | 25 | msgid "Name" | ||
245 | 26 | msgstr "" | ||
246 | 27 | |||
247 | 28 | #. module: account_move_report | ||
248 | 29 | #: report:addons/account_move_report/report/account_move_report_html.mako:58 | ||
249 | 30 | msgid "Due date" | ||
250 | 31 | msgstr "" | ||
251 | 32 | |||
252 | 33 | #. module: account_move_report | ||
253 | 34 | #: report:addons/account_move_report/report/account_move_report_html.mako:41 | ||
254 | 35 | msgid "Date: " | ||
255 | 36 | msgstr "" | ||
256 | 37 | |||
257 | 38 | #. module: account_move_report | ||
258 | 39 | #: report:addons/account_move_report/report/account_move_report_html.mako:38 | ||
259 | 40 | msgid "Reference: " | ||
260 | 41 | msgstr "" | ||
261 | 42 | |||
262 | 43 | #. module: account_move_report | ||
263 | 44 | #: report:addons/account_move_report/report/account_move_report_html.mako:67 | ||
264 | 45 | msgid "Analytic Account" | ||
265 | 46 | msgstr "" | ||
266 | 47 | |||
267 | 48 | #. module: account_move_report | ||
268 | 49 | #: report:addons/account_move_report/report/account_move_report_html.mako:64 | ||
269 | 50 | msgid "Credit" | ||
270 | 51 | msgstr "" | ||
271 | 52 | |||
272 | 53 | #. module: account_move_report | ||
273 | 54 | #: report:addons/account_move_report/report/account_move_report_html.mako:26 | ||
274 | 55 | msgid "Printing Date:" | ||
275 | 56 | msgstr "" | ||
276 | 57 | |||
277 | 58 | #. module: account_move_report | ||
278 | 59 | #: model:ir.actions.report.xml,name:account_move_report.account_move_report_webkit | ||
279 | 60 | msgid "Report Journal Entries" | ||
280 | 61 | msgstr "" | ||
281 | 62 | |||
282 | 63 | #. module: account_move_report | ||
283 | 64 | #: report:addons/account_move_report/report/account_move_report_html.mako:61 | ||
284 | 65 | msgid "Debit" | ||
285 | 66 | msgstr "" | ||
286 | 67 | |||
287 | 68 | #. module: account_move_report | ||
288 | 69 | #: report:addons/account_move_report/report/account_move_report_html.mako:52 | ||
289 | 70 | msgid "Partner" | ||
290 | 71 | msgstr "" | ||
291 | 72 | |||
292 | 73 | #. module: account_move_report | ||
293 | 74 | #: report:addons/account_move_report/report/account_move_report_html.mako:34 | ||
294 | 75 | msgid "Journal Entries: " | ||
295 | 76 | msgstr "" | ||
296 | 77 | |||
297 | 0 | 78 | ||
298 | === added file 'account_move_report/i18n/es.po' | |||
299 | --- account_move_report/i18n/es.po 1970-01-01 00:00:00 +0000 | |||
300 | +++ account_move_report/i18n/es.po 2013-11-08 21:42:25 +0000 | |||
301 | @@ -0,0 +1,72 @@ | |||
302 | 1 | # Translation of OpenERP Server. | ||
303 | 2 | # This file contains the translation of the following modules: | ||
304 | 3 | # * account_move_report | ||
305 | 4 | # | ||
306 | 5 | msgid "" | ||
307 | 6 | msgstr "" | ||
308 | 7 | "Project-Id-Version: OpenERP Server 7.0\n" | ||
309 | 8 | "Report-Msgid-Bugs-To: \n" | ||
310 | 9 | "POT-Creation-Date: 2013-06-25 01:22+0000\n" | ||
311 | 10 | "PO-Revision-Date: 2013-06-24 18:23-0800\n" | ||
312 | 11 | "Last-Translator: <>\n" | ||
313 | 12 | "Language-Team: \n" | ||
314 | 13 | "MIME-Version: 1.0\n" | ||
315 | 14 | "Content-Type: text/plain; charset=UTF-8\n" | ||
316 | 15 | "Content-Transfer-Encoding: 8bit\n" | ||
317 | 16 | "Plural-Forms: \n" | ||
318 | 17 | "X-Generator: Poedit 1.5.4\n" | ||
319 | 18 | |||
320 | 19 | #. module: account_move_report | ||
321 | 20 | #: report:addons/account_move_report/report/account_move_report_html.mako:51 | ||
322 | 21 | msgid "Account" | ||
323 | 22 | msgstr "Cuenta" | ||
324 | 23 | |||
325 | 24 | #. module: account_move_report | ||
326 | 25 | #: report:addons/account_move_report/report/account_move_report_html.mako:48 | ||
327 | 26 | msgid "Name" | ||
328 | 27 | msgstr "Nombre" | ||
329 | 28 | |||
330 | 29 | #. module: account_move_report | ||
331 | 30 | #: report:addons/account_move_report/report/account_move_report_html.mako:54 | ||
332 | 31 | msgid "Due date" | ||
333 | 32 | msgstr "Fecha Vencimiento" | ||
334 | 33 | |||
335 | 34 | #. module: account_move_report | ||
336 | 35 | #: report:addons/account_move_report/report/account_move_report_html.mako:38 | ||
337 | 36 | msgid "Date: " | ||
338 | 37 | msgstr "Fecha: " | ||
339 | 38 | |||
340 | 39 | #. module: account_move_report | ||
341 | 40 | #: report:addons/account_move_report/report/account_move_report_html.mako:41 | ||
342 | 41 | msgid "Reference: " | ||
343 | 42 | msgstr "Referencia: " | ||
344 | 43 | |||
345 | 44 | #. module: account_move_report | ||
346 | 45 | #: report:addons/account_move_report/report/account_move_report_html.mako:63 | ||
347 | 46 | msgid "Analytic Account" | ||
348 | 47 | msgstr "Cuenta Analítica" | ||
349 | 48 | |||
350 | 49 | #. module: account_move_report | ||
351 | 50 | #: report:addons/account_move_report/report/account_move_report_html.mako:60 | ||
352 | 51 | msgid "Credit" | ||
353 | 52 | msgstr "Haber" | ||
354 | 53 | |||
355 | 54 | #. module: account_move_report | ||
356 | 55 | #: report:addons/account_move_report/report/account_move_report_html.mako:26 | ||
357 | 56 | msgid "Printing Date:" | ||
358 | 57 | msgstr "Fecha de impresión:" | ||
359 | 58 | |||
360 | 59 | #. module: account_move_report | ||
361 | 60 | #: model:ir.actions.report.xml,name:account_move_report.account_move_report_webkit | ||
362 | 61 | msgid "Report Journal Entries" | ||
363 | 62 | msgstr "Reporte de Póliza" | ||
364 | 63 | |||
365 | 64 | #. module: account_move_report | ||
366 | 65 | #: report:addons/account_move_report/report/account_move_report_html.mako:57 | ||
367 | 66 | msgid "Debit" | ||
368 | 67 | msgstr "Debe" | ||
369 | 68 | |||
370 | 69 | #. module: account_move_report | ||
371 | 70 | #: report:addons/account_move_report/report/account_move_report_html.mako:34 | ||
372 | 71 | msgid "Journal Entries: " | ||
373 | 72 | msgstr "Póliza: " | ||
374 | 0 | 73 | ||
375 | === added file 'account_move_report/i18n/es_MX.po' | |||
376 | === added directory 'account_move_report/report' | |||
377 | === added file 'account_move_report/report/__init__.py' | |||
378 | --- account_move_report/report/__init__.py 1970-01-01 00:00:00 +0000 | |||
379 | +++ account_move_report/report/__init__.py 2013-11-08 21:42:25 +0000 | |||
380 | @@ -0,0 +1,24 @@ | |||
381 | 1 | #!/usr/bin/python | ||
382 | 2 | # -*- encoding: utf-8 -*- | ||
383 | 3 | ########################################################################### | ||
384 | 4 | # Module Writen to OpenERP, Open Source Management Solution | ||
385 | 5 | # Copyright (C) Vauxoo (<http://vauxoo.com>). | ||
386 | 6 | # All Rights Reserved | ||
387 | 7 | ###############Credits###################################################### | ||
388 | 8 | # Coded by: Luis Ernesto García (ernesto_gm@vauxoo.com) | ||
389 | 9 | ############################################################################# | ||
390 | 10 | # This program is free software: you can redistribute it and/or modify | ||
391 | 11 | # it under the terms of the GNU Affero General Public License as published by | ||
392 | 12 | # the Free Software Foundation, either version 3 of the License, or | ||
393 | 13 | # (at your option) any later version. | ||
394 | 14 | # | ||
395 | 15 | # This program is distributed in the hope that it will be useful, | ||
396 | 16 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
397 | 17 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
398 | 18 | # GNU Affero General Public License for more details. | ||
399 | 19 | # | ||
400 | 20 | # You should have received a copy of the GNU Affero General Public License | ||
401 | 21 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
402 | 22 | ################################################################################ | ||
403 | 23 | |||
404 | 24 | import account_move_html | ||
405 | 0 | 25 | ||
406 | === added file 'account_move_report/report/account_move_html.py' | |||
407 | --- account_move_report/report/account_move_html.py 1970-01-01 00:00:00 +0000 | |||
408 | +++ account_move_report/report/account_move_html.py 2013-11-08 21:42:25 +0000 | |||
409 | @@ -0,0 +1,51 @@ | |||
410 | 1 | #!/usr/bin/python | ||
411 | 2 | # -*- encoding: utf-8 -*- | ||
412 | 3 | ########################################################################### | ||
413 | 4 | # Module Writen to OpenERP, Open Source Management Solution | ||
414 | 5 | # Copyright (C) Vauxoo (<http://vauxoo.com>). | ||
415 | 6 | # All Rights Reserved | ||
416 | 7 | ###############Credits###################################################### | ||
417 | 8 | # Coded by: Luis Ernesto García (ernesto_gm@vauxoo.com) | ||
418 | 9 | ############################################################################# | ||
419 | 10 | # This program is free software: you can redistribute it and/or modify | ||
420 | 11 | # it under the terms of the GNU Affero General Public License as published by | ||
421 | 12 | # the Free Software Foundation, either version 3 of the License, or | ||
422 | 13 | # (at your option) any later version. | ||
423 | 14 | # | ||
424 | 15 | # This program is distributed in the hope that it will be useful, | ||
425 | 16 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
426 | 17 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
427 | 18 | # GNU Affero General Public License for more details. | ||
428 | 19 | # | ||
429 | 20 | # You should have received a copy of the GNU Affero General Public License | ||
430 | 21 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
431 | 22 | ################################################################################ | ||
432 | 23 | from openerp.report import report_sxw | ||
433 | 24 | from openerp.tools.translate import _ | ||
434 | 25 | import time | ||
435 | 26 | from report_webkit import report_helper | ||
436 | 27 | from report_webkit import webkit_report | ||
437 | 28 | |||
438 | 29 | class account_move_report_html(report_sxw.rml_parse): | ||
439 | 30 | def __init__(self, cr, uid, name, context): | ||
440 | 31 | super(account_move_report_html, self).__init__(cr, uid, name, | ||
441 | 32 | context=context) | ||
442 | 33 | self.localcontext.update({ | ||
443 | 34 | 'time': time, | ||
444 | 35 | 'get_total_debit_credit' : self.get_total_debit_credit, | ||
445 | 36 | }) | ||
446 | 37 | |||
447 | 38 | def get_total_debit_credit(self, line_ids): | ||
448 | 39 | sum_tot_debit = 0.00 | ||
449 | 40 | sum_tot_credit = 0.00 | ||
450 | 41 | for line in line_ids: | ||
451 | 42 | sum_tot_debit += (line.debit) | ||
452 | 43 | sum_tot_credit += (line.credit) | ||
453 | 44 | return {'sum_tot_debit' : sum_tot_debit, 'sum_tot_credit' : sum_tot_credit} | ||
454 | 45 | |||
455 | 46 | webkit_report.WebKitParser('report.account.move.report.webkit', | ||
456 | 47 | 'account.move', | ||
457 | 48 | 'addons/report_account_move/report/account_move_report_html.mako', | ||
458 | 49 | parser=account_move_report_html) | ||
459 | 50 | |||
460 | 51 | # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: | ||
461 | 0 | 52 | ||
462 | === added file 'account_move_report/report/account_move_report_html.mako' | |||
463 | --- account_move_report/report/account_move_report_html.mako 1970-01-01 00:00:00 +0000 | |||
464 | +++ account_move_report/report/account_move_report_html.mako 2013-11-08 21:42:25 +0000 | |||
465 | @@ -0,0 +1,118 @@ | |||
466 | 1 | <html> | ||
467 | 2 | <head> | ||
468 | 3 | <style type="text/css"> | ||
469 | 4 | ${css} | ||
470 | 5 | </style> | ||
471 | 6 | </head> | ||
472 | 7 | <body> | ||
473 | 8 | %for o in objects : | ||
474 | 9 | <table width = '100%' class='table'> | ||
475 | 10 | <tr> | ||
476 | 11 | <td style="vertical-align: top;"> | ||
477 | 12 | ${helper.embed_image('jpeg',str(o.company_id.logo),180, 85)} | ||
478 | 13 | </td> | ||
479 | 14 | <td class='dir_font'> | ||
480 | 15 | <div class='company_font'>${o.company_id.name or ''|entity}</div> | ||
481 | 16 | <br>${o.company_id.partner_id.street or ''|entity} No. | ||
482 | 17 | ${o.company_id.partner_id.l10n_mx_street4 or ''|entity} | ||
483 | 18 | ${o.company_id.partner_id.l10n_mx_street3 or ''|entity} | ||
484 | 19 | ${o.company_id.partner_id.street2 or ''|entity} | ||
485 | 20 | ${o.company_id.partner_id.zip or ''|entity} | ||
486 | 21 | <br/>${o.company_id.partner_id.city or ''|entity} | ||
487 | 22 | , ${o.company_id.partner_id.state_id.name or ''|entity} | ||
488 | 23 | , ${o.company_id.partner_id.country_id.name or ''|entity} | ||
489 | 24 | </td> | ||
490 | 25 | <td class='date_font'> | ||
491 | 26 | <div>${_("Printing Date:")} ${time.strftime('%Y-%m-%d %H:%M:%S')}</div> | ||
492 | 27 | </td> | ||
493 | 28 | |||
494 | 29 | </tr> | ||
495 | 30 | </table> | ||
496 | 31 | |||
497 | 32 | <table> | ||
498 | 33 | <tr> | ||
499 | 34 | <div>${_("Journal Entries: ")} ${o.name or '' |entity}</div> | ||
500 | 35 | |||
501 | 36 | </tr> | ||
502 | 37 | <tr> | ||
503 | 38 | <div>${_("Reference: ")} ${o.ref or '' |entity}</div> | ||
504 | 39 | </tr> | ||
505 | 40 | <tr> | ||
506 | 41 | <div>${_("Date: ")} ${o.date or '' |entity}</div> | ||
507 | 42 | </tr> | ||
508 | 43 | |||
509 | 44 | </table> | ||
510 | 45 | |||
511 | 46 | <table width= '100%' class='title'> | ||
512 | 47 | <tr> | ||
513 | 48 | <td width='14%'> | ||
514 | 49 | <div>${_("Name")}</div> | ||
515 | 50 | </td> | ||
516 | 51 | <td width='14%'> | ||
517 | 52 | <div>${_("Partner")}</div> | ||
518 | 53 | </td> | ||
519 | 54 | <td width='27%'> | ||
520 | 55 | <div>${_("Account")}</div> | ||
521 | 56 | </td> | ||
522 | 57 | <td width='7%'> | ||
523 | 58 | <div>${_("Due date")}</div> | ||
524 | 59 | </td> | ||
525 | 60 | <td width='12%'> | ||
526 | 61 | <div>${_("Debit")}</div> | ||
527 | 62 | </td> | ||
528 | 63 | <td width='12%'> | ||
529 | 64 | <div>${_("Credit")}</div> | ||
530 | 65 | </td> | ||
531 | 66 | <td width='14%'> | ||
532 | 67 | <div>${_("Analytic Account")}</div> | ||
533 | 68 | </td> | ||
534 | 69 | </tr> | ||
535 | 70 | </table> | ||
536 | 71 | |||
537 | 72 | <table width= '100%' class='table'> | ||
538 | 73 | %for line in o.line_id: | ||
539 | 74 | <tr> | ||
540 | 75 | <td width='14%' class='basic_td'> | ||
541 | 76 | <div>${line.name or '' |entity}</div> | ||
542 | 77 | </td> | ||
543 | 78 | <td width='14%' class='basic_td'> | ||
544 | 79 | <div>${line.partner_id.name}</div> | ||
545 | 80 | </td> | ||
546 | 81 | <td width='27%' class='basic_td'> | ||
547 | 82 | <div>${line.account_id.code or '' |entity} - ${line.account_id.name or '' |entity}</div> | ||
548 | 83 | </td> | ||
549 | 84 | <td width='7%' class='basic_td'> | ||
550 | 85 | <div>${line.date_maturity or '' |entity}</div> | ||
551 | 86 | </td> | ||
552 | 87 | <td width='12%' class='basic_td' style="text-align:right;"> | ||
553 | 88 | <div>${line.debit or '0.00' |entity}</div> | ||
554 | 89 | </td> | ||
555 | 90 | <td width='12%' class='basic_td' style="text-align:right;"> | ||
556 | 91 | <div>${line.credit or '0.00' |entity}</div> | ||
557 | 92 | </td> | ||
558 | 93 | <td width='14%' class='basic_td'> | ||
559 | 94 | <div>${line.analytic_account_id.name or '' |entity}</div> | ||
560 | 95 | </td> | ||
561 | 96 | </tr> | ||
562 | 97 | %endfor | ||
563 | 98 | </table> | ||
564 | 99 | <table width= '100%' class='table'> | ||
565 | 100 | <tr> | ||
566 | 101 | <td width='14%'></td> | ||
567 | 102 | <td width='37%'></td> | ||
568 | 103 | <td width='7%'></td> | ||
569 | 104 | <td style="border-top:1px solid #000000; text-align:right;" class='basic_td'> | ||
570 | 105 | <div width='14%' >${formatLang(get_total_debit_credit(o.line_id)['sum_tot_debit']) or '0.00' |entity}</div> | ||
571 | 106 | </td> | ||
572 | 107 | <td style="border-top:1px solid #000000; text-align:right;" class='basic_td'> | ||
573 | 108 | <div width='14%'>${formatLang(get_total_debit_credit(o.line_id)['sum_tot_credit']) or '0.00' |entity}</div> | ||
574 | 109 | </td> | ||
575 | 110 | <td width='14%'></td> | ||
576 | 111 | </tr> | ||
577 | 112 | |||
578 | 113 | </table> | ||
579 | 114 | <p style="page-break-after:always"></p> | ||
580 | 115 | %endfor | ||
581 | 116 | |||
582 | 117 | </body> | ||
583 | 118 | </html> |
Hola Isaac puedes agregar por favor el archivo account_ move_report. pot
Para que de ahora en adelante launchpad se encargue de la traducción
Saludos