Merge lp:~vauxoo/account-financial-report/7.0-report_webkit_afr-dev-yani into lp:~account-report-core-editor/account-financial-report/7.0
- 7.0-report_webkit_afr-dev-yani
- Merge into 7.0
Status: | Superseded |
---|---|
Proposed branch: | lp:~vauxoo/account-financial-report/7.0-report_webkit_afr-dev-yani |
Merge into: | lp:~account-report-core-editor/account-financial-report/7.0 |
Diff against target: |
953 lines (+840/-1) 17 files modified
account_financial_report/wizard/wizard.py (+0/-1) account_financial_report_ext/__init__.py (+26/-0) account_financial_report_ext/__openerp__.py (+54/-0) account_financial_report_ext/data/html_css_afr.xml (+274/-0) account_financial_report_ext/model/__init__.py (+25/-0) account_financial_report_ext/report/__init__.py (+25/-0) account_financial_report_ext/report/afr_report_webkit_analytic_ledger.mako (+19/-0) account_financial_report_ext/report/afr_report_webkit_cols1.mako (+18/-0) account_financial_report_ext/report/afr_report_webkit_cols13.mako (+19/-0) account_financial_report_ext/report/afr_report_webkit_cols2.mako (+19/-0) account_financial_report_ext/report/afr_report_webkit_cols4.mako (+19/-0) account_financial_report_ext/report/afr_report_webkit_cols5.mako (+41/-0) account_financial_report_ext/report/afr_report_webkit_journal_ledger.mako (+19/-0) account_financial_report_ext/report/afr_report_webkit_qtr.mako (+19/-0) account_financial_report_ext/report/report_afr.xml (+148/-0) account_financial_report_ext/wizard/__init__.py (+26/-0) account_financial_report_ext/wizard/afr_report_wizard.py (+89/-0) |
To merge this branch: | bzr merge lp:~vauxoo/account-financial-report/7.0-report_webkit_afr-dev-yani |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
hbto [Vauxoo] http://www.vauxoo.com | Pending | ||
Review via email: mp+190779@code.launchpad.net |
Commit message
Description of the change
The templates for creating account financial report reports in webkit ready.
- 67. By Yanina Aular (Vauxoo)
-
[IMP] file renamed
Unmerged revisions
- 67. By Yanina Aular (Vauxoo)
-
[IMP] file renamed
- 66. By Yanina Aular (Vauxoo)
-
[ADD] Documentation
- 65. By Yanina Aular (Vauxoo)
-
[FIX] It fixes to call a method with two parameters. A better example is added in the report of 5 columns
- 64. By Yanina Aular (Vauxoo)
-
[ADD] title to distinguish mako reports
- 63. By Yanina Aular (Vauxoo)
-
[ADD] webkit report template for analytic ledger, cols13, journal ledger, qtr
- 62. By Yanina Aular (Vauxoo)
-
[ADD] report template for 2 columns, 4 columns, 5 columns
- 61. By Yanina Aular (Vauxoo)
-
[CC] clean code
- 60. By Yanina Aular (Vauxoo)
-
[IMP] a method is created in the model wizard.report for consulting methods in the module parser account_
financial_ report, very NICE! :) - 59. By Yanina Aular (Vauxoo)
-
[FIX] The id of the wizard not is being saved correctly in the original module Print_Report method (account_
financial_ report) - 58. By Yanina Aular (Vauxoo)
-
[IMP] load an image into the report webkit, import parser code in the method inherited from the wizard
Preview Diff
1 | === modified file 'account_financial_report/wizard/wizard.py' | |||
2 | --- account_financial_report/wizard/wizard.py 2013-07-26 17:03:11 +0000 | |||
3 | +++ account_financial_report/wizard/wizard.py 2013-10-12 02:09:45 +0000 | |||
4 | @@ -284,7 +284,6 @@ | |||
5 | 284 | name = 'afr.qtrcols' | 284 | name = 'afr.qtrcols' |
6 | 285 | if data['form']['columns'] == 'thirteen': | 285 | if data['form']['columns'] == 'thirteen': |
7 | 286 | name = 'afr.13cols' | 286 | name = 'afr.13cols' |
8 | 287 | |||
9 | 288 | return {'type': 'ir.actions.report.xml', 'report_name': name, 'datas': data} | 287 | return {'type': 'ir.actions.report.xml', 'report_name': name, 'datas': data} |
10 | 289 | 288 | ||
11 | 290 | wizard_report() | 289 | wizard_report() |
12 | 291 | 290 | ||
13 | === added directory 'account_financial_report_ext' | |||
14 | === added file 'account_financial_report_ext/__init__.py' | |||
15 | --- account_financial_report_ext/__init__.py 1970-01-01 00:00:00 +0000 | |||
16 | +++ account_financial_report_ext/__init__.py 2013-10-12 02:09:45 +0000 | |||
17 | @@ -0,0 +1,26 @@ | |||
18 | 1 | #!/usr/bin/python | ||
19 | 2 | # -*- encoding: utf-8 -*- | ||
20 | 3 | ############################################################################### | ||
21 | 4 | # Module Writen to OpenERP, Open Source Management Solution | ||
22 | 5 | # Copyright (C) OpenERP Venezuela (<http://www.vauxoo.com>). | ||
23 | 6 | # All Rights Reserved | ||
24 | 7 | ############# Credits ######################################################### | ||
25 | 8 | # Coded by: Yanina Aular <yani@vauxoo.com> | ||
26 | 9 | # Planified by: Humberto Arocha <hbto@vauxoo.com> | ||
27 | 10 | # Audited by: Humberto Arocha <hbto@vauxoo.com> | ||
28 | 11 | ############################################################################### | ||
29 | 12 | # This program is free software: you can redistribute it and/or modify | ||
30 | 13 | # it under the terms of the GNU Affero General Public License as published | ||
31 | 14 | # by the Free Software Foundation, either version 3 of the License, or | ||
32 | 15 | # (at your option) any later version. | ||
33 | 16 | # | ||
34 | 17 | # This program is distributed in the hope that it will be useful, | ||
35 | 18 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
36 | 19 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
37 | 20 | # GNU Affero General Public License for more details. | ||
38 | 21 | # | ||
39 | 22 | # You should have received a copy of the GNU Affero General Public License | ||
40 | 23 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
41 | 24 | ############################################################################### | ||
42 | 25 | import model | ||
43 | 26 | import wizard | ||
44 | 0 | 27 | ||
45 | === added file 'account_financial_report_ext/__openerp__.py' | |||
46 | --- account_financial_report_ext/__openerp__.py 1970-01-01 00:00:00 +0000 | |||
47 | +++ account_financial_report_ext/__openerp__.py 2013-10-12 02:09:45 +0000 | |||
48 | @@ -0,0 +1,54 @@ | |||
49 | 1 | #!/usr/bin/python | ||
50 | 2 | # -*- encoding: utf-8 -*- | ||
51 | 3 | ############################################################################### | ||
52 | 4 | # Module Writen to OpenERP, Open Source Management Solution | ||
53 | 5 | # Copyright (C) OpenERP Venezuela (<http://www.vauxoo.com>). | ||
54 | 6 | # All Rights Reserved | ||
55 | 7 | ############# Credits ######################################################### | ||
56 | 8 | # Coded by: Yanina Aular <yani@vauxoo.com> | ||
57 | 9 | # Planified by: Humberto Arocha <hbto@vauxoo.com> | ||
58 | 10 | # Audited by: Humberto Arocha <hbto@vauxoo.com> | ||
59 | 11 | ############################################################################### | ||
60 | 12 | # This program is free software: you can redistribute it and/or modify | ||
61 | 13 | # it under the terms of the GNU Affero General Public License as published | ||
62 | 14 | # by the Free Software Foundation, either version 3 of the License, or | ||
63 | 15 | # (at your option) any later version. | ||
64 | 16 | # | ||
65 | 17 | # This program is distributed in the hope that it will be useful, | ||
66 | 18 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
67 | 19 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
68 | 20 | # GNU Affero General Public License for more details. | ||
69 | 21 | # | ||
70 | 22 | # You should have received a copy of the GNU Affero General Public License | ||
71 | 23 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
72 | 24 | ############################################################################### | ||
73 | 25 | |||
74 | 26 | { | ||
75 | 27 | 'name': 'Account Financial Report Ext', | ||
76 | 28 | 'version': '1.0', | ||
77 | 29 | 'author': 'Vauxoo', | ||
78 | 30 | 'website': 'http://www.vauxoo.com/', | ||
79 | 31 | 'category': 'Accounting', | ||
80 | 32 | 'description': ''' | ||
81 | 33 | Account Financial Report Ext | ||
82 | 34 | ============================ | ||
83 | 35 | |||
84 | 36 | Account Financial Report Reports on Webkit | ||
85 | 37 | |||
86 | 38 | Main Features | ||
87 | 39 | ============= | ||
88 | 40 | |||
89 | 41 | account_financial_report module reports are now printed using webkit. | ||
90 | 42 | |||
91 | 43 | |||
92 | 44 | ''', | ||
93 | 45 | 'depends': ['base', 'mail', 'account_accountant', 'account_financial_report', 'report_webkit'], | ||
94 | 46 | 'data': [ | ||
95 | 47 | 'data/html_css_afr.xml', | ||
96 | 48 | 'report/report_afr.xml', | ||
97 | 49 | ], | ||
98 | 50 | 'demo': [], | ||
99 | 51 | 'test': [], | ||
100 | 52 | 'active': False, | ||
101 | 53 | 'installable': True, | ||
102 | 54 | } | ||
103 | 0 | 55 | ||
104 | === added directory 'account_financial_report_ext/data' | |||
105 | === added file 'account_financial_report_ext/data/html_css_afr.xml' | |||
106 | --- account_financial_report_ext/data/html_css_afr.xml 1970-01-01 00:00:00 +0000 | |||
107 | +++ account_financial_report_ext/data/html_css_afr.xml 2013-10-12 02:09:45 +0000 | |||
108 | @@ -0,0 +1,274 @@ | |||
109 | 1 | <?xml version="1.0" ?> | ||
110 | 2 | <openerp> | ||
111 | 3 | <data noupdate="0"> | ||
112 | 4 | <record id="ir_header_webkit_afrreport_analytic_ledger" model="ir.header_webkit"> | ||
113 | 5 | <field name="name">Reports AFR WebKit</field> | ||
114 | 6 | <field name="footer_html"> | ||
115 | 7 | <![CDATA[]]></field> | ||
116 | 8 | <field name="orientation">Portrait</field> | ||
117 | 9 | <field name="format">Letter</field> | ||
118 | 10 | <field name="html"> | ||
119 | 11 | <![CDATA[]]> </field> | ||
120 | 12 | <field eval="0.0" name="margin_top"/> | ||
121 | 13 | <field name="css" > | ||
122 | 14 | <![CDATA[ ]]> | ||
123 | 15 | </field> | ||
124 | 16 | </record> | ||
125 | 17 | |||
126 | 18 | <record id="ir_header_webkit_afrreport_col13" model="ir.header_webkit"> | ||
127 | 19 | <field name="name">Reports AFR WebKit</field> | ||
128 | 20 | <field name="footer_html"> | ||
129 | 21 | <![CDATA[]]></field> | ||
130 | 22 | <field name="orientation">Portrait</field> | ||
131 | 23 | <field name="format">Letter</field> | ||
132 | 24 | <field name="html"> | ||
133 | 25 | <![CDATA[]]> </field> | ||
134 | 26 | <field eval="0.0" name="margin_top"/> | ||
135 | 27 | <field name="css" > | ||
136 | 28 | <![CDATA[ ]]> | ||
137 | 29 | </field> | ||
138 | 30 | </record> | ||
139 | 31 | |||
140 | 32 | <record id="ir_header_webkit_afrreport_qtr" model="ir.header_webkit"> | ||
141 | 33 | <field name="name">Reports AFR WebKit</field> | ||
142 | 34 | <field name="footer_html"> | ||
143 | 35 | <![CDATA[]]></field> | ||
144 | 36 | <field name="orientation">Portrait</field> | ||
145 | 37 | <field name="format">Letter</field> | ||
146 | 38 | <field name="html"> | ||
147 | 39 | <![CDATA[]]> </field> | ||
148 | 40 | <field eval="0.0" name="margin_top"/> | ||
149 | 41 | <field name="css" > | ||
150 | 42 | <![CDATA[ ]]> | ||
151 | 43 | </field> | ||
152 | 44 | </record> | ||
153 | 45 | |||
154 | 46 | <record id="ir_header_webkit_afrreport_journal_ledger" model="ir.header_webkit"> | ||
155 | 47 | <field name="name">Reports AFR WebKit</field> | ||
156 | 48 | <field name="footer_html"> | ||
157 | 49 | <![CDATA[]]></field> | ||
158 | 50 | <field name="orientation">Portrait</field> | ||
159 | 51 | <field name="format">Letter</field> | ||
160 | 52 | <field name="html"> | ||
161 | 53 | <![CDATA[]]> </field> | ||
162 | 54 | <field eval="0.0" name="margin_top"/> | ||
163 | 55 | <field name="css" > | ||
164 | 56 | <![CDATA[ ]]> | ||
165 | 57 | </field> | ||
166 | 58 | </record> | ||
167 | 59 | |||
168 | 60 | <record id="ir_header_webkit_afrreport_five_colums" model="ir.header_webkit"> | ||
169 | 61 | <field name="name">Reports AFR WebKit</field> | ||
170 | 62 | <field name="footer_html"> | ||
171 | 63 | <![CDATA[]]></field> | ||
172 | 64 | <field name="orientation">Portrait</field> | ||
173 | 65 | <field name="format">Letter</field> | ||
174 | 66 | <field name="html"> | ||
175 | 67 | <![CDATA[]]> </field> | ||
176 | 68 | <field eval="0.0" name="margin_top"/> | ||
177 | 69 | <field name="css" > | ||
178 | 70 | <![CDATA[ ]]> | ||
179 | 71 | </field> | ||
180 | 72 | </record> | ||
181 | 73 | |||
182 | 74 | <record id="ir_header_webkit_afrreport_four_colums" model="ir.header_webkit"> | ||
183 | 75 | <field name="name">Reports AFR WebKit</field> | ||
184 | 76 | <field name="footer_html"> | ||
185 | 77 | <![CDATA[]]></field> | ||
186 | 78 | <field name="orientation">Portrait</field> | ||
187 | 79 | <field name="format">Letter</field> | ||
188 | 80 | <field name="html"> | ||
189 | 81 | <![CDATA[]]> </field> | ||
190 | 82 | <field eval="0.0" name="margin_top"/> | ||
191 | 83 | <field name="css" > | ||
192 | 84 | <![CDATA[ ]]> | ||
193 | 85 | </field> | ||
194 | 86 | </record> | ||
195 | 87 | |||
196 | 88 | <record id="ir_header_webkit_afrreport_two_colums" model="ir.header_webkit"> | ||
197 | 89 | <field name="name">Reports AFR WebKit</field> | ||
198 | 90 | <field name="footer_html"> | ||
199 | 91 | <![CDATA[]]></field> | ||
200 | 92 | <field name="orientation">Portrait</field> | ||
201 | 93 | <field name="format">Letter</field> | ||
202 | 94 | <field name="html"> | ||
203 | 95 | <![CDATA[]]> </field> | ||
204 | 96 | <field eval="0.0" name="margin_top"/> | ||
205 | 97 | <field name="css" > | ||
206 | 98 | <![CDATA[ ]]> | ||
207 | 99 | </field> | ||
208 | 100 | </record> | ||
209 | 101 | |||
210 | 102 | <record id="ir_header_webkit_afrreport_one_colums" model="ir.header_webkit"> | ||
211 | 103 | <field name="name">Reports AFR WebKit</field> | ||
212 | 104 | <field name="footer_html"> | ||
213 | 105 | <![CDATA[]]></field> | ||
214 | 106 | <field name="orientation">Portrait</field> | ||
215 | 107 | <field name="format">Letter</field> | ||
216 | 108 | <field name="html"> | ||
217 | 109 | <![CDATA[]]> </field> | ||
218 | 110 | <field eval="0.0" name="margin_top"/> | ||
219 | 111 | <field name="css" > | ||
220 | 112 | <![CDATA[ ]]> | ||
221 | 113 | </field> | ||
222 | 114 | </record> | ||
223 | 115 | |||
224 | 116 | <record id="ir_header_webkit_afrreport_five_colums" model="ir.header_webkit"> | ||
225 | 117 | <field name="name">Reports AFR WebKit Five Columns</field> | ||
226 | 118 | <field name="footer_html"> | ||
227 | 119 | <![CDATA[<html> | ||
228 | 120 | <head> | ||
229 | 121 | <meta content="text/html; charset=UTF-8" http-equiv="content-type"/> | ||
230 | 122 | <script> | ||
231 | 123 | function subst() { | ||
232 | 124 | var vars={}; | ||
233 | 125 | var x=document.location.search.substring(1).split('&'); | ||
234 | 126 | for(var i in x) {var z=x[i].split('=',2);vars[z[0]] = unescape(z[1]);} | ||
235 | 127 | var x=['frompage','topage','page','webpage','section','subsection','subsubsection']; | ||
236 | 128 | for(var i in x) { | ||
237 | 129 | var y = document.getElementsByClassName(x[i]); | ||
238 | 130 | for(var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]]; | ||
239 | 131 | } | ||
240 | 132 | } | ||
241 | 133 | </script> | ||
242 | 134 | </head> | ||
243 | 135 | <body style="border:0; margin: 0;" onload="subst()"> | ||
244 | 136 | <table style="border-top: 1px solid black; width: 100%"> | ||
245 | 137 | <tr > | ||
246 | 138 | <td style="text-align:right;font-size:12;" width="95%">Page <span class="page"/></td><td style="text-align:left;font-size:12;"> of <span class="topage"/></td> | ||
247 | 139 | </tr> | ||
248 | 140 | </table> | ||
249 | 141 | </body> | ||
250 | 142 | </html>]]></field> | ||
251 | 143 | <field name="orientation">Portrait</field> | ||
252 | 144 | <field name="format">Letter</field> | ||
253 | 145 | <field name="html"> | ||
254 | 146 | <![CDATA[<html> | ||
255 | 147 | <head> | ||
256 | 148 | <meta content="text/html; charset=UTF-8" http-equiv="content-type"/> | ||
257 | 149 | <script> | ||
258 | 150 | function subst() { | ||
259 | 151 | var vars={}; | ||
260 | 152 | var x=document.location.search.substring(1).split('&'); | ||
261 | 153 | for(var i in x) {var z=x[i].split('=',2);vars[z[0]] = unescape(z[1]);} | ||
262 | 154 | var x=['frompage','topage','page','webpage','section','subsection','subsubsection']; | ||
263 | 155 | for(var i in x) { | ||
264 | 156 | var y = document.getElementsByClassName(x[i]); | ||
265 | 157 | for(var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]]; | ||
266 | 158 | } | ||
267 | 159 | } | ||
268 | 160 | </script> | ||
269 | 161 | <style type="text/css"> | ||
270 | 162 | ${css} | ||
271 | 163 | </style> | ||
272 | 164 | </head> | ||
273 | 165 | <body style="border:0; margin: 0;" onload="subst()"> | ||
274 | 166 | ${_debug or ''|n} | ||
275 | 167 | </body> | ||
276 | 168 | </html>]]> | ||
277 | 169 | </field> | ||
278 | 170 | <field eval="0.0" name="margin_top"/> | ||
279 | 171 | <field name="css" > | ||
280 | 172 | <![CDATA[ | ||
281 | 173 | |||
282 | 174 | table.basic_table{ | ||
283 | 175 | text-align:left; | ||
284 | 176 | border:1px solid lightGrey; | ||
285 | 177 | border-collapse: collapse; | ||
286 | 178 | } | ||
287 | 179 | |||
288 | 180 | .dest_address { | ||
289 | 181 | font-size:12pt; | ||
290 | 182 | margin-left:0; | ||
291 | 183 | text-align:left; | ||
292 | 184 | line-height:80%; | ||
293 | 185 | padding-top:0px | ||
294 | 186 | } | ||
295 | 187 | |||
296 | 188 | .prueba{ | ||
297 | 189 | color:black; | ||
298 | 190 | background-color:#dcdcdc; | ||
299 | 191 | } | ||
300 | 192 | |||
301 | 193 | |||
302 | 194 | .celdaTotalTitulo{ | ||
303 | 195 | font-size:11pt; | ||
304 | 196 | text-align:left; | ||
305 | 197 | font-weight:bold; | ||
306 | 198 | font-family:Arial,Helvetica,sans-serif; | ||
307 | 199 | background-color:#dcdcdc; | ||
308 | 200 | } | ||
309 | 201 | |||
310 | 202 | .celdaTotal{ | ||
311 | 203 | font-size:10pt; | ||
312 | 204 | font-family: monospace; | ||
313 | 205 | text-align:right; | ||
314 | 206 | font-weight:bold; | ||
315 | 207 | background-color:#dcdcdc; | ||
316 | 208 | } | ||
317 | 209 | |||
318 | 210 | .celdaDetailTitulo{ | ||
319 | 211 | font-style:italic; | ||
320 | 212 | font-size:11pt; | ||
321 | 213 | text-align:left; | ||
322 | 214 | font-family:Arial,Helvetica,sans-serif; | ||
323 | 215 | background-color:#F5F5F5; | ||
324 | 216 | } | ||
325 | 217 | |||
326 | 218 | .celdaDetail{ | ||
327 | 219 | font-size:10pt; | ||
328 | 220 | font-family: monospace; | ||
329 | 221 | text-align:right; | ||
330 | 222 | background-color:#F5F5F5; | ||
331 | 223 | } | ||
332 | 224 | |||
333 | 225 | .celdaAbstractTotal{ | ||
334 | 226 | font-size:11pt; | ||
335 | 227 | text-align:left; | ||
336 | 228 | font-family:Arial,Helvetica,sans-serif; | ||
337 | 229 | background-color:#EAEAEA; | ||
338 | 230 | } | ||
339 | 231 | |||
340 | 232 | .celdaTituloTabla{ | ||
341 | 233 | font-size:11pt; | ||
342 | 234 | text-align:left; | ||
343 | 235 | font-family:Arial,Helvetica,sans-serif; | ||
344 | 236 | background-color:#620400; | ||
345 | 237 | color:#FFFFFF; | ||
346 | 238 | } | ||
347 | 239 | |||
348 | 240 | |||
349 | 241 | .celdaAbstract{ | ||
350 | 242 | font-size:10pt; | ||
351 | 243 | font-family: monospace; | ||
352 | 244 | text-align:right; | ||
353 | 245 | background-color:#EAEAEA; | ||
354 | 246 | } | ||
355 | 247 | |||
356 | 248 | div.td_company | ||
357 | 249 | { | ||
358 | 250 | font-size:12pt; | ||
359 | 251 | margin-left:0; | ||
360 | 252 | font-weight:bold; | ||
361 | 253 | font-family:Arial,Helvetica,sans-serif; | ||
362 | 254 | } | ||
363 | 255 | |||
364 | 256 | div.td_company_title | ||
365 | 257 | { | ||
366 | 258 | font-size:22pt; | ||
367 | 259 | margin-left:0; | ||
368 | 260 | font-weight:bold; | ||
369 | 261 | font-family:Arial,Helvetica,sans-serif; | ||
370 | 262 | } | ||
371 | 263 | |||
372 | 264 | ]]> | ||
373 | 265 | </field> | ||
374 | 266 | </record> | ||
375 | 267 | |||
376 | 268 | <record id="ir_header_img_companylogo0" model="ir.header_img"> | ||
377 | 269 | <field eval=""""jpg"""" name="type"/> | ||
378 | 270 | <field eval=""""company_logo"""" name="name"/> | ||
379 | 271 | </record> | ||
380 | 272 | |||
381 | 273 | </data> | ||
382 | 274 | </openerp> | ||
383 | 0 | 275 | ||
384 | === added directory 'account_financial_report_ext/demo' | |||
385 | === added directory 'account_financial_report_ext/doc' | |||
386 | === added directory 'account_financial_report_ext/doc/images' | |||
387 | === added directory 'account_financial_report_ext/i18n' | |||
388 | === added directory 'account_financial_report_ext/model' | |||
389 | === added file 'account_financial_report_ext/model/__init__.py' | |||
390 | --- account_financial_report_ext/model/__init__.py 1970-01-01 00:00:00 +0000 | |||
391 | +++ account_financial_report_ext/model/__init__.py 2013-10-12 02:09:45 +0000 | |||
392 | @@ -0,0 +1,25 @@ | |||
393 | 1 | #!/usr/bin/python | ||
394 | 2 | # -*- encoding: utf-8 -*- | ||
395 | 3 | ############################################################################### | ||
396 | 4 | # Module Writen to OpenERP, Open Source Management Solution | ||
397 | 5 | # Copyright (C) OpenERP Venezuela (<http://www.vauxoo.com>). | ||
398 | 6 | # All Rights Reserved | ||
399 | 7 | ############# Credits ######################################################### | ||
400 | 8 | # Coded by: Yanina Aular <yani@vauxoo.com> | ||
401 | 9 | # Planified by: Humberto Arocha <hbto@vauxoo.com> | ||
402 | 10 | # Audited by: Humberto Arocha <hbto@vauxoo.com> | ||
403 | 11 | ############################################################################### | ||
404 | 12 | # This program is free software: you can redistribute it and/or modify | ||
405 | 13 | # it under the terms of the GNU Affero General Public License as published | ||
406 | 14 | # by the Free Software Foundation, either version 3 of the License, or | ||
407 | 15 | # (at your option) any later version. | ||
408 | 16 | # | ||
409 | 17 | # This program is distributed in the hope that it will be useful, | ||
410 | 18 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
411 | 19 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
412 | 20 | # GNU Affero General Public License for more details. | ||
413 | 21 | # | ||
414 | 22 | # You should have received a copy of the GNU Affero General Public License | ||
415 | 23 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
416 | 24 | ############################################################################### | ||
417 | 25 | |||
418 | 0 | 26 | ||
419 | === added directory 'account_financial_report_ext/report' | |||
420 | === added file 'account_financial_report_ext/report/__init__.py' | |||
421 | --- account_financial_report_ext/report/__init__.py 1970-01-01 00:00:00 +0000 | |||
422 | +++ account_financial_report_ext/report/__init__.py 2013-10-12 02:09:45 +0000 | |||
423 | @@ -0,0 +1,25 @@ | |||
424 | 1 | #!/usr/bin/python | ||
425 | 2 | # -*- encoding: utf-8 -*- | ||
426 | 3 | ############################################################################### | ||
427 | 4 | # Module Writen to OpenERP, Open Source Management Solution | ||
428 | 5 | # Copyright (C) OpenERP Venezuela (<http://www.vauxoo.com>). | ||
429 | 6 | # All Rights Reserved | ||
430 | 7 | ############# Credits ######################################################### | ||
431 | 8 | # Coded by: Yanina Aular <yani@vauxoo.com> | ||
432 | 9 | # Planified by: Humberto Arocha <hbto@vauxoo.com> | ||
433 | 10 | # Audited by: Humberto Arocha <hbto@vauxoo.com> | ||
434 | 11 | ############################################################################### | ||
435 | 12 | # This program is free software: you can redistribute it and/or modify | ||
436 | 13 | # it under the terms of the GNU Affero General Public License as published | ||
437 | 14 | # by the Free Software Foundation, either version 3 of the License, or | ||
438 | 15 | # (at your option) any later version. | ||
439 | 16 | # | ||
440 | 17 | # This program is distributed in the hope that it will be useful, | ||
441 | 18 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
442 | 19 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
443 | 20 | # GNU Affero General Public License for more details. | ||
444 | 21 | # | ||
445 | 22 | # You should have received a copy of the GNU Affero General Public License | ||
446 | 23 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
447 | 24 | ############################################################################### | ||
448 | 25 | |||
449 | 0 | 26 | ||
450 | === added file 'account_financial_report_ext/report/afr_report_webkit_analytic_ledger.mako' | |||
451 | --- account_financial_report_ext/report/afr_report_webkit_analytic_ledger.mako 1970-01-01 00:00:00 +0000 | |||
452 | +++ account_financial_report_ext/report/afr_report_webkit_analytic_ledger.mako 2013-10-12 02:09:45 +0000 | |||
453 | @@ -0,0 +1,19 @@ | |||
454 | 1 | <!DOCTYPE html SYSTEM | ||
455 | 2 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
456 | 3 | <html xmlns="http://www.w3.org/1999/xhtml"> | ||
457 | 4 | <head> | ||
458 | 5 | <style type="text/css"> | ||
459 | 6 | ${css} | ||
460 | 7 | </style> | ||
461 | 8 | </head> | ||
462 | 9 | |||
463 | 10 | <body style="border:0; margin: 0;" onload="subst()" > | ||
464 | 11 | |||
465 | 12 | |||
466 | 13 | <h1><center>Analytic Ledger</center></h1> | ||
467 | 14 | %for obj in objects: | ||
468 | 15 | <center>${obj.company_id.name}</center> | ||
469 | 16 | <center>${obj.get_parser_method('get_vat_by_country',data['form'])}</center> | ||
470 | 17 | %endfor | ||
471 | 18 | </body> | ||
472 | 19 | </html> | ||
473 | 0 | 20 | ||
474 | === added file 'account_financial_report_ext/report/afr_report_webkit_cols1.mako' | |||
475 | --- account_financial_report_ext/report/afr_report_webkit_cols1.mako 1970-01-01 00:00:00 +0000 | |||
476 | +++ account_financial_report_ext/report/afr_report_webkit_cols1.mako 2013-10-12 02:09:45 +0000 | |||
477 | @@ -0,0 +1,18 @@ | |||
478 | 1 | <!DOCTYPE html SYSTEM | ||
479 | 2 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
480 | 3 | <html xmlns="http://www.w3.org/1999/xhtml"> | ||
481 | 4 | <head> | ||
482 | 5 | <style type="text/css"> | ||
483 | 6 | ${css} | ||
484 | 7 | </style> | ||
485 | 8 | </head> | ||
486 | 9 | |||
487 | 10 | <body style="border:0; margin: 0;" onload="subst()" > | ||
488 | 11 | |||
489 | 12 | <h1><center>End. Balance</center></h1> | ||
490 | 13 | %for obj in objects: | ||
491 | 14 | <center>${obj.company_id.name}</center> | ||
492 | 15 | <center>${obj.get_parser_method('get_vat_by_country',data['form'])}</center> | ||
493 | 16 | %endfor | ||
494 | 17 | </body> | ||
495 | 18 | </html> | ||
496 | 0 | 19 | ||
497 | === added file 'account_financial_report_ext/report/afr_report_webkit_cols13.mako' | |||
498 | --- account_financial_report_ext/report/afr_report_webkit_cols13.mako 1970-01-01 00:00:00 +0000 | |||
499 | +++ account_financial_report_ext/report/afr_report_webkit_cols13.mako 2013-10-12 02:09:45 +0000 | |||
500 | @@ -0,0 +1,19 @@ | |||
501 | 1 | <!DOCTYPE html SYSTEM | ||
502 | 2 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
503 | 3 | <html xmlns="http://www.w3.org/1999/xhtml"> | ||
504 | 4 | <head> | ||
505 | 5 | <style type="text/css"> | ||
506 | 6 | ${css} | ||
507 | 7 | </style> | ||
508 | 8 | </head> | ||
509 | 9 | |||
510 | 10 | <body style="border:0; margin: 0;" onload="subst()" > | ||
511 | 11 | |||
512 | 12 | |||
513 | 13 | <h1><center>12 Months | YTD</center></h1> | ||
514 | 14 | %for obj in objects: | ||
515 | 15 | <center>${obj.company_id.name}</center> | ||
516 | 16 | <center>${obj.get_parser_method('get_vat_by_country',data['form'])}</center> | ||
517 | 17 | %endfor | ||
518 | 18 | </body> | ||
519 | 19 | </html> | ||
520 | 0 | 20 | ||
521 | === added file 'account_financial_report_ext/report/afr_report_webkit_cols2.mako' | |||
522 | --- account_financial_report_ext/report/afr_report_webkit_cols2.mako 1970-01-01 00:00:00 +0000 | |||
523 | +++ account_financial_report_ext/report/afr_report_webkit_cols2.mako 2013-10-12 02:09:45 +0000 | |||
524 | @@ -0,0 +1,19 @@ | |||
525 | 1 | <!DOCTYPE html SYSTEM | ||
526 | 2 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
527 | 3 | <html xmlns="http://www.w3.org/1999/xhtml"> | ||
528 | 4 | <head> | ||
529 | 5 | <style type="text/css"> | ||
530 | 6 | ${css} | ||
531 | 7 | </style> | ||
532 | 8 | </head> | ||
533 | 9 | |||
534 | 10 | <body style="border:0; margin: 0;" onload="subst()" > | ||
535 | 11 | |||
536 | 12 | |||
537 | 13 | <h1><center>Debit | Credit</center></h1> | ||
538 | 14 | %for obj in objects: | ||
539 | 15 | <center>${obj.company_id.name}</center> | ||
540 | 16 | <center>${obj.get_parser_method('get_vat_by_country',data['form'])}</center> | ||
541 | 17 | %endfor | ||
542 | 18 | </body> | ||
543 | 19 | </html> | ||
544 | 0 | 20 | ||
545 | === added file 'account_financial_report_ext/report/afr_report_webkit_cols4.mako' | |||
546 | --- account_financial_report_ext/report/afr_report_webkit_cols4.mako 1970-01-01 00:00:00 +0000 | |||
547 | +++ account_financial_report_ext/report/afr_report_webkit_cols4.mako 2013-10-12 02:09:45 +0000 | |||
548 | @@ -0,0 +1,19 @@ | |||
549 | 1 | <!DOCTYPE html SYSTEM | ||
550 | 2 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
551 | 3 | <html xmlns="http://www.w3.org/1999/xhtml"> | ||
552 | 4 | <head> | ||
553 | 5 | <style type="text/css"> | ||
554 | 6 | ${css} | ||
555 | 7 | </style> | ||
556 | 8 | </head> | ||
557 | 9 | |||
558 | 10 | <body style="border:0; margin: 0;" onload="subst()" > | ||
559 | 11 | |||
560 | 12 | |||
561 | 13 | <h1><center>Initial | Debit | Credit | YTD</center></h1> | ||
562 | 14 | %for obj in objects: | ||
563 | 15 | <center>${obj.company_id.name}</center> | ||
564 | 16 | <center>${obj.get_parser_method('get_vat_by_country',data['form'])}</center> | ||
565 | 17 | %endfor | ||
566 | 18 | </body> | ||
567 | 19 | </html> | ||
568 | 0 | 20 | ||
569 | === added file 'account_financial_report_ext/report/afr_report_webkit_cols5.mako' | |||
570 | --- account_financial_report_ext/report/afr_report_webkit_cols5.mako 1970-01-01 00:00:00 +0000 | |||
571 | +++ account_financial_report_ext/report/afr_report_webkit_cols5.mako 2013-10-12 02:09:45 +0000 | |||
572 | @@ -0,0 +1,41 @@ | |||
573 | 1 | <!DOCTYPE html SYSTEM | ||
574 | 2 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
575 | 3 | <html xmlns="http://www.w3.org/1999/xhtml"> | ||
576 | 4 | <head> | ||
577 | 5 | <style type="text/css"> | ||
578 | 6 | ${css} | ||
579 | 7 | </style> | ||
580 | 8 | </head> | ||
581 | 9 | |||
582 | 10 | <body style="border:0; margin: 0;" onload="subst()" > | ||
583 | 11 | |||
584 | 12 | |||
585 | 13 | <h1><center>Initial | Debit | Credit | Period | YTD</center></h1> | ||
586 | 14 | %for obj in objects: | ||
587 | 15 | <center>${obj.company_id.name}</center> | ||
588 | 16 | <center>${obj.get_parser_method('get_vat_by_country',data['form'])}</center> | ||
589 | 17 | <center>${obj.get_parser_method('get_informe_text',data['form'])}</center> | ||
590 | 18 | <center>(Expressed in ${data['form'] and obj.get_parser_method('exchange_name', | ||
591 | 19 | (data['form'])) or '' })</center> | ||
592 | 20 | |||
593 | 21 | <div>${helper.embed_image('jpeg',str(obj.company_id.logo),220, 60)}</div> | ||
594 | 22 | <table style="width: 100%; text-align:center;"> | ||
595 | 23 | <tr> | ||
596 | 24 | <th class="celdaTituloTabla" style="text-align:center;" | ||
597 | 25 | width="10%">${_('Code')}</th> | ||
598 | 26 | <th class="celdaTituloTabla" style="text-align:center;" | ||
599 | 27 | width="30%">${_('ACCOUNT')}</th> | ||
600 | 28 | <th class="celdaTituloTabla" style="text-align:center;" | ||
601 | 29 | width="10%">${_('INIT. BAL.')}</th> | ||
602 | 30 | <th class="celdaTituloTabla" style="text-align:center;" | ||
603 | 31 | width="10%">${_('DEBIT')}</th> | ||
604 | 32 | <th class="celdaTituloTabla" style="text-align:center;" | ||
605 | 33 | width="10%">${_('CREDIT')}</th> | ||
606 | 34 | <th class="celdaTituloTabla" style="text-align:center;" | ||
607 | 35 | width="10%">${_('PERIOD')}</th> | ||
608 | 36 | <th class="celdaTituloTabla" style="text-align:center;" | ||
609 | 37 | width="10%">${_('YTD')}</th> | ||
610 | 38 | </tr> | ||
611 | 39 | %endfor | ||
612 | 40 | </body> | ||
613 | 41 | </html> | ||
614 | 0 | 42 | ||
615 | === added file 'account_financial_report_ext/report/afr_report_webkit_journal_ledger.mako' | |||
616 | --- account_financial_report_ext/report/afr_report_webkit_journal_ledger.mako 1970-01-01 00:00:00 +0000 | |||
617 | +++ account_financial_report_ext/report/afr_report_webkit_journal_ledger.mako 2013-10-12 02:09:45 +0000 | |||
618 | @@ -0,0 +1,19 @@ | |||
619 | 1 | <!DOCTYPE html SYSTEM | ||
620 | 2 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
621 | 3 | <html xmlns="http://www.w3.org/1999/xhtml"> | ||
622 | 4 | <head> | ||
623 | 5 | <style type="text/css"> | ||
624 | 6 | ${css} | ||
625 | 7 | </style> | ||
626 | 8 | </head> | ||
627 | 9 | |||
628 | 10 | <body style="border:0; margin: 0;" onload="subst()" > | ||
629 | 11 | |||
630 | 12 | |||
631 | 13 | <h1><center>Journal Ledger</center></h1> | ||
632 | 14 | %for obj in objects: | ||
633 | 15 | <center>${obj.company_id.name}</center> | ||
634 | 16 | <center>${obj.get_parser_method('get_vat_by_country',data['form'])}</center> | ||
635 | 17 | %endfor | ||
636 | 18 | </body> | ||
637 | 19 | </html> | ||
638 | 0 | 20 | ||
639 | === added file 'account_financial_report_ext/report/afr_report_webkit_qtr.mako' | |||
640 | --- account_financial_report_ext/report/afr_report_webkit_qtr.mako 1970-01-01 00:00:00 +0000 | |||
641 | +++ account_financial_report_ext/report/afr_report_webkit_qtr.mako 2013-10-12 02:09:45 +0000 | |||
642 | @@ -0,0 +1,19 @@ | |||
643 | 1 | <!DOCTYPE html SYSTEM | ||
644 | 2 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
645 | 3 | <html xmlns="http://www.w3.org/1999/xhtml"> | ||
646 | 4 | <head> | ||
647 | 5 | <style type="text/css"> | ||
648 | 6 | ${css} | ||
649 | 7 | </style> | ||
650 | 8 | </head> | ||
651 | 9 | |||
652 | 10 | <body style="border:0; margin: 0;" onload="subst()" > | ||
653 | 11 | |||
654 | 12 | |||
655 | 13 | <h1><center>4 QTR | YTD</center></h1> | ||
656 | 14 | %for obj in objects: | ||
657 | 15 | <center>${obj.company_id.name}</center> | ||
658 | 16 | <center>${obj.get_parser_method('get_vat_by_country',data['form'])}</center> | ||
659 | 17 | %endfor | ||
660 | 18 | </body> | ||
661 | 19 | </html> | ||
662 | 0 | 20 | ||
663 | === added file 'account_financial_report_ext/report/report_afr.xml' | |||
664 | --- account_financial_report_ext/report/report_afr.xml 1970-01-01 00:00:00 +0000 | |||
665 | +++ account_financial_report_ext/report/report_afr.xml 2013-10-12 02:09:45 +0000 | |||
666 | @@ -0,0 +1,148 @@ | |||
667 | 1 | <?xml version="1.0"?> | ||
668 | 2 | <openerp> | ||
669 | 3 | <data> | ||
670 | 4 | <report | ||
671 | 5 | auto = "True" | ||
672 | 6 | id="afr_report_col5" | ||
673 | 7 | model="wizard.report" | ||
674 | 8 | name="afr_report_col5" | ||
675 | 9 | file="account_financial_report_ext/report/afr_report_webkit_cols5.mako" | ||
676 | 10 | string="Print AFR" | ||
677 | 11 | report_type="webkit" | ||
678 | 12 | multi="True" | ||
679 | 13 | menu="False"/> | ||
680 | 14 | |||
681 | 15 | <record id="property_afr_report_webkit1" model="ir.property"> | ||
682 | 16 | <field name="name">webkit_header</field> | ||
683 | 17 | <field name="fields_id" ref="report_webkit.field_ir_act_report_xml_webkit_header"/> | ||
684 | 18 | <field eval="'ir.header_webkit,'+str(ref('account_financial_report_ext.ir_header_webkit_afrreport_five_colums'))" model="ir.header_webkit" name="value"/> | ||
685 | 19 | <field eval="'ir.actions.report.xml,'+str(ref('account_financial_report_ext.afr_report_col5'))" model="ir.actions.report.xml" name="res_id"/> | ||
686 | 20 | </record> | ||
687 | 21 | |||
688 | 22 | |||
689 | 23 | <report | ||
690 | 24 | auto = "True" | ||
691 | 25 | id="afr_report_col1" | ||
692 | 26 | model="wizard.report" | ||
693 | 27 | name="afr_report_col1" | ||
694 | 28 | file="account_financial_report_ext/report/afr_report_webkit_cols1.mako" | ||
695 | 29 | string="Print AFR" | ||
696 | 30 | report_type="webkit" | ||
697 | 31 | multi="True" | ||
698 | 32 | menu="False"/> | ||
699 | 33 | |||
700 | 34 | <record id="property_afr_report_webkit2" model="ir.property"> | ||
701 | 35 | <field name="name">webkit_header</field> | ||
702 | 36 | <field name="fields_id" ref="report_webkit.field_ir_act_report_xml_webkit_header"/> | ||
703 | 37 | <field eval="'ir.header_webkit,'+str(ref('account_financial_report_ext.ir_header_webkit_afrreport_one_colums'))" model="ir.header_webkit" name="value"/> | ||
704 | 38 | <field eval="'ir.actions.report.xml,'+str(ref('account_financial_report_ext.afr_report_col1'))" model="ir.actions.report.xml" name="res_id"/> | ||
705 | 39 | </record> | ||
706 | 40 | |||
707 | 41 | <report | ||
708 | 42 | auto = "True" | ||
709 | 43 | id="afr_report_col2" | ||
710 | 44 | model="wizard.report" | ||
711 | 45 | name="afr_report_col2" | ||
712 | 46 | file="account_financial_report_ext/report/afr_report_webkit_cols2.mako" | ||
713 | 47 | string="Print AFR" | ||
714 | 48 | report_type="webkit" | ||
715 | 49 | multi="True" | ||
716 | 50 | menu="False"/> | ||
717 | 51 | |||
718 | 52 | <record id="property_afr_report_webkit3" model="ir.property"> | ||
719 | 53 | <field name="name">webkit_header</field> | ||
720 | 54 | <field name="fields_id" ref="report_webkit.field_ir_act_report_xml_webkit_header"/> | ||
721 | 55 | <field eval="'ir.header_webkit,'+str(ref('account_financial_report_ext.ir_header_webkit_afrreport_two_colums'))" model="ir.header_webkit" name="value"/> | ||
722 | 56 | <field eval="'ir.actions.report.xml,'+str(ref('account_financial_report_ext.afr_report_col2'))" model="ir.actions.report.xml" name="res_id"/> | ||
723 | 57 | </record> | ||
724 | 58 | |||
725 | 59 | <report | ||
726 | 60 | auto = "True" | ||
727 | 61 | id="afr_report_col4" | ||
728 | 62 | model="wizard.report" | ||
729 | 63 | name="afr_report_col4" | ||
730 | 64 | file="account_financial_report_ext/report/afr_report_webkit_cols4.mako" | ||
731 | 65 | string="Print AFR" | ||
732 | 66 | report_type="webkit" | ||
733 | 67 | multi="True" | ||
734 | 68 | menu="False"/> | ||
735 | 69 | |||
736 | 70 | <record id="property_afr_report_webkit4" model="ir.property"> | ||
737 | 71 | <field name="name">webkit_header</field> | ||
738 | 72 | <field name="fields_id" ref="report_webkit.field_ir_act_report_xml_webkit_header"/> | ||
739 | 73 | <field eval="'ir.header_webkit,'+str(ref('account_financial_report_ext.ir_header_webkit_afrreport_four_colums'))" model="ir.header_webkit" name="value"/> | ||
740 | 74 | <field eval="'ir.actions.report.xml,'+str(ref('account_financial_report_ext.afr_report_col4'))" model="ir.actions.report.xml" name="res_id"/> | ||
741 | 75 | </record> | ||
742 | 76 | |||
743 | 77 | |||
744 | 78 | <report | ||
745 | 79 | auto = "True" | ||
746 | 80 | id="afr_report_journal_ledger" | ||
747 | 81 | model="wizard.report" | ||
748 | 82 | name="afr_report_journal_ledger" | ||
749 | 83 | file="account_financial_report_ext/report/afr_report_webkit_journal_ledger.mako" | ||
750 | 84 | string="Print AFR" | ||
751 | 85 | report_type="webkit" | ||
752 | 86 | multi="True" | ||
753 | 87 | menu="False"/> | ||
754 | 88 | |||
755 | 89 | <record id="property_afr_report_webkit6" model="ir.property"> | ||
756 | 90 | <field name="name">webkit_header</field> | ||
757 | 91 | <field name="fields_id" ref="report_webkit.field_ir_act_report_xml_webkit_header"/> | ||
758 | 92 | <field eval="'ir.header_webkit,'+str(ref('account_financial_report_ext.ir_header_webkit_afrreport_journal_ledger'))" model="ir.header_webkit" name="value"/> | ||
759 | 93 | <field eval="'ir.actions.report.xml,'+str(ref('account_financial_report_ext.afr_report_journal_ledger'))" model="ir.actions.report.xml" name="res_id"/> | ||
760 | 94 | </record> | ||
761 | 95 | |||
762 | 96 | <report | ||
763 | 97 | auto = "True" | ||
764 | 98 | id="afr_report_qtr" | ||
765 | 99 | model="wizard.report" | ||
766 | 100 | name="afr_report_qtr" | ||
767 | 101 | file="account_financial_report_ext/report/afr_report_webkit_qtr.mako" | ||
768 | 102 | string="Print AFR" | ||
769 | 103 | report_type="webkit" | ||
770 | 104 | multi="True" | ||
771 | 105 | menu="False"/> | ||
772 | 106 | |||
773 | 107 | <record id="property_afr_report_webkit7" model="ir.property"> | ||
774 | 108 | <field name="name">webkit_header</field> | ||
775 | 109 | <field name="fields_id" ref="report_webkit.field_ir_act_report_xml_webkit_header"/> | ||
776 | 110 | <field eval="'ir.header_webkit,'+str(ref('account_financial_report_ext.ir_header_webkit_afrreport_qtr'))" model="ir.header_webkit" name="value"/> | ||
777 | 111 | <field eval="'ir.actions.report.xml,'+str(ref('account_financial_report_ext.afr_report_qtr'))" model="ir.actions.report.xml" name="res_id"/> | ||
778 | 112 | </record> | ||
779 | 113 | <report | ||
780 | 114 | auto = "True" | ||
781 | 115 | id="afr_report_col13" | ||
782 | 116 | model="wizard.report" | ||
783 | 117 | name="afr_report_col13" | ||
784 | 118 | file="account_financial_report_ext/report/afr_report_webkit_cols13.mako" | ||
785 | 119 | string="Print AFR" | ||
786 | 120 | report_type="webkit" | ||
787 | 121 | multi="True" | ||
788 | 122 | menu="False"/> | ||
789 | 123 | |||
790 | 124 | <record id="property_afr_report_webkit8" model="ir.property"> | ||
791 | 125 | <field name="name">webkit_header</field> | ||
792 | 126 | <field name="fields_id" ref="report_webkit.field_ir_act_report_xml_webkit_header"/> | ||
793 | 127 | <field eval="'ir.header_webkit,'+str(ref('account_financial_report_ext.ir_header_webkit_afrreport_col13'))" model="ir.header_webkit" name="value"/> | ||
794 | 128 | <field eval="'ir.actions.report.xml,'+str(ref('account_financial_report_ext.afr_report_col13'))" model="ir.actions.report.xml" name="res_id"/> | ||
795 | 129 | </record> | ||
796 | 130 | <report | ||
797 | 131 | auto = "True" | ||
798 | 132 | id="afr_report_analytic_ledger" | ||
799 | 133 | model="wizard.report" | ||
800 | 134 | name="afr_report_analytic_ledger" | ||
801 | 135 | file="account_financial_report_ext/report/afr_report_webkit_analytic_ledger.mako" | ||
802 | 136 | string="Print AFR" | ||
803 | 137 | report_type="webkit" | ||
804 | 138 | multi="True" | ||
805 | 139 | menu="False"/> | ||
806 | 140 | |||
807 | 141 | <record id="property_afr_report_webkit9" model="ir.property"> | ||
808 | 142 | <field name="name">webkit_header</field> | ||
809 | 143 | <field name="fields_id" ref="report_webkit.field_ir_act_report_xml_webkit_header"/> | ||
810 | 144 | <field eval="'ir.header_webkit,'+str(ref('account_financial_report_ext.ir_header_webkit_afrreport_analytic_ledger'))" model="ir.header_webkit" name="value"/> | ||
811 | 145 | <field eval="'ir.actions.report.xml,'+str(ref('account_financial_report_ext.afr_report_analytic_ledger'))" model="ir.actions.report.xml" name="res_id"/> | ||
812 | 146 | </record> | ||
813 | 147 | </data> | ||
814 | 148 | </openerp> | ||
815 | 0 | 149 | ||
816 | === added directory 'account_financial_report_ext/security' | |||
817 | === added directory 'account_financial_report_ext/static' | |||
818 | === added directory 'account_financial_report_ext/static/description' | |||
819 | === added file 'account_financial_report_ext/static/description/index.html' | |||
820 | === added directory 'account_financial_report_ext/static/src' | |||
821 | === added directory 'account_financial_report_ext/static/src/css' | |||
822 | === added directory 'account_financial_report_ext/static/src/img' | |||
823 | === added directory 'account_financial_report_ext/static/src/js' | |||
824 | === added directory 'account_financial_report_ext/static/src/xml' | |||
825 | === added directory 'account_financial_report_ext/test' | |||
826 | === added directory 'account_financial_report_ext/view' | |||
827 | === added directory 'account_financial_report_ext/wizard' | |||
828 | === added file 'account_financial_report_ext/wizard/__init__.py' | |||
829 | --- account_financial_report_ext/wizard/__init__.py 1970-01-01 00:00:00 +0000 | |||
830 | +++ account_financial_report_ext/wizard/__init__.py 2013-10-12 02:09:45 +0000 | |||
831 | @@ -0,0 +1,26 @@ | |||
832 | 1 | #!/usr/bin/python | ||
833 | 2 | # -*- encoding: utf-8 -*- | ||
834 | 3 | ############################################################################### | ||
835 | 4 | # Module Writen to OpenERP, Open Source Management Solution | ||
836 | 5 | # Copyright (C) OpenERP Venezuela (<http://www.vauxoo.com>). | ||
837 | 6 | # All Rights Reserved | ||
838 | 7 | ############# Credits ######################################################### | ||
839 | 8 | # Coded by: Yanina Aular <yani@vauxoo.com> | ||
840 | 9 | # Planified by: Humberto Arocha <hbto@vauxoo.com> | ||
841 | 10 | # Audited by: Humberto Arocha <hbto@vauxoo.com> | ||
842 | 11 | ############################################################################### | ||
843 | 12 | # This program is free software: you can redistribute it and/or modify | ||
844 | 13 | # it under the terms of the GNU Affero General Public License as published | ||
845 | 14 | # by the Free Software Foundation, either version 3 of the License, or | ||
846 | 15 | # (at your option) any later version. | ||
847 | 16 | # | ||
848 | 17 | # This program is distributed in the hope that it will be useful, | ||
849 | 18 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
850 | 19 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
851 | 20 | # GNU Affero General Public License for more details. | ||
852 | 21 | # | ||
853 | 22 | # You should have received a copy of the GNU Affero General Public License | ||
854 | 23 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
855 | 24 | ############################################################################### | ||
856 | 25 | |||
857 | 26 | import afr_report_wizard | ||
858 | 0 | 27 | ||
859 | === added file 'account_financial_report_ext/wizard/afr_report_wizard.py' | |||
860 | --- account_financial_report_ext/wizard/afr_report_wizard.py 1970-01-01 00:00:00 +0000 | |||
861 | +++ account_financial_report_ext/wizard/afr_report_wizard.py 2013-10-12 02:09:45 +0000 | |||
862 | @@ -0,0 +1,89 @@ | |||
863 | 1 | #!/usr/bin/python | ||
864 | 2 | # -*- encoding: utf-8 -*- | ||
865 | 3 | ############################################################################### | ||
866 | 4 | # Module Writen to OpenERP, Open Source Management Solution | ||
867 | 5 | # Copyright (C) OpenERP Venezuela (<http://www.vauxoo.com>). | ||
868 | 6 | # All Rights Reserved | ||
869 | 7 | ############# Credits ######################################################### | ||
870 | 8 | # Coded by: Yanina Aular <yani@vauxoo.com> | ||
871 | 9 | # Planified by: Humberto Arocha <hbto@vauxoo.com> | ||
872 | 10 | # Audited by: Humberto Arocha <hbto@vauxoo.com> | ||
873 | 11 | ############################################################################### | ||
874 | 12 | # This program is free software: you can redistribute it and/or modify | ||
875 | 13 | # it under the terms of the GNU Affero General Public License as published | ||
876 | 14 | # by the Free Software Foundation, either version 3 of the License, or | ||
877 | 15 | # (at your option) any later version. | ||
878 | 16 | # | ||
879 | 17 | # This program is distributed in the hope that it will be useful, | ||
880 | 18 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
881 | 19 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
882 | 20 | # GNU Affero General Public License for more details. | ||
883 | 21 | # | ||
884 | 22 | # You should have received a copy of the GNU Affero General Public License | ||
885 | 23 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
886 | 24 | ############################################################################### | ||
887 | 25 | |||
888 | 26 | |||
889 | 27 | |||
890 | 28 | from osv import osv, fields | ||
891 | 29 | import pooler | ||
892 | 30 | import time | ||
893 | 31 | from tools.translate import _ | ||
894 | 32 | from account_financial_report.report import parser as Parser | ||
895 | 33 | |||
896 | 34 | |||
897 | 35 | class wizard_report(osv.osv_memory): | ||
898 | 36 | _inherit = "wizard.report" | ||
899 | 37 | |||
900 | 38 | def get_parser_method(self, cr, uid, ids, method=None, args=None, param=None, context=None): | ||
901 | 39 | if context is None: | ||
902 | 40 | context = {} | ||
903 | 41 | |||
904 | 42 | acc_bal_obj = Parser.account_balance(cr, uid, ids ,context=context) | ||
905 | 43 | res = [] | ||
906 | 44 | |||
907 | 45 | if method: | ||
908 | 46 | if method in ("get_company_accounts", "_get_analytic_ledger", "_get_journal_ledger", | ||
909 | 47 | "lines"): | ||
910 | 48 | res = getattr(acc_bal_obj, method)(args, param) | ||
911 | 49 | else: | ||
912 | 50 | res = getattr(acc_bal_obj, method)(args) | ||
913 | 51 | |||
914 | 52 | return res | ||
915 | 53 | |||
916 | 54 | def print_report(self, cr, uid, ids, data, context=None): | ||
917 | 55 | if context is None: | ||
918 | 56 | context = {} | ||
919 | 57 | |||
920 | 58 | res = super(wizard_report, self).print_report(cr, uid, ids, data=data, context=context) | ||
921 | 59 | |||
922 | 60 | res.get('datas')['ids'] = ids | ||
923 | 61 | |||
924 | 62 | if( res.get('report_name') == 'afr.1cols'): | ||
925 | 63 | res['report_name'] = 'afr_report_col1' | ||
926 | 64 | |||
927 | 65 | if( res.get('report_name') == 'afr.2cols'): | ||
928 | 66 | res['report_name'] = 'afr_report_col2' | ||
929 | 67 | |||
930 | 68 | if( res.get('report_name') == 'afr.4cols'): | ||
931 | 69 | res['report_name'] = 'afr_report_col4' | ||
932 | 70 | |||
933 | 71 | if( res.get('report_name') == 'afr.5cols'): | ||
934 | 72 | res['report_name'] = 'afr_report_col5' | ||
935 | 73 | |||
936 | 74 | if( res.get('report_name') == 'afr.journal.ledger'): | ||
937 | 75 | res['report_name'] = 'afr_report_journal_ledger' | ||
938 | 76 | |||
939 | 77 | if( res.get('report_name') == 'afr.analytic.ledger'): | ||
940 | 78 | res['report_name'] = 'afr_report_analytic_ledger' | ||
941 | 79 | |||
942 | 80 | if( res.get('report_name') == 'afr.qtrcols'): | ||
943 | 81 | res['report_name'] = 'afr_report_qtr' | ||
944 | 82 | |||
945 | 83 | if( res.get('report_name') == 'afr.13cols'): | ||
946 | 84 | res['report_name'] = 'afr_report_col13' | ||
947 | 85 | |||
948 | 86 | return res | ||
949 | 87 | |||
950 | 88 | |||
951 | 89 | |||
952 | 0 | 90 | ||
953 | === added directory 'account_financial_report_ext/workflow' |