Merge lp:~vauxoo/account-financial-report/7.0-report_webkit_afr-dev-yani into lp:~account-report-core-editor/account-financial-report/7.0

Proposed by Yanina Aular (Vauxoo)
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
Reviewer Review Type Date Requested Status
hbto [Vauxoo] http://www.vauxoo.com Pending
Review via email: mp+190779@code.launchpad.net

Description of the change

The templates for creating account financial report reports in webkit ready.

To post a comment you must log in.
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

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'account_financial_report/wizard/wizard.py'
--- account_financial_report/wizard/wizard.py 2013-07-26 17:03:11 +0000
+++ account_financial_report/wizard/wizard.py 2013-10-12 02:09:45 +0000
@@ -284,7 +284,6 @@
284 name = 'afr.qtrcols'284 name = 'afr.qtrcols'
285 if data['form']['columns'] == 'thirteen':285 if data['form']['columns'] == 'thirteen':
286 name = 'afr.13cols'286 name = 'afr.13cols'
287
288 return {'type': 'ir.actions.report.xml', 'report_name': name, 'datas': data}287 return {'type': 'ir.actions.report.xml', 'report_name': name, 'datas': data}
289288
290wizard_report()289wizard_report()
291290
=== added directory 'account_financial_report_ext'
=== added file 'account_financial_report_ext/__init__.py'
--- account_financial_report_ext/__init__.py 1970-01-01 00:00:00 +0000
+++ account_financial_report_ext/__init__.py 2013-10-12 02:09:45 +0000
@@ -0,0 +1,26 @@
1#!/usr/bin/python
2# -*- encoding: utf-8 -*-
3###############################################################################
4# Module Writen to OpenERP, Open Source Management Solution
5# Copyright (C) OpenERP Venezuela (<http://www.vauxoo.com>).
6# All Rights Reserved
7############# Credits #########################################################
8# Coded by: Yanina Aular <yani@vauxoo.com>
9# Planified by: Humberto Arocha <hbto@vauxoo.com>
10# Audited by: Humberto Arocha <hbto@vauxoo.com>
11###############################################################################
12# This program is free software: you can redistribute it and/or modify
13# it under the terms of the GNU Affero General Public License as published
14# by the Free Software Foundation, either version 3 of the License, or
15# (at your option) any later version.
16#
17# This program is distributed in the hope that it will be useful,
18# but WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20# GNU Affero General Public License for more details.
21#
22# You should have received a copy of the GNU Affero General Public License
23# along with this program. If not, see <http://www.gnu.org/licenses/>.
24###############################################################################
25import model
26import wizard
027
=== added file 'account_financial_report_ext/__openerp__.py'
--- account_financial_report_ext/__openerp__.py 1970-01-01 00:00:00 +0000
+++ account_financial_report_ext/__openerp__.py 2013-10-12 02:09:45 +0000
@@ -0,0 +1,54 @@
1#!/usr/bin/python
2# -*- encoding: utf-8 -*-
3###############################################################################
4# Module Writen to OpenERP, Open Source Management Solution
5# Copyright (C) OpenERP Venezuela (<http://www.vauxoo.com>).
6# All Rights Reserved
7############# Credits #########################################################
8# Coded by: Yanina Aular <yani@vauxoo.com>
9# Planified by: Humberto Arocha <hbto@vauxoo.com>
10# Audited by: Humberto Arocha <hbto@vauxoo.com>
11###############################################################################
12# This program is free software: you can redistribute it and/or modify
13# it under the terms of the GNU Affero General Public License as published
14# by the Free Software Foundation, either version 3 of the License, or
15# (at your option) any later version.
16#
17# This program is distributed in the hope that it will be useful,
18# but WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20# GNU Affero General Public License for more details.
21#
22# You should have received a copy of the GNU Affero General Public License
23# along with this program. If not, see <http://www.gnu.org/licenses/>.
24###############################################################################
25
26{
27 'name': 'Account Financial Report Ext',
28 'version': '1.0',
29 'author': 'Vauxoo',
30 'website': 'http://www.vauxoo.com/',
31 'category': 'Accounting',
32 'description': '''
33Account Financial Report Ext
34============================
35
36Account Financial Report Reports on Webkit
37
38Main Features
39=============
40
41account_financial_report module reports are now printed using webkit.
42
43
44''',
45 'depends': ['base', 'mail', 'account_accountant', 'account_financial_report', 'report_webkit'],
46 'data': [
47 'data/html_css_afr.xml',
48 'report/report_afr.xml',
49 ],
50 'demo': [],
51 'test': [],
52 'active': False,
53 'installable': True,
54}
055
=== added directory 'account_financial_report_ext/data'
=== added file 'account_financial_report_ext/data/html_css_afr.xml'
--- account_financial_report_ext/data/html_css_afr.xml 1970-01-01 00:00:00 +0000
+++ account_financial_report_ext/data/html_css_afr.xml 2013-10-12 02:09:45 +0000
@@ -0,0 +1,274 @@
1<?xml version="1.0" ?>
2<openerp>
3 <data noupdate="0">
4 <record id="ir_header_webkit_afrreport_analytic_ledger" model="ir.header_webkit">
5 <field name="name">Reports AFR WebKit</field>
6 <field name="footer_html">
7 <![CDATA[]]></field>
8 <field name="orientation">Portrait</field>
9 <field name="format">Letter</field>
10 <field name="html">
11 <![CDATA[]]> </field>
12 <field eval="0.0" name="margin_top"/>
13 <field name="css" >
14 <![CDATA[ ]]>
15 </field>
16 </record>
17
18 <record id="ir_header_webkit_afrreport_col13" model="ir.header_webkit">
19 <field name="name">Reports AFR WebKit</field>
20 <field name="footer_html">
21 <![CDATA[]]></field>
22 <field name="orientation">Portrait</field>
23 <field name="format">Letter</field>
24 <field name="html">
25 <![CDATA[]]> </field>
26 <field eval="0.0" name="margin_top"/>
27 <field name="css" >
28 <![CDATA[ ]]>
29 </field>
30 </record>
31
32 <record id="ir_header_webkit_afrreport_qtr" model="ir.header_webkit">
33 <field name="name">Reports AFR WebKit</field>
34 <field name="footer_html">
35 <![CDATA[]]></field>
36 <field name="orientation">Portrait</field>
37 <field name="format">Letter</field>
38 <field name="html">
39 <![CDATA[]]> </field>
40 <field eval="0.0" name="margin_top"/>
41 <field name="css" >
42 <![CDATA[ ]]>
43 </field>
44 </record>
45
46 <record id="ir_header_webkit_afrreport_journal_ledger" model="ir.header_webkit">
47 <field name="name">Reports AFR WebKit</field>
48 <field name="footer_html">
49 <![CDATA[]]></field>
50 <field name="orientation">Portrait</field>
51 <field name="format">Letter</field>
52 <field name="html">
53 <![CDATA[]]> </field>
54 <field eval="0.0" name="margin_top"/>
55 <field name="css" >
56 <![CDATA[ ]]>
57 </field>
58 </record>
59
60 <record id="ir_header_webkit_afrreport_five_colums" model="ir.header_webkit">
61 <field name="name">Reports AFR WebKit</field>
62 <field name="footer_html">
63 <![CDATA[]]></field>
64 <field name="orientation">Portrait</field>
65 <field name="format">Letter</field>
66 <field name="html">
67 <![CDATA[]]> </field>
68 <field eval="0.0" name="margin_top"/>
69 <field name="css" >
70 <![CDATA[ ]]>
71 </field>
72 </record>
73
74 <record id="ir_header_webkit_afrreport_four_colums" model="ir.header_webkit">
75 <field name="name">Reports AFR WebKit</field>
76 <field name="footer_html">
77 <![CDATA[]]></field>
78 <field name="orientation">Portrait</field>
79 <field name="format">Letter</field>
80 <field name="html">
81 <![CDATA[]]> </field>
82 <field eval="0.0" name="margin_top"/>
83 <field name="css" >
84 <![CDATA[ ]]>
85 </field>
86 </record>
87
88 <record id="ir_header_webkit_afrreport_two_colums" model="ir.header_webkit">
89 <field name="name">Reports AFR WebKit</field>
90 <field name="footer_html">
91 <![CDATA[]]></field>
92 <field name="orientation">Portrait</field>
93 <field name="format">Letter</field>
94 <field name="html">
95 <![CDATA[]]> </field>
96 <field eval="0.0" name="margin_top"/>
97 <field name="css" >
98 <![CDATA[ ]]>
99 </field>
100 </record>
101
102 <record id="ir_header_webkit_afrreport_one_colums" model="ir.header_webkit">
103 <field name="name">Reports AFR WebKit</field>
104 <field name="footer_html">
105 <![CDATA[]]></field>
106 <field name="orientation">Portrait</field>
107 <field name="format">Letter</field>
108 <field name="html">
109 <![CDATA[]]> </field>
110 <field eval="0.0" name="margin_top"/>
111 <field name="css" >
112 <![CDATA[ ]]>
113 </field>
114 </record>
115
116 <record id="ir_header_webkit_afrreport_five_colums" model="ir.header_webkit">
117 <field name="name">Reports AFR WebKit Five Columns</field>
118 <field name="footer_html">
119<![CDATA[<html>
120 <head>
121 <meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
122 <script>
123 function subst() {
124 var vars={};
125 var x=document.location.search.substring(1).split('&');
126 for(var i in x) {var z=x[i].split('=',2);vars[z[0]] = unescape(z[1]);}
127 var x=['frompage','topage','page','webpage','section','subsection','subsubsection'];
128 for(var i in x) {
129 var y = document.getElementsByClassName(x[i]);
130 for(var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
131 }
132 }
133 </script>
134 </head>
135 <body style="border:0; margin: 0;" onload="subst()">
136 <table style="border-top: 1px solid black; width: 100%">
137 <tr >
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>
139 </tr>
140 </table>
141 </body>
142</html>]]></field>
143 <field name="orientation">Portrait</field>
144 <field name="format">Letter</field>
145 <field name="html">
146<![CDATA[<html>
147 <head>
148 <meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
149 <script>
150 function subst() {
151 var vars={};
152 var x=document.location.search.substring(1).split('&');
153 for(var i in x) {var z=x[i].split('=',2);vars[z[0]] = unescape(z[1]);}
154 var x=['frompage','topage','page','webpage','section','subsection','subsubsection'];
155 for(var i in x) {
156 var y = document.getElementsByClassName(x[i]);
157 for(var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
158 }
159 }
160 </script>
161 <style type="text/css">
162 ${css}
163 </style>
164 </head>
165 <body style="border:0; margin: 0;" onload="subst()">
166 ${_debug or ''|n}
167 </body>
168</html>]]>
169</field>
170 <field eval="0.0" name="margin_top"/>
171 <field name="css" >
172<![CDATA[
173
174table.basic_table{
175text-align:left;
176border:1px solid lightGrey;
177border-collapse: collapse;
178}
179
180.dest_address {
181font-size:12pt;
182margin-left:0;
183text-align:left;
184line-height:80%;
185padding-top:0px
186}
187
188.prueba{
189color:black;
190background-color:#dcdcdc;
191}
192
193
194.celdaTotalTitulo{
195font-size:11pt;
196text-align:left;
197font-weight:bold;
198font-family:Arial,Helvetica,sans-serif;
199background-color:#dcdcdc;
200}
201
202.celdaTotal{
203font-size:10pt;
204font-family: monospace;
205text-align:right;
206font-weight:bold;
207background-color:#dcdcdc;
208}
209
210.celdaDetailTitulo{
211font-style:italic;
212font-size:11pt;
213text-align:left;
214font-family:Arial,Helvetica,sans-serif;
215background-color:#F5F5F5;
216}
217
218.celdaDetail{
219font-size:10pt;
220font-family: monospace;
221text-align:right;
222background-color:#F5F5F5;
223}
224
225.celdaAbstractTotal{
226font-size:11pt;
227text-align:left;
228font-family:Arial,Helvetica,sans-serif;
229background-color:#EAEAEA;
230}
231
232.celdaTituloTabla{
233font-size:11pt;
234text-align:left;
235font-family:Arial,Helvetica,sans-serif;
236background-color:#620400;
237color:#FFFFFF;
238}
239
240
241.celdaAbstract{
242font-size:10pt;
243font-family: monospace;
244text-align:right;
245background-color:#EAEAEA;
246}
247
248div.td_company
249{
250font-size:12pt;
251margin-left:0;
252font-weight:bold;
253font-family:Arial,Helvetica,sans-serif;
254}
255
256div.td_company_title
257{
258font-size:22pt;
259margin-left:0;
260font-weight:bold;
261font-family:Arial,Helvetica,sans-serif;
262}
263
264]]>
265 </field>
266 </record>
267
268 <record id="ir_header_img_companylogo0" model="ir.header_img">
269 <field eval="&quot;&quot;&quot;jpg&quot;&quot;&quot;" name="type"/>
270 <field eval="&quot;&quot;&quot;company_logo&quot;&quot;&quot;" name="name"/>
271 </record>
272
273 </data>
274</openerp>
0275
=== added directory 'account_financial_report_ext/demo'
=== added directory 'account_financial_report_ext/doc'
=== added directory 'account_financial_report_ext/doc/images'
=== added directory 'account_financial_report_ext/i18n'
=== added directory 'account_financial_report_ext/model'
=== added file 'account_financial_report_ext/model/__init__.py'
--- account_financial_report_ext/model/__init__.py 1970-01-01 00:00:00 +0000
+++ account_financial_report_ext/model/__init__.py 2013-10-12 02:09:45 +0000
@@ -0,0 +1,25 @@
1#!/usr/bin/python
2# -*- encoding: utf-8 -*-
3###############################################################################
4# Module Writen to OpenERP, Open Source Management Solution
5# Copyright (C) OpenERP Venezuela (<http://www.vauxoo.com>).
6# All Rights Reserved
7############# Credits #########################################################
8# Coded by: Yanina Aular <yani@vauxoo.com>
9# Planified by: Humberto Arocha <hbto@vauxoo.com>
10# Audited by: Humberto Arocha <hbto@vauxoo.com>
11###############################################################################
12# This program is free software: you can redistribute it and/or modify
13# it under the terms of the GNU Affero General Public License as published
14# by the Free Software Foundation, either version 3 of the License, or
15# (at your option) any later version.
16#
17# This program is distributed in the hope that it will be useful,
18# but WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20# GNU Affero General Public License for more details.
21#
22# You should have received a copy of the GNU Affero General Public License
23# along with this program. If not, see <http://www.gnu.org/licenses/>.
24###############################################################################
25
026
=== added directory 'account_financial_report_ext/report'
=== added file 'account_financial_report_ext/report/__init__.py'
--- account_financial_report_ext/report/__init__.py 1970-01-01 00:00:00 +0000
+++ account_financial_report_ext/report/__init__.py 2013-10-12 02:09:45 +0000
@@ -0,0 +1,25 @@
1#!/usr/bin/python
2# -*- encoding: utf-8 -*-
3###############################################################################
4# Module Writen to OpenERP, Open Source Management Solution
5# Copyright (C) OpenERP Venezuela (<http://www.vauxoo.com>).
6# All Rights Reserved
7############# Credits #########################################################
8# Coded by: Yanina Aular <yani@vauxoo.com>
9# Planified by: Humberto Arocha <hbto@vauxoo.com>
10# Audited by: Humberto Arocha <hbto@vauxoo.com>
11###############################################################################
12# This program is free software: you can redistribute it and/or modify
13# it under the terms of the GNU Affero General Public License as published
14# by the Free Software Foundation, either version 3 of the License, or
15# (at your option) any later version.
16#
17# This program is distributed in the hope that it will be useful,
18# but WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20# GNU Affero General Public License for more details.
21#
22# You should have received a copy of the GNU Affero General Public License
23# along with this program. If not, see <http://www.gnu.org/licenses/>.
24###############################################################################
25
026
=== added file 'account_financial_report_ext/report/afr_report_webkit_analytic_ledger.mako'
--- account_financial_report_ext/report/afr_report_webkit_analytic_ledger.mako 1970-01-01 00:00:00 +0000
+++ account_financial_report_ext/report/afr_report_webkit_analytic_ledger.mako 2013-10-12 02:09:45 +0000
@@ -0,0 +1,19 @@
1<!DOCTYPE html SYSTEM
2"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml">
4<head>
5<style type="text/css">
6 ${css}
7</style>
8</head>
9
10<body style="border:0; margin: 0;" onload="subst()" >
11
12
13 <h1><center>Analytic Ledger</center></h1>
14 %for obj in objects:
15 <center>${obj.company_id.name}</center>
16 <center>${obj.get_parser_method('get_vat_by_country',data['form'])}</center>
17 %endfor
18</body>
19</html>
020
=== added file 'account_financial_report_ext/report/afr_report_webkit_cols1.mako'
--- account_financial_report_ext/report/afr_report_webkit_cols1.mako 1970-01-01 00:00:00 +0000
+++ account_financial_report_ext/report/afr_report_webkit_cols1.mako 2013-10-12 02:09:45 +0000
@@ -0,0 +1,18 @@
1<!DOCTYPE html SYSTEM
2"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml">
4<head>
5<style type="text/css">
6 ${css}
7</style>
8</head>
9
10<body style="border:0; margin: 0;" onload="subst()" >
11
12 <h1><center>End. Balance</center></h1>
13 %for obj in objects:
14 <center>${obj.company_id.name}</center>
15 <center>${obj.get_parser_method('get_vat_by_country',data['form'])}</center>
16 %endfor
17</body>
18</html>
019
=== added file 'account_financial_report_ext/report/afr_report_webkit_cols13.mako'
--- account_financial_report_ext/report/afr_report_webkit_cols13.mako 1970-01-01 00:00:00 +0000
+++ account_financial_report_ext/report/afr_report_webkit_cols13.mako 2013-10-12 02:09:45 +0000
@@ -0,0 +1,19 @@
1<!DOCTYPE html SYSTEM
2"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml">
4<head>
5<style type="text/css">
6 ${css}
7</style>
8</head>
9
10<body style="border:0; margin: 0;" onload="subst()" >
11
12
13 <h1><center>12 Months | YTD</center></h1>
14 %for obj in objects:
15 <center>${obj.company_id.name}</center>
16 <center>${obj.get_parser_method('get_vat_by_country',data['form'])}</center>
17 %endfor
18</body>
19</html>
020
=== added file 'account_financial_report_ext/report/afr_report_webkit_cols2.mako'
--- account_financial_report_ext/report/afr_report_webkit_cols2.mako 1970-01-01 00:00:00 +0000
+++ account_financial_report_ext/report/afr_report_webkit_cols2.mako 2013-10-12 02:09:45 +0000
@@ -0,0 +1,19 @@
1<!DOCTYPE html SYSTEM
2"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml">
4<head>
5<style type="text/css">
6 ${css}
7</style>
8</head>
9
10<body style="border:0; margin: 0;" onload="subst()" >
11
12
13 <h1><center>Debit | Credit</center></h1>
14 %for obj in objects:
15 <center>${obj.company_id.name}</center>
16 <center>${obj.get_parser_method('get_vat_by_country',data['form'])}</center>
17 %endfor
18</body>
19</html>
020
=== added file 'account_financial_report_ext/report/afr_report_webkit_cols4.mako'
--- account_financial_report_ext/report/afr_report_webkit_cols4.mako 1970-01-01 00:00:00 +0000
+++ account_financial_report_ext/report/afr_report_webkit_cols4.mako 2013-10-12 02:09:45 +0000
@@ -0,0 +1,19 @@
1<!DOCTYPE html SYSTEM
2"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml">
4<head>
5<style type="text/css">
6 ${css}
7</style>
8</head>
9
10<body style="border:0; margin: 0;" onload="subst()" >
11
12
13 <h1><center>Initial | Debit | Credit | YTD</center></h1>
14 %for obj in objects:
15 <center>${obj.company_id.name}</center>
16 <center>${obj.get_parser_method('get_vat_by_country',data['form'])}</center>
17 %endfor
18</body>
19</html>
020
=== added file 'account_financial_report_ext/report/afr_report_webkit_cols5.mako'
--- account_financial_report_ext/report/afr_report_webkit_cols5.mako 1970-01-01 00:00:00 +0000
+++ account_financial_report_ext/report/afr_report_webkit_cols5.mako 2013-10-12 02:09:45 +0000
@@ -0,0 +1,41 @@
1<!DOCTYPE html SYSTEM
2"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml">
4<head>
5<style type="text/css">
6 ${css}
7</style>
8</head>
9
10<body style="border:0; margin: 0;" onload="subst()" >
11
12
13 <h1><center>Initial | Debit | Credit | Period | YTD</center></h1>
14 %for obj in objects:
15 <center>${obj.company_id.name}</center>
16 <center>${obj.get_parser_method('get_vat_by_country',data['form'])}</center>
17 <center>${obj.get_parser_method('get_informe_text',data['form'])}</center>
18 <center>(Expressed in ${data['form'] and obj.get_parser_method('exchange_name',
19 (data['form'])) or '' })</center>
20
21 <div>${helper.embed_image('jpeg',str(obj.company_id.logo),220, 60)}</div>
22 <table style="width: 100%; text-align:center;">
23 <tr>
24 <th class="celdaTituloTabla" style="text-align:center;"
25 width="10%">${_('Code')}</th>
26 <th class="celdaTituloTabla" style="text-align:center;"
27 width="30%">${_('ACCOUNT')}</th>
28 <th class="celdaTituloTabla" style="text-align:center;"
29 width="10%">${_('INIT. BAL.')}</th>
30 <th class="celdaTituloTabla" style="text-align:center;"
31 width="10%">${_('DEBIT')}</th>
32 <th class="celdaTituloTabla" style="text-align:center;"
33 width="10%">${_('CREDIT')}</th>
34 <th class="celdaTituloTabla" style="text-align:center;"
35 width="10%">${_('PERIOD')}</th>
36 <th class="celdaTituloTabla" style="text-align:center;"
37 width="10%">${_('YTD')}</th>
38 </tr>
39 %endfor
40</body>
41</html>
042
=== added file 'account_financial_report_ext/report/afr_report_webkit_journal_ledger.mako'
--- account_financial_report_ext/report/afr_report_webkit_journal_ledger.mako 1970-01-01 00:00:00 +0000
+++ account_financial_report_ext/report/afr_report_webkit_journal_ledger.mako 2013-10-12 02:09:45 +0000
@@ -0,0 +1,19 @@
1<!DOCTYPE html SYSTEM
2"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml">
4<head>
5<style type="text/css">
6 ${css}
7</style>
8</head>
9
10<body style="border:0; margin: 0;" onload="subst()" >
11
12
13 <h1><center>Journal Ledger</center></h1>
14 %for obj in objects:
15 <center>${obj.company_id.name}</center>
16 <center>${obj.get_parser_method('get_vat_by_country',data['form'])}</center>
17 %endfor
18</body>
19</html>
020
=== added file 'account_financial_report_ext/report/afr_report_webkit_qtr.mako'
--- account_financial_report_ext/report/afr_report_webkit_qtr.mako 1970-01-01 00:00:00 +0000
+++ account_financial_report_ext/report/afr_report_webkit_qtr.mako 2013-10-12 02:09:45 +0000
@@ -0,0 +1,19 @@
1<!DOCTYPE html SYSTEM
2"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml">
4<head>
5<style type="text/css">
6 ${css}
7</style>
8</head>
9
10<body style="border:0; margin: 0;" onload="subst()" >
11
12
13 <h1><center>4 QTR | YTD</center></h1>
14 %for obj in objects:
15 <center>${obj.company_id.name}</center>
16 <center>${obj.get_parser_method('get_vat_by_country',data['form'])}</center>
17 %endfor
18</body>
19</html>
020
=== added file 'account_financial_report_ext/report/report_afr.xml'
--- account_financial_report_ext/report/report_afr.xml 1970-01-01 00:00:00 +0000
+++ account_financial_report_ext/report/report_afr.xml 2013-10-12 02:09:45 +0000
@@ -0,0 +1,148 @@
1<?xml version="1.0"?>
2<openerp>
3 <data>
4 <report
5 auto = "True"
6 id="afr_report_col5"
7 model="wizard.report"
8 name="afr_report_col5"
9 file="account_financial_report_ext/report/afr_report_webkit_cols5.mako"
10 string="Print AFR"
11 report_type="webkit"
12 multi="True"
13 menu="False"/>
14
15 <record id="property_afr_report_webkit1" model="ir.property">
16 <field name="name">webkit_header</field>
17 <field name="fields_id" ref="report_webkit.field_ir_act_report_xml_webkit_header"/>
18 <field eval="'ir.header_webkit,'+str(ref('account_financial_report_ext.ir_header_webkit_afrreport_five_colums'))" model="ir.header_webkit" name="value"/>
19 <field eval="'ir.actions.report.xml,'+str(ref('account_financial_report_ext.afr_report_col5'))" model="ir.actions.report.xml" name="res_id"/>
20 </record>
21
22
23 <report
24 auto = "True"
25 id="afr_report_col1"
26 model="wizard.report"
27 name="afr_report_col1"
28 file="account_financial_report_ext/report/afr_report_webkit_cols1.mako"
29 string="Print AFR"
30 report_type="webkit"
31 multi="True"
32 menu="False"/>
33
34 <record id="property_afr_report_webkit2" model="ir.property">
35 <field name="name">webkit_header</field>
36 <field name="fields_id" ref="report_webkit.field_ir_act_report_xml_webkit_header"/>
37 <field eval="'ir.header_webkit,'+str(ref('account_financial_report_ext.ir_header_webkit_afrreport_one_colums'))" model="ir.header_webkit" name="value"/>
38 <field eval="'ir.actions.report.xml,'+str(ref('account_financial_report_ext.afr_report_col1'))" model="ir.actions.report.xml" name="res_id"/>
39 </record>
40
41 <report
42 auto = "True"
43 id="afr_report_col2"
44 model="wizard.report"
45 name="afr_report_col2"
46 file="account_financial_report_ext/report/afr_report_webkit_cols2.mako"
47 string="Print AFR"
48 report_type="webkit"
49 multi="True"
50 menu="False"/>
51
52 <record id="property_afr_report_webkit3" model="ir.property">
53 <field name="name">webkit_header</field>
54 <field name="fields_id" ref="report_webkit.field_ir_act_report_xml_webkit_header"/>
55 <field eval="'ir.header_webkit,'+str(ref('account_financial_report_ext.ir_header_webkit_afrreport_two_colums'))" model="ir.header_webkit" name="value"/>
56 <field eval="'ir.actions.report.xml,'+str(ref('account_financial_report_ext.afr_report_col2'))" model="ir.actions.report.xml" name="res_id"/>
57 </record>
58
59 <report
60 auto = "True"
61 id="afr_report_col4"
62 model="wizard.report"
63 name="afr_report_col4"
64 file="account_financial_report_ext/report/afr_report_webkit_cols4.mako"
65 string="Print AFR"
66 report_type="webkit"
67 multi="True"
68 menu="False"/>
69
70 <record id="property_afr_report_webkit4" model="ir.property">
71 <field name="name">webkit_header</field>
72 <field name="fields_id" ref="report_webkit.field_ir_act_report_xml_webkit_header"/>
73 <field eval="'ir.header_webkit,'+str(ref('account_financial_report_ext.ir_header_webkit_afrreport_four_colums'))" model="ir.header_webkit" name="value"/>
74 <field eval="'ir.actions.report.xml,'+str(ref('account_financial_report_ext.afr_report_col4'))" model="ir.actions.report.xml" name="res_id"/>
75 </record>
76
77
78 <report
79 auto = "True"
80 id="afr_report_journal_ledger"
81 model="wizard.report"
82 name="afr_report_journal_ledger"
83 file="account_financial_report_ext/report/afr_report_webkit_journal_ledger.mako"
84 string="Print AFR"
85 report_type="webkit"
86 multi="True"
87 menu="False"/>
88
89 <record id="property_afr_report_webkit6" model="ir.property">
90 <field name="name">webkit_header</field>
91 <field name="fields_id" ref="report_webkit.field_ir_act_report_xml_webkit_header"/>
92 <field eval="'ir.header_webkit,'+str(ref('account_financial_report_ext.ir_header_webkit_afrreport_journal_ledger'))" model="ir.header_webkit" name="value"/>
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"/>
94 </record>
95
96 <report
97 auto = "True"
98 id="afr_report_qtr"
99 model="wizard.report"
100 name="afr_report_qtr"
101 file="account_financial_report_ext/report/afr_report_webkit_qtr.mako"
102 string="Print AFR"
103 report_type="webkit"
104 multi="True"
105 menu="False"/>
106
107 <record id="property_afr_report_webkit7" model="ir.property">
108 <field name="name">webkit_header</field>
109 <field name="fields_id" ref="report_webkit.field_ir_act_report_xml_webkit_header"/>
110 <field eval="'ir.header_webkit,'+str(ref('account_financial_report_ext.ir_header_webkit_afrreport_qtr'))" model="ir.header_webkit" name="value"/>
111 <field eval="'ir.actions.report.xml,'+str(ref('account_financial_report_ext.afr_report_qtr'))" model="ir.actions.report.xml" name="res_id"/>
112 </record>
113 <report
114 auto = "True"
115 id="afr_report_col13"
116 model="wizard.report"
117 name="afr_report_col13"
118 file="account_financial_report_ext/report/afr_report_webkit_cols13.mako"
119 string="Print AFR"
120 report_type="webkit"
121 multi="True"
122 menu="False"/>
123
124 <record id="property_afr_report_webkit8" model="ir.property">
125 <field name="name">webkit_header</field>
126 <field name="fields_id" ref="report_webkit.field_ir_act_report_xml_webkit_header"/>
127 <field eval="'ir.header_webkit,'+str(ref('account_financial_report_ext.ir_header_webkit_afrreport_col13'))" model="ir.header_webkit" name="value"/>
128 <field eval="'ir.actions.report.xml,'+str(ref('account_financial_report_ext.afr_report_col13'))" model="ir.actions.report.xml" name="res_id"/>
129 </record>
130 <report
131 auto = "True"
132 id="afr_report_analytic_ledger"
133 model="wizard.report"
134 name="afr_report_analytic_ledger"
135 file="account_financial_report_ext/report/afr_report_webkit_analytic_ledger.mako"
136 string="Print AFR"
137 report_type="webkit"
138 multi="True"
139 menu="False"/>
140
141 <record id="property_afr_report_webkit9" model="ir.property">
142 <field name="name">webkit_header</field>
143 <field name="fields_id" ref="report_webkit.field_ir_act_report_xml_webkit_header"/>
144 <field eval="'ir.header_webkit,'+str(ref('account_financial_report_ext.ir_header_webkit_afrreport_analytic_ledger'))" model="ir.header_webkit" name="value"/>
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"/>
146 </record>
147 </data>
148</openerp>
0149
=== added directory 'account_financial_report_ext/security'
=== added directory 'account_financial_report_ext/static'
=== added directory 'account_financial_report_ext/static/description'
=== added file 'account_financial_report_ext/static/description/index.html'
=== added directory 'account_financial_report_ext/static/src'
=== added directory 'account_financial_report_ext/static/src/css'
=== added directory 'account_financial_report_ext/static/src/img'
=== added directory 'account_financial_report_ext/static/src/js'
=== added directory 'account_financial_report_ext/static/src/xml'
=== added directory 'account_financial_report_ext/test'
=== added directory 'account_financial_report_ext/view'
=== added directory 'account_financial_report_ext/wizard'
=== added file 'account_financial_report_ext/wizard/__init__.py'
--- account_financial_report_ext/wizard/__init__.py 1970-01-01 00:00:00 +0000
+++ account_financial_report_ext/wizard/__init__.py 2013-10-12 02:09:45 +0000
@@ -0,0 +1,26 @@
1#!/usr/bin/python
2# -*- encoding: utf-8 -*-
3###############################################################################
4# Module Writen to OpenERP, Open Source Management Solution
5# Copyright (C) OpenERP Venezuela (<http://www.vauxoo.com>).
6# All Rights Reserved
7############# Credits #########################################################
8# Coded by: Yanina Aular <yani@vauxoo.com>
9# Planified by: Humberto Arocha <hbto@vauxoo.com>
10# Audited by: Humberto Arocha <hbto@vauxoo.com>
11###############################################################################
12# This program is free software: you can redistribute it and/or modify
13# it under the terms of the GNU Affero General Public License as published
14# by the Free Software Foundation, either version 3 of the License, or
15# (at your option) any later version.
16#
17# This program is distributed in the hope that it will be useful,
18# but WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20# GNU Affero General Public License for more details.
21#
22# You should have received a copy of the GNU Affero General Public License
23# along with this program. If not, see <http://www.gnu.org/licenses/>.
24###############################################################################
25
26import afr_report_wizard
027
=== added file 'account_financial_report_ext/wizard/afr_report_wizard.py'
--- account_financial_report_ext/wizard/afr_report_wizard.py 1970-01-01 00:00:00 +0000
+++ account_financial_report_ext/wizard/afr_report_wizard.py 2013-10-12 02:09:45 +0000
@@ -0,0 +1,89 @@
1#!/usr/bin/python
2# -*- encoding: utf-8 -*-
3###############################################################################
4# Module Writen to OpenERP, Open Source Management Solution
5# Copyright (C) OpenERP Venezuela (<http://www.vauxoo.com>).
6# All Rights Reserved
7############# Credits #########################################################
8# Coded by: Yanina Aular <yani@vauxoo.com>
9# Planified by: Humberto Arocha <hbto@vauxoo.com>
10# Audited by: Humberto Arocha <hbto@vauxoo.com>
11###############################################################################
12# This program is free software: you can redistribute it and/or modify
13# it under the terms of the GNU Affero General Public License as published
14# by the Free Software Foundation, either version 3 of the License, or
15# (at your option) any later version.
16#
17# This program is distributed in the hope that it will be useful,
18# but WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20# GNU Affero General Public License for more details.
21#
22# You should have received a copy of the GNU Affero General Public License
23# along with this program. If not, see <http://www.gnu.org/licenses/>.
24###############################################################################
25
26
27
28from osv import osv, fields
29import pooler
30import time
31from tools.translate import _
32from account_financial_report.report import parser as Parser
33
34
35class wizard_report(osv.osv_memory):
36 _inherit = "wizard.report"
37
38 def get_parser_method(self, cr, uid, ids, method=None, args=None, param=None, context=None):
39 if context is None:
40 context = {}
41
42 acc_bal_obj = Parser.account_balance(cr, uid, ids ,context=context)
43 res = []
44
45 if method:
46 if method in ("get_company_accounts", "_get_analytic_ledger", "_get_journal_ledger",
47 "lines"):
48 res = getattr(acc_bal_obj, method)(args, param)
49 else:
50 res = getattr(acc_bal_obj, method)(args)
51
52 return res
53
54 def print_report(self, cr, uid, ids, data, context=None):
55 if context is None:
56 context = {}
57
58 res = super(wizard_report, self).print_report(cr, uid, ids, data=data, context=context)
59
60 res.get('datas')['ids'] = ids
61
62 if( res.get('report_name') == 'afr.1cols'):
63 res['report_name'] = 'afr_report_col1'
64
65 if( res.get('report_name') == 'afr.2cols'):
66 res['report_name'] = 'afr_report_col2'
67
68 if( res.get('report_name') == 'afr.4cols'):
69 res['report_name'] = 'afr_report_col4'
70
71 if( res.get('report_name') == 'afr.5cols'):
72 res['report_name'] = 'afr_report_col5'
73
74 if( res.get('report_name') == 'afr.journal.ledger'):
75 res['report_name'] = 'afr_report_journal_ledger'
76
77 if( res.get('report_name') == 'afr.analytic.ledger'):
78 res['report_name'] = 'afr_report_analytic_ledger'
79
80 if( res.get('report_name') == 'afr.qtrcols'):
81 res['report_name'] = 'afr_report_qtr'
82
83 if( res.get('report_name') == 'afr.13cols'):
84 res['report_name'] = 'afr_report_col13'
85
86 return res
87
88
89
090
=== added directory 'account_financial_report_ext/workflow'

Subscribers

People subscribed via source and target branches

to status/vote changes: