Merge lp:~vauxoo/addons-vauxoo/7.0_addons-vauxoo_afr_webkit_dev_jorge into lp:addons-vauxoo/7.0

Status: Merged
Merged at revision: 906
Proposed branch: lp:~vauxoo/addons-vauxoo/7.0_addons-vauxoo_afr_webkit_dev_jorge
Merge into: lp:addons-vauxoo/7.0
Diff against target: 2935 lines (+2819/-0)
19 files modified
account_financial_report_webkit/__init__.py (+26/-0)
account_financial_report_webkit/__openerp__.py (+55/-0)
account_financial_report_webkit/data/html_css_afr.xml (+1372/-0)
account_financial_report_webkit/i18n/es.po (+57/-0)
account_financial_report_webkit/i18n/es_MX.po (+57/-0)
account_financial_report_webkit/model/__init__.py (+25/-0)
account_financial_report_webkit/report/__init__.py (+25/-0)
account_financial_report_webkit/report/afr_report_webkit_analytic_ledger.mako (+103/-0)
account_financial_report_webkit/report/afr_report_webkit_cols1.mako (+71/-0)
account_financial_report_webkit/report/afr_report_webkit_cols13.mako (+102/-0)
account_financial_report_webkit/report/afr_report_webkit_cols2.mako (+80/-0)
account_financial_report_webkit/report/afr_report_webkit_cols4.mako (+86/-0)
account_financial_report_webkit/report/afr_report_webkit_cols5.mako (+76/-0)
account_financial_report_webkit/report/afr_report_webkit_journal_ledger.mako (+127/-0)
account_financial_report_webkit/report/afr_report_webkit_qtr.mako (+82/-0)
account_financial_report_webkit/report/report_afr.xml (+316/-0)
account_financial_report_webkit/view/account_financial_report_view.xml (+15/-0)
account_financial_report_webkit/wizard/__init__.py (+26/-0)
account_financial_report_webkit/wizard/afr_report_wizard.py (+118/-0)
To merge this branch: bzr merge lp:~vauxoo/addons-vauxoo/7.0_addons-vauxoo_afr_webkit_dev_jorge
Reviewer Review Type Date Requested Status
hbto [Vauxoo] http://www.vauxoo.com Approve
Nhomar - Vauxoo Pending
Moisés López - http://www.vauxoo.com Pending
Jorge Angel Naranjo Rogel - http://www.vauxoo.com Pending
Review via email: mp+193095@code.launchpad.net

Description of the change

Se agregan los reportes de account financial report webkit.

To post a comment you must log in.
Revision history for this message
hbto [Vauxoo] http://www.vauxoo.com (humbertoarocha) wrote :

APROBADO

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added directory 'account_financial_report_webkit'
2=== added file 'account_financial_report_webkit/__init__.py'
3--- account_financial_report_webkit/__init__.py 1970-01-01 00:00:00 +0000
4+++ account_financial_report_webkit/__init__.py 2013-10-29 16:39:33 +0000
5@@ -0,0 +1,26 @@
6+#!/usr/bin/python
7+# -*- encoding: utf-8 -*-
8+###############################################################################
9+# Module Writen to OpenERP, Open Source Management Solution
10+# Copyright (C) OpenERP Venezuela (<http://www.vauxoo.com>).
11+# All Rights Reserved
12+############# Credits #########################################################
13+# Coded by: Yanina Aular <yani@vauxoo.com>
14+# Planified by: Humberto Arocha <hbto@vauxoo.com>
15+# Audited by: Humberto Arocha <hbto@vauxoo.com>
16+###############################################################################
17+# This program is free software: you can redistribute it and/or modify
18+# it under the terms of the GNU Affero General Public License as published
19+# by the Free Software Foundation, either version 3 of the License, or
20+# (at your option) any later version.
21+#
22+# This program is distributed in the hope that it will be useful,
23+# but WITHOUT ANY WARRANTY; without even the implied warranty of
24+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25+# GNU Affero General Public License for more details.
26+#
27+# You should have received a copy of the GNU Affero General Public License
28+# along with this program. If not, see <http://www.gnu.org/licenses/>.
29+###############################################################################
30+import model
31+import wizard
32
33=== added file 'account_financial_report_webkit/__openerp__.py'
34--- account_financial_report_webkit/__openerp__.py 1970-01-01 00:00:00 +0000
35+++ account_financial_report_webkit/__openerp__.py 2013-10-29 16:39:33 +0000
36@@ -0,0 +1,55 @@
37+#!/usr/bin/python
38+# -*- encoding: utf-8 -*-
39+###############################################################################
40+# Module Writen to OpenERP, Open Source Management Solution
41+# Copyright (C) OpenERP Venezuela (<http://www.vauxoo.com>).
42+# All Rights Reserved
43+############# Credits #########################################################
44+# Coded by: Yanina Aular <yani@vauxoo.com>
45+# Planified by: Humberto Arocha <hbto@vauxoo.com>
46+# Audited by: Humberto Arocha <hbto@vauxoo.com>
47+###############################################################################
48+# This program is free software: you can redistribute it and/or modify
49+# it under the terms of the GNU Affero General Public License as published
50+# by the Free Software Foundation, either version 3 of the License, or
51+# (at your option) any later version.
52+#
53+# This program is distributed in the hope that it will be useful,
54+# but WITHOUT ANY WARRANTY; without even the implied warranty of
55+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
56+# GNU Affero General Public License for more details.
57+#
58+# You should have received a copy of the GNU Affero General Public License
59+# along with this program. If not, see <http://www.gnu.org/licenses/>.
60+###############################################################################
61+
62+{
63+ 'name': 'Account Financial Report Webkit',
64+ 'version': '1.0',
65+ 'author': 'Vauxoo',
66+ 'website': 'http://www.vauxoo.com/',
67+ 'category': 'Accounting',
68+ 'description': '''
69+Account Financial Report Webkit
70+===================================
71+
72+Account Financial Report Reports on Webkit
73+
74+Main Features
75+=============
76+
77+account_financial_report module reports are now printed using webkit.
78+
79+
80+''',
81+ 'depends': ['base', 'mail', 'account_accountant', 'account_financial_report', 'report_webkit'],
82+ 'data': [
83+ 'data/html_css_afr.xml',
84+ 'report/report_afr.xml',
85+ 'view/account_financial_report_view.xml'
86+ ],
87+ 'demo': [],
88+ 'test': [],
89+ 'active': False,
90+ 'installable': True,
91+}
92
93=== added directory 'account_financial_report_webkit/data'
94=== added file 'account_financial_report_webkit/data/html_css_afr.xml'
95--- account_financial_report_webkit/data/html_css_afr.xml 1970-01-01 00:00:00 +0000
96+++ account_financial_report_webkit/data/html_css_afr.xml 2013-10-29 16:39:33 +0000
97@@ -0,0 +1,1372 @@
98+<?xml version="1.0" ?>
99+<openerp>
100+ <data noupdate="0">
101+ <record id="ir_header_webkit_afrreport_analytic_ledger" model="ir.header_webkit">
102+ <field name="name">Reports AFR WebKit</field>
103+ <field name="footer_html">
104+<![CDATA[<html>
105+ <head>
106+ <meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
107+ <script>
108+ function subst() {
109+ var vars={};
110+ var x=document.location.search.substring(1).split('&');
111+ for(var i in x) {var z=x[i].split('=',2);vars[z[0]] = unescape(z[1]);}
112+ var x=['frompage','topage','page','webpage','section','subsection','subsubsection'];
113+ for(var i in x) {
114+ var y = document.getElementsByClassName(x[i]);
115+ for(var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
116+ }
117+ }
118+ </script>
119+ </head>
120+ <body style="border:0; margin: 0;" onload="subst()">
121+ <table style="border-top: 1px solid black; width: 100%">
122+ <tr>
123+ <td style="float:right;text-align:left;font-size:10;" width="30%">
124+ <script type="text/javascript">
125+ var date = new Date();
126+ var d = date.getDate();
127+ var day = (d < 10) ? '0' + d : d;
128+ var m = date.getMonth() + 1;
129+ var month = (m < 10) ? '0' + m : m;
130+ var yy = date.getYear();
131+ var year = (yy < 1000) ? yy + 1900 : yy;
132+ var h = date.getHours();
133+ var hours = (h < 10) ? '0' + h : h;
134+ var mm = date.getMinutes();
135+ var minutes = (mm < 10) ? '0' + mm : mm;
136+ document.write("Printing Date: "+day + "/" + month + "/" + year +
137+ "\t\t" + hours+":" + minutes );
138+ </script>
139+ </td>
140+ <td style="text-align:right;font-size:10;" width="65%">Page <span class="page"/></td><td style="text-align:left;font-size:10;"> of <span class="topage"/></td>
141+ </tr>
142+ </table>
143+ </body>
144+</html>]]></field>
145+ <field name="orientation">Landscape</field>
146+ <field name="format">Letter</field>
147+ <field name="html">
148+<![CDATA[<html>
149+ <head>
150+ <meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
151+ <script>
152+ function subst() {
153+ var vars={};
154+ var x=document.location.search.substring(1).split('&');
155+ for(var i in x) {var z=x[i].split('=',2);vars[z[0]] = unescape(z[1]);}
156+ var x=['frompage','topage','page','webpage','section','subsection','subsubsection'];
157+ for(var i in x) {
158+ var y = document.getElementsByClassName(x[i]);
159+ for(var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
160+ }
161+ }
162+ </script>
163+ <style type="text/css">
164+ ${css}
165+ </style>
166+ </head>
167+ <body style="border:0; margin: 0;" onload="subst()">
168+ ${_debug or ''|n}
169+ </body>
170+</html>]]>
171+</field>
172+ <field eval="0.0" name="margin_top"/>
173+ <field name="css" >
174+ <![CDATA[
175+table.basic_table{
176+text-align:left;
177+border:1px solid lightGrey;
178+border-collapse: collapse;
179+}
180+
181+.dest_address { font-size:12pt;
182+margin-left:0;
183+text-align:left; l
184+ine-height:80%;
185+padding-top:0px
186+}
187+
188+.celdaLineData{
189+font-size:7pt;
190+font-family: monospace;
191+text-align:right;
192+background-color:#F5F5F5;
193+}
194+
195+.celdaLineDataName{
196+font-size:7pt;
197+font-family: monospace;
198+text-align:left;
199+background-color:#F5F5F5;
200+}
201+
202+.celdaLineDataTotal{
203+font-size:7pt;
204+font-family:Arial,Helvetica,sans-serif;
205+text-align:right;
206+font-weight:bold;
207+background-color:#dcdcdc;
208+}
209+
210+.celdaLineDataNameTotal{
211+font-size:7pt;
212+font-family:Arial,Helvetica,sans-serif;
213+text-align:left;
214+font-weight:bold;
215+background-color:#dcdcdc;
216+}
217+
218+.celdaLineDataNameJournal{
219+font-size:7pt;
220+font-family:Arial,Helvetica,sans-serif;
221+text-align:left;
222+font-weight:bold;
223+background-color:#F5F5F5;
224+}
225+
226+.celdaLineDataNamePartner{
227+font-size:7pt;
228+font-family: monospace;
229+text-align:left;
230+background-color:#F5F5F5;
231+}
232+
233+.celdaTituloTabla{
234+font-size:8pt;
235+text-align:left;
236+font-family:Arial,Helvetica,sans-serif;
237+background-color:#620400;
238+font-weight:bold;
239+color:#FFFFFF;
240+}
241+
242+div.td_company
243+{
244+font-size:11pt;
245+margin-left:0;
246+font-weight:bold;
247+font-family:Arial,Helvetica,sans-serif;
248+}
249+
250+div.td_company_date
251+{
252+font-size:9pt;
253+margin-left:0;
254+font-weight:bold;
255+font-family:Arial,Helvetica,sans-serif;
256+}
257+
258+div.td_company_title
259+{
260+font-size:15pt;
261+margin-left:0;
262+font-weight:bold;
263+font-family:Arial,Helvetica,sans-serif;
264+}
265+]]>
266+ </field>
267+ </record>
268+
269+ <record id="ir_header_webkit_afrreport_col13" model="ir.header_webkit">
270+ <field name="name">Reports AFR WebKit</field>
271+ <field name="footer_html">
272+<![CDATA[<html>
273+ <head>
274+ <meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
275+ <script>
276+ function subst() {
277+ var vars={};
278+ var x=document.location.search.substring(1).split('&');
279+ for(var i in x) {var z=x[i].split('=',2);vars[z[0]] = unescape(z[1]);}
280+ var x=['frompage','topage','page','webpage','section','subsection','subsubsection'];
281+ for(var i in x) {
282+ var y = document.getElementsByClassName(x[i]);
283+ for(var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
284+ }
285+ }
286+ </script>
287+ </head>
288+ <body style="border:0; margin: 0;" onload="subst()">
289+ <table style="border-top: 1px solid black; width: 100%">
290+ <tr>
291+ <td style="float:right;text-align:left;font-size:10;" width="30%">
292+ <script type="text/javascript">
293+ var date = new Date();
294+ var d = date.getDate();
295+ var day = (d < 10) ? '0' + d : d;
296+ var m = date.getMonth() + 1;
297+ var month = (m < 10) ? '0' + m : m;
298+ var yy = date.getYear();
299+ var year = (yy < 1000) ? yy + 1900 : yy;
300+ var h = date.getHours();
301+ var hours = (h < 10) ? '0' + h : h;
302+ var mm = date.getMinutes();
303+ var minutes = (mm < 10) ? '0' + mm : mm;
304+ document.write("Printing Date: "+day + "/" + month + "/" + year +
305+ "\t\t" + hours+":" + minutes );
306+ </script>
307+ </td>
308+ <td style="text-align:right;font-size:10;" width="65%">Page <span class="page"/></td><td style="text-align:left;font-size:10;"> of <span class="topage"/></td>
309+ </tr>
310+ </table>
311+ </body>
312+</html>]]></field>
313+ <field name="orientation">Landscape</field>
314+ <field name="format">Letter</field>
315+ <field name="html">
316+<![CDATA[<html>
317+ <head>
318+ <meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
319+ <script>
320+ function subst() {
321+ var vars={};
322+ var x=document.location.search.substring(1).split('&');
323+ for(var i in x) {var z=x[i].split('=',2);vars[z[0]] = unescape(z[1]);}
324+ var x=['frompage','topage','page','webpage','section','subsection','subsubsection'];
325+ for(var i in x) {
326+ var y = document.getElementsByClassName(x[i]);
327+ for(var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
328+ }
329+ }
330+ </script>
331+ <style type="text/css">
332+ ${css}
333+ </style>
334+ </head>
335+ <body style="border:0; margin: 0;" onload="subst()">
336+ ${_debug or ''|n}
337+ </body>
338+</html>]]>
339+</field>
340+ <field eval="0.0" name="margin_top"/>
341+ <field name="css" >
342+ <![CDATA[
343+table.basic_table{
344+text-align:left;
345+border:1px solid lightGrey;
346+border-collapse: collapse;
347+}
348+
349+.dest_address { font-size:12pt;
350+margin-left:0;
351+text-align:left; l
352+ine-height:80%;
353+padding-top:0px
354+}
355+
356+.celdaLineData{
357+font-size:4pt;
358+font-family: monospace;
359+text-align:right;
360+background-color:#F5F5F5;
361+}
362+
363+.celdaLineDataName{
364+font-size:4pt;
365+font-family: monospace;
366+text-align:left;
367+background-color:#F5F5F5;
368+}
369+
370+.celdaLineDataView{
371+font-size:4pt;
372+font-family:Arial,Helvetica,sans-serif;
373+text-align:right;
374+font-weight:bold;
375+background-color:#dcdcdc;
376+}
377+
378+.celdaLineDataNameView{
379+font-size:4pt;
380+font-family:Arial,Helvetica,sans-serif;
381+text-align:left;
382+font-weight:bold;
383+background-color:#dcdcdc;
384+}
385+
386+.celdaLineDataTotal{
387+font-size:4pt;
388+font-family:Arial,Helvetica,sans-serif;
389+text-align:right;
390+font-weight:bold;
391+background-color:#eaeaea;
392+}
393+
394+.celdaLineDataNameTotal{
395+font-size:4pt;
396+font-family:Arial,Helvetica,sans-serif;
397+text-align:left;
398+font-weight:bold;
399+background-color:#eaeaea;
400+}
401+
402+.celdaTituloTabla{
403+font-size:7pt;
404+text-align:left;
405+font-family:Arial,Helvetica,sans-serif;
406+background-color:#620400;
407+font-weight:bold;
408+color:#FFFFFF;
409+}
410+
411+
412+div.td_company
413+{
414+font-size:11pt;
415+margin-left:0;
416+font-weight:bold;
417+font-family:Arial,Helvetica,sans-serif;
418+}
419+
420+div.td_company_date
421+{
422+font-size:9pt;
423+margin-left:0;
424+font-weight:bold;
425+font-family:Arial,Helvetica,sans-serif;
426+}
427+
428+div.td_company_title
429+{
430+font-size:15pt;
431+margin-left:0;
432+font-weight:bold;
433+font-family:Arial,Helvetica,sans-serif;
434+}
435+]]>
436+ </field>
437+ </record>
438+
439+ <record id="ir_header_webkit_afrreport_qtr" model="ir.header_webkit">
440+ <field name="name">Reports AFR WebKit</field>
441+ <field name="footer_html">
442+<![CDATA[<html>
443+ <head>
444+ <meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
445+ <script>
446+ function subst() {
447+ var vars={};
448+ var x=document.location.search.substring(1).split('&');
449+ for(var i in x) {var z=x[i].split('=',2);vars[z[0]] = unescape(z[1]);}
450+ var x=['frompage','topage','page','webpage','section','subsection','subsubsection'];
451+ for(var i in x) {
452+ var y = document.getElementsByClassName(x[i]);
453+ for(var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
454+ }
455+ }
456+ </script>
457+ </head>
458+ <body style="border:0; margin: 0;" onload="subst()">
459+ <table style="border-top: 1px solid black; width: 100%">
460+ <tr>
461+ <td style="float:right;text-align:left;font-size:10;" width="30%">
462+ <script type="text/javascript">
463+ var date = new Date();
464+ var d = date.getDate();
465+ var day = (d < 10) ? '0' + d : d;
466+ var m = date.getMonth() + 1;
467+ var month = (m < 10) ? '0' + m : m;
468+ var yy = date.getYear();
469+ var year = (yy < 1000) ? yy + 1900 : yy;
470+ var h = date.getHours();
471+ var hours = (h < 10) ? '0' + h : h;
472+ var mm = date.getMinutes();
473+ var minutes = (mm < 10) ? '0' + mm : mm;
474+ document.write("Printing Date: "+day + "/" + month + "/" + year +
475+ "\t\t" + hours+":" + minutes );
476+ </script>
477+ </td>
478+ <td style="text-align:right;font-size:10;" width="65%">Page <span class="page"/></td><td style="text-align:left;font-size:10;"> of <span class="topage"/></td>
479+ </tr>
480+ </table>
481+ </body>
482+</html>]]></field>
483+ <field name="orientation">Landscape</field>
484+ <field name="format">Letter</field>
485+ <field name="html">
486+<![CDATA[<html>
487+ <head>
488+ <meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
489+ <script>
490+ function subst() {
491+ var vars={};
492+ var x=document.location.search.substring(1).split('&');
493+ for(var i in x) {var z=x[i].split('=',2);vars[z[0]] = unescape(z[1]);}
494+ var x=['frompage','topage','page','webpage','section','subsection','subsubsection'];
495+ for(var i in x) {
496+ var y = document.getElementsByClassName(x[i]);
497+ for(var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
498+ }
499+ }
500+ </script>
501+ <style type="text/css">
502+ ${css}
503+ </style>
504+ </head>
505+ <body style="border:0; margin: 0;" onload="subst()">
506+ ${_debug or ''|n}
507+ </body>
508+</html>]]>
509+</field>
510+ <field eval="0.0" name="margin_top"/>
511+ <field name="css" >
512+ <![CDATA[
513+table.basic_table{
514+text-align:left;
515+border:1px solid lightGrey;
516+border-collapse: collapse;
517+}
518+
519+.dest_address { font-size:12pt;
520+margin-left:0;
521+text-align:left; l
522+ine-height:80%;
523+padding-top:0px
524+}
525+
526+.celdaLineData{
527+font-size:5pt;
528+font-family: monospace;
529+text-align:right;
530+background-color:#F5F5F5;
531+}
532+
533+.celdaLineDataName{
534+font-size:5pt;
535+font-family: monospace;
536+text-align:left;
537+background-color:#F5F5F5;
538+}
539+
540+.celdaLineDataView{
541+font-size:5pt;
542+font-family:Arial,Helvetica,sans-serif;
543+text-align:right;
544+font-weight:bold;
545+background-color:#dcdcdc;
546+}
547+
548+.celdaLineDataNameView{
549+font-size:5pt;
550+font-family:Arial,Helvetica,sans-serif;
551+text-align:left;
552+font-weight:bold;
553+background-color:#dcdcdc;
554+}
555+
556+.celdaLineDataTotal{
557+font-size:5pt;
558+font-family:Arial,Helvetica,sans-serif;
559+text-align:right;
560+font-weight:bold;
561+background-color:#eaeaea;
562+}
563+
564+.celdaLineDataNameTotal{
565+font-size:5pt;
566+font-family:Arial,Helvetica,sans-serif;
567+text-align:left;
568+font-weight:bold;
569+background-color:#eaeaea;
570+}
571+
572+.celdaTituloTabla{
573+font-size:7pt;
574+text-align:left;
575+font-family:Arial,Helvetica,sans-serif;
576+background-color:#620400;
577+font-weight:bold;
578+color:#FFFFFF;
579+}
580+
581+div.td_company
582+{
583+font-size:11pt;
584+margin-left:0;
585+font-weight:bold;
586+font-family:Arial,Helvetica,sans-serif;
587+}
588+
589+div.td_company_date
590+{
591+font-size:9pt;
592+margin-left:0;
593+font-weight:bold;
594+font-family:Arial,Helvetica,sans-serif;
595+}
596+
597+div.td_company_title
598+{
599+font-size:15pt;
600+margin-left:0;
601+font-weight:bold;
602+font-family:Arial,Helvetica,sans-serif;
603+}
604+]]>
605+ </field>
606+ </record>
607+
608+ <record id="ir_header_webkit_afrreport_journal_ledger" model="ir.header_webkit">
609+ <field name="name">Reports AFR WebKit</field>
610+ <field name="footer_html">
611+<![CDATA[<html>
612+ <head>
613+ <meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
614+ <script>
615+ function subst() {
616+ var vars={};
617+ var x=document.location.search.substring(1).split('&');
618+ for(var i in x) {var z=x[i].split('=',2);vars[z[0]] = unescape(z[1]);}
619+ var x=['frompage','topage','page','webpage','section','subsection','subsubsection'];
620+ for(var i in x) {
621+ var y = document.getElementsByClassName(x[i]);
622+ for(var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
623+ }
624+ }
625+ </script>
626+ </head>
627+ <body style="border:0; margin: 0;" onload="subst()">
628+ <table style="border-top: 1px solid black; width: 100%">
629+ <tr>
630+ <td style="float:right;text-align:left;font-size:10;" width="30%">
631+ <script type="text/javascript">
632+ var date = new Date();
633+ var d = date.getDate();
634+ var day = (d < 10) ? '0' + d : d;
635+ var m = date.getMonth() + 1;
636+ var month = (m < 10) ? '0' + m : m;
637+ var yy = date.getYear();
638+ var year = (yy < 1000) ? yy + 1900 : yy;
639+ var h = date.getHours();
640+ var hours = (h < 10) ? '0' + h : h;
641+ var mm = date.getMinutes();
642+ var minutes = (mm < 10) ? '0' + mm : mm;
643+ document.write("Printing Date: "+day + "/" + month + "/" + year +
644+ "\t\t" + hours+":" + minutes );
645+ </script>
646+ </td>
647+ <td style="text-align:right;font-size:10;" width="65%">Page <span class="page"/></td><td style="text-align:left;font-size:10;"> of <span class="topage"/></td>
648+ </tr>
649+ </table>
650+ </body>
651+</html>]]></field>
652+ <field name="orientation">Landscape</field>
653+ <field name="format">Letter</field>
654+ <field name="html">
655+<![CDATA[<html>
656+ <head>
657+ <meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
658+ <script>
659+ function subst() {
660+ var vars={};
661+ var x=document.location.search.substring(1).split('&');
662+ for(var i in x) {var z=x[i].split('=',2);vars[z[0]] = unescape(z[1]);}
663+ var x=['frompage','topage','page','webpage','section','subsection','subsubsection'];
664+ for(var i in x) {
665+ var y = document.getElementsByClassName(x[i]);
666+ for(var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
667+ }
668+ }
669+ </script>
670+ <style type="text/css">
671+ ${css}
672+ </style>
673+ </head>
674+ <body style="border:0; margin: 0;" onload="subst()">
675+ ${_debug or ''|n}
676+ </body>
677+</html>]]>
678+</field>
679+ <field eval="0.0" name="margin_top"/>
680+ <field name="css" >
681+ <![CDATA[
682+table.basic_table{
683+text-align:left;
684+border:1px solid lightGrey;
685+border-collapse: collapse;
686+}
687+
688+.dest_address { font-size:12pt;
689+margin-left:0;
690+text-align:left; l
691+ine-height:80%;
692+padding-top:0px
693+}
694+
695+.celdaLineData{
696+font-size:7pt;
697+font-family: monospace;
698+text-align:right;
699+font-weight:bold;
700+background-color:#d1d1d1;
701+}
702+
703+.celdaLineDataName{
704+font-size:7pt;
705+font-family: monospace;
706+text-align:left;
707+font-weight:bold;
708+background-color:#d1d1d1;
709+}
710+
711+.celdaLineDataTotal{
712+font-size:7pt;
713+font-family:Arial,Helvetica,sans-serif;
714+text-align:right;
715+font-weight:bold;
716+background-color:#dcdcdc;
717+}
718+
719+.celdaLineDataNameTotal{
720+font-size:8pt;
721+font-family:Arial,Helvetica,sans-serif;
722+text-align:left;
723+font-weight:bold;
724+background-color:#dcdcdc;
725+}
726+
727+.celdaLineDataNamePartner{
728+font-size:7pt;
729+font-family: monospace;
730+text-align:left;
731+font-weight:bold;
732+background-color:#d1d1d1;
733+}
734+
735+.celdaLineDataAccountSimilar{
736+font-size:6pt;
737+font-family: monospace;
738+text-align:left;
739+background-color:#dcdcdc;
740+}
741+
742+.celdaLineDataAccount{
743+font-size:6pt;
744+font-family: monospace;
745+text-align:left;
746+background-color:#FFFFFF;
747+}
748+
749+.celdaTituloTabla{
750+font-size:8pt;
751+text-align:left;
752+font-family:Arial,Helvetica,sans-serif;
753+background-color:#620400;
754+font-weight:bold;
755+color:#FFFFFF;
756+}
757+
758+
759+div.td_company
760+{
761+font-size:11pt;
762+margin-left:0;
763+font-weight:bold;
764+font-family:Arial,Helvetica,sans-serif;
765+}
766+
767+div.td_company_date
768+{
769+font-size:9pt;
770+margin-left:0;
771+font-weight:bold;
772+font-family:Arial,Helvetica,sans-serif;
773+}
774+
775+div.td_company_title
776+{
777+font-size:15pt;
778+margin-left:0;
779+font-weight:bold;
780+font-family:Arial,Helvetica,sans-serif;
781+}
782+]]>
783+ </field>
784+ </record>
785+
786+
787+ <record id="ir_header_webkit_afrreport_four_colums" model="ir.header_webkit">
788+ <field name="name">Reports AFR WebKit</field>
789+ <field name="footer_html">
790+<![CDATA[<html>
791+ <head>
792+ <meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
793+ <script>
794+ function subst() {
795+ var vars={};
796+ var x=document.location.search.substring(1).split('&');
797+ for(var i in x) {var z=x[i].split('=',2);vars[z[0]] = unescape(z[1]);}
798+ var x=['frompage','topage','page','webpage','section','subsection','subsubsection'];
799+ for(var i in x) {
800+ var y = document.getElementsByClassName(x[i]);
801+ for(var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
802+ }
803+ }
804+ </script>
805+ </head>
806+ <body style="border:0; margin: 0;" onload="subst()">
807+ <table style="border-top: 1px solid black; width: 100%">
808+ <tr>
809+ <td style="float:right;text-align:left;font-size:10;" width="30%">
810+ <script type="text/javascript">
811+ var date = new Date();
812+ var d = date.getDate();
813+ var day = (d < 10) ? '0' + d : d;
814+ var m = date.getMonth() + 1;
815+ var month = (m < 10) ? '0' + m : m;
816+ var yy = date.getYear();
817+ var year = (yy < 1000) ? yy + 1900 : yy;
818+ var h = date.getHours();
819+ var hours = (h < 10) ? '0' + h : h;
820+ var mm = date.getMinutes();
821+ var minutes = (mm < 10) ? '0' + mm : mm;
822+ document.write("Printing Date: "+day + "/" + month + "/" + year +
823+ "\t\t" + hours+":" + minutes );
824+ </script>
825+ </td>
826+ <td style="text-align:right;font-size:10;" width="65%">Page <span class="page"/></td><td style="text-align:left;font-size:10;"> of <span class="topage"/></td>
827+ </tr>
828+ </table>
829+ </body>
830+</html>]]></field>
831+ <field name="orientation">Portrait</field>
832+ <field name="format">Letter</field>
833+ <field name="html">
834+<![CDATA[<html>
835+ <head>
836+ <meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
837+ <script>
838+ function subst() {
839+ var vars={};
840+ var x=document.location.search.substring(1).split('&');
841+ for(var i in x) {var z=x[i].split('=',2);vars[z[0]] = unescape(z[1]);}
842+ var x=['frompage','topage','page','webpage','section','subsection','subsubsection'];
843+ for(var i in x) {
844+ var y = document.getElementsByClassName(x[i]);
845+ for(var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
846+ }
847+ }
848+ </script>
849+ <style type="text/css">
850+ ${css}
851+ </style>
852+ </head>
853+ <body style="border:0; margin: 0;" onload="subst()">
854+ ${_debug or ''|n}
855+ </body>
856+</html>]]>
857+</field>
858+ <field eval="0.0" name="margin_top"/>
859+ <field name="css" >
860+ <![CDATA[
861+table.basic_table{
862+text-align:left;
863+border:1px solid lightGrey;
864+border-collapse: collapse;
865+}
866+
867+.dest_address { font-size:12pt;
868+margin-left:0;
869+text-align:left; l
870+ine-height:80%;
871+padding-top:0px
872+}
873+
874+.celdaLineData{
875+font-size:7pt;
876+font-family: monospace;
877+text-align:right;
878+background-color:#F5F5F5;
879+}
880+
881+.celdaLineDataName{
882+font-size:7pt;
883+font-family: monospace;
884+text-align:left;
885+background-color:#F5F5F5;
886+}
887+
888+.celdaLineDataView{
889+font-size:7pt;
890+font-family:Arial,Helvetica,sans-serif;
891+text-align:right;
892+font-weight:bold;
893+background-color:#dcdcdc;
894+}
895+
896+.celdaLineDataNameView{
897+font-size:7pt;
898+font-family:Arial,Helvetica,sans-serif;
899+text-align:left;
900+font-weight:bold;
901+background-color:#dcdcdc;
902+}
903+
904+.celdaLineDataTotal{
905+font-size:7pt;
906+font-family:Arial,Helvetica,sans-serif;
907+text-align:right;
908+font-weight:bold;
909+background-color:#eaeaea;
910+}
911+
912+.celdaLineDataNameTotal{
913+font-size:7pt;
914+font-family:Arial,Helvetica,sans-serif;
915+text-align:left;
916+font-weight:bold;
917+background-color:#eaeaea;
918+}
919+
920+.celdaTituloTabla{
921+font-size:9pt;
922+text-align:left;
923+font-family:Arial,Helvetica,sans-serif;
924+background-color:#620400;
925+font-weight:bold;
926+color:#FFFFFF;
927+}
928+
929+div.td_company
930+{
931+font-size:11pt;
932+margin-left:0;
933+font-weight:bold;
934+font-family:Arial,Helvetica,sans-serif;
935+}
936+
937+div.td_company_date
938+{
939+font-size:9pt;
940+margin-left:0;
941+font-weight:bold;
942+font-family:Arial,Helvetica,sans-serif;
943+}
944+
945+div.td_company_title
946+{
947+font-size:15pt;
948+margin-left:0;
949+font-weight:bold;
950+font-family:Arial,Helvetica,sans-serif;
951+}
952+]]>
953+ </field>
954+ </record>
955+
956+ <record id="ir_header_webkit_afrreport_two_colums" model="ir.header_webkit">
957+ <field name="name">Reports AFR WebKit</field>
958+ <field name="footer_html">
959+<![CDATA[<html>
960+ <head>
961+ <meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
962+ <script>
963+ function subst() {
964+ var vars={};
965+ var x=document.location.search.substring(1).split('&');
966+ for(var i in x) {var z=x[i].split('=',2);vars[z[0]] = unescape(z[1]);}
967+ var x=['frompage','topage','page','webpage','section','subsection','subsubsection'];
968+ for(var i in x) {
969+ var y = document.getElementsByClassName(x[i]);
970+ for(var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
971+ }
972+ }
973+ </script>
974+ </head>
975+ <body style="border:0; margin: 0;" onload="subst()">
976+ <table style="border-top: 1px solid black; width: 100%">
977+ <tr>
978+ <td style="float:right;text-align:left;font-size:10;" width="30%">
979+ <script type="text/javascript">
980+ var date = new Date();
981+ var d = date.getDate();
982+ var day = (d < 10) ? '0' + d : d;
983+ var m = date.getMonth() + 1;
984+ var month = (m < 10) ? '0' + m : m;
985+ var yy = date.getYear();
986+ var year = (yy < 1000) ? yy + 1900 : yy;
987+ var h = date.getHours();
988+ var hours = (h < 10) ? '0' + h : h;
989+ var mm = date.getMinutes();
990+ var minutes = (mm < 10) ? '0' + mm : mm;
991+ document.write("Printing Date: "+day + "/" + month + "/" + year +
992+ "\t\t" + hours+":" + minutes );
993+ </script>
994+ </td>
995+ <td style="text-align:right;font-size:10;" width="65%">Page <span class="page"/></td><td style="text-align:left;font-size:10;"> of <span class="topage"/></td>
996+ </tr>
997+ </table>
998+ </body>
999+</html>]]></field>
1000+ <field name="orientation">Portrait</field>
1001+ <field name="format">Letter</field>
1002+ <field name="html">
1003+<![CDATA[<html>
1004+ <head>
1005+ <meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
1006+ <script>
1007+ function subst() {
1008+ var vars={};
1009+ var x=document.location.search.substring(1).split('&');
1010+ for(var i in x) {var z=x[i].split('=',2);vars[z[0]] = unescape(z[1]);}
1011+ var x=['frompage','topage','page','webpage','section','subsection','subsubsection'];
1012+ for(var i in x) {
1013+ var y = document.getElementsByClassName(x[i]);
1014+ for(var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
1015+ }
1016+ }
1017+ </script>
1018+ <style type="text/css">
1019+ ${css}
1020+ </style>
1021+ </head>
1022+ <body style="border:0; margin: 0;" onload="subst()">
1023+ ${_debug or ''|n}
1024+ </body>
1025+</html>]]>
1026+</field>
1027+ <field eval="0.0" name="margin_top"/>
1028+ <field name="css" >
1029+ <![CDATA[
1030+table.basic_table{
1031+text-align:left;
1032+border:1px solid lightGrey;
1033+border-collapse: collapse;
1034+}
1035+
1036+.dest_address { font-size:12pt;
1037+margin-left:0;
1038+text-align:left; l
1039+ine-height:80%;
1040+padding-top:0px
1041+}
1042+
1043+.celdaLineData{
1044+font-size:9pt;
1045+font-family: monospace;
1046+text-align:right;
1047+background-color:#F5F5F5;
1048+}
1049+
1050+.celdaLineDataName{
1051+font-size:9pt;
1052+font-family: monospace;
1053+text-align:left;
1054+background-color:#F5F5F5;
1055+}
1056+
1057+.celdaLineDataView{
1058+font-size:9pt;
1059+font-family:Arial,Helvetica,sans-serif;
1060+text-align:right;
1061+font-weight:bold;
1062+background-color:#dcdcdc;
1063+}
1064+
1065+.celdaLineDataNameView{
1066+font-size:9pt;
1067+font-family:Arial,Helvetica,sans-serif;
1068+text-align:left;
1069+font-weight:bold;
1070+background-color:#dcdcdc;
1071+}
1072+
1073+.celdaLineDataTotal{
1074+font-size:9pt;
1075+font-family:Arial,Helvetica,sans-serif;
1076+text-align:right;
1077+font-weight:bold;
1078+background-color:#eaeaea;
1079+}
1080+
1081+.celdaLineDataNameTotal{
1082+font-size:9pt;
1083+font-family:Arial,Helvetica,sans-serif;
1084+text-align:left;
1085+font-weight:bold;
1086+background-color:#eaeaea;
1087+}
1088+
1089+.celdaTituloTabla{
1090+font-size:11pt;
1091+text-align:left;
1092+font-family:Arial,Helvetica,sans-serif;
1093+background-color:#620400;
1094+font-weight:bold;
1095+color:#FFFFFF;
1096+}
1097+
1098+div.td_company
1099+{
1100+font-size:11pt;
1101+margin-left:0;
1102+font-weight:bold;
1103+font-family:Arial,Helvetica,sans-serif;
1104+}
1105+
1106+div.td_company_date
1107+{
1108+font-size:9pt;
1109+margin-left:0;
1110+font-weight:bold;
1111+font-family:Arial,Helvetica,sans-serif;
1112+}
1113+
1114+div.td_company_title
1115+{
1116+font-size:15pt;
1117+margin-left:0;
1118+font-weight:bold;
1119+font-family:Arial,Helvetica,sans-serif;
1120+}
1121+]]>
1122+ </field>
1123+ </record>
1124+
1125+ <record id="ir_header_webkit_afrreport_one_colums" model="ir.header_webkit">
1126+ <field name="name">Reports AFR WebKit</field>
1127+ <field name="footer_html">
1128+<![CDATA[<html>
1129+ <head>
1130+ <meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
1131+ <script>
1132+ function subst() {
1133+ var vars={};
1134+ var x=document.location.search.substring(1).split('&');
1135+ for(var i in x) {var z=x[i].split('=',2);vars[z[0]] = unescape(z[1]);}
1136+ var x=['frompage','topage','page','webpage','section','subsection','subsubsection'];
1137+ for(var i in x) {
1138+ var y = document.getElementsByClassName(x[i]);
1139+ for(var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
1140+ }
1141+ }
1142+ </script>
1143+ </head>
1144+ <body style="border:0; margin: 0;" onload="subst()">
1145+ <table style="border-top: 1px solid black; width: 100%">
1146+ <tr>
1147+ <td style="float:right;text-align:left;font-size:10;" width="30%">
1148+ <script type="text/javascript">
1149+ var date = new Date();
1150+ var d = date.getDate();
1151+ var day = (d < 10) ? '0' + d : d;
1152+ var m = date.getMonth() + 1;
1153+ var month = (m < 10) ? '0' + m : m;
1154+ var yy = date.getYear();
1155+ var year = (yy < 1000) ? yy + 1900 : yy;
1156+ var h = date.getHours();
1157+ var hours = (h < 10) ? '0' + h : h;
1158+ var mm = date.getMinutes();
1159+ var minutes = (mm < 10) ? '0' + mm : mm;
1160+ document.write("Printing Date: "+day + "/" + month + "/" + year +
1161+ "\t\t" + hours+":" + minutes );
1162+ </script>
1163+ </td>
1164+ <td style="text-align:right;font-size:10;" width="65%">Page <span class="page"/></td><td style="text-align:left;font-size:10;"> of <span class="topage"/></td>
1165+ </tr>
1166+ </table>
1167+ </body>
1168+</html>]]></field>
1169+ <field name="orientation">Portrait</field>
1170+ <field name="format">Letter</field>
1171+ <field name="html">
1172+<![CDATA[<html>
1173+ <head>
1174+ <meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
1175+ <script>
1176+ function subst() {
1177+ var vars={};
1178+ var x=document.location.search.substring(1).split('&');
1179+ for(var i in x) {var z=x[i].split('=',2);vars[z[0]] = unescape(z[1]);}
1180+ var x=['frompage','topage','page','webpage','section','subsection','subsubsection'];
1181+ for(var i in x) {
1182+ var y = document.getElementsByClassName(x[i]);
1183+ for(var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
1184+ }
1185+ }
1186+ </script>
1187+ <style type="text/css">
1188+ ${css}
1189+ </style>
1190+ </head>
1191+ <body style="border:0; margin: 0;" onload="subst()">
1192+ ${_debug or ''|n}
1193+ </body>
1194+</html>]]>
1195+</field>
1196+ <field eval="0.0" name="margin_top"/>
1197+ <field name="css" >
1198+ <![CDATA[
1199+table.basic_table{
1200+text-align:left;
1201+border:1px solid lightGrey;
1202+border-collapse: collapse;
1203+}
1204+
1205+.dest_address { font-size:12pt;
1206+margin-left:0;
1207+text-align:left; l
1208+ine-height:80%;
1209+padding-top:0px
1210+}
1211+
1212+.celdaLineData{
1213+font-size:9pt;
1214+font-family: monospace;
1215+text-align:right;
1216+background-color:#F5F5F5;
1217+}
1218+
1219+.celdaLineDataName{
1220+font-size:9pt;
1221+font-family: monospace;
1222+text-align:left;
1223+background-color:#F5F5F5;
1224+}
1225+
1226+.celdaLineDataView{
1227+font-size:9pt;
1228+font-family:Arial,Helvetica,sans-serif;
1229+text-align:right;
1230+font-weight:bold;
1231+background-color:#dcdcdc;
1232+}
1233+
1234+.celdaLineDataNameView{
1235+font-size:9pt;
1236+font-family:Arial,Helvetica,sans-serif;
1237+text-align:left;
1238+font-weight:bold;
1239+background-color:#dcdcdc;
1240+}
1241+
1242+.celdaLineDataTotal{
1243+font-size:9pt;
1244+font-family:Arial,Helvetica,sans-serif;
1245+text-align:right;
1246+font-weight:bold;
1247+background-color:#eaeaea;
1248+}
1249+
1250+.celdaLineDataNameTotal{
1251+font-size:9pt;
1252+font-family:Arial,Helvetica,sans-serif;
1253+text-align:left;
1254+font-weight:bold;
1255+background-color:#eaeaea;
1256+}
1257+
1258+.celdaTituloTabla{
1259+font-size:11pt;
1260+text-align:left;
1261+font-family:Arial,Helvetica,sans-serif;
1262+background-color:#620400;
1263+font-weight:bold;
1264+color:#FFFFFF;
1265+}
1266+
1267+div.td_company
1268+{
1269+font-size:11pt;
1270+margin-left:0;
1271+font-weight:bold;
1272+font-family:Arial,Helvetica,sans-serif;
1273+}
1274+
1275+div.td_company_date
1276+{
1277+font-size:9pt;
1278+margin-left:0;
1279+font-weight:bold;
1280+font-family:Arial,Helvetica,sans-serif;
1281+}
1282+
1283+div.td_company_title
1284+{
1285+font-size:15pt;
1286+margin-left:0;
1287+font-weight:bold;
1288+font-family:Arial,Helvetica,sans-serif;
1289+}
1290+]]>
1291+ </field>
1292+ </record>
1293+
1294+ <record id="ir_header_webkit_afrreport_five_colums" model="ir.header_webkit">
1295+ <field name="name">Reports AFR WebKit Five Columns</field>
1296+ <field name="footer_html">
1297+<![CDATA[<html>
1298+ <head>
1299+ <meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
1300+ <script>
1301+ function subst() {
1302+ var vars={};
1303+ var x=document.location.search.substring(1).split('&');
1304+ for(var i in x) {var z=x[i].split('=',2);vars[z[0]] = unescape(z[1]);}
1305+ var x=['frompage','topage','page','webpage','section','subsection','subsubsection'];
1306+ for(var i in x) {
1307+ var y = document.getElementsByClassName(x[i]);
1308+ for(var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
1309+ }
1310+ }
1311+ </script>
1312+ </head>
1313+ <body style="border:0; margin: 0;" onload="subst()">
1314+ <table style="border-top: 1px solid black; width: 100%">
1315+ <tr>
1316+ <td style="float:right;text-align:left;font-size:10;" width="30%">
1317+ <script type="text/javascript">
1318+ var date = new Date();
1319+ var d = date.getDate();
1320+ var day = (d < 10) ? '0' + d : d;
1321+ var m = date.getMonth() + 1;
1322+ var month = (m < 10) ? '0' + m : m;
1323+ var yy = date.getYear();
1324+ var year = (yy < 1000) ? yy + 1900 : yy;
1325+ var h = date.getHours();
1326+ var hours = (h < 10) ? '0' + h : h;
1327+ var mm = date.getMinutes();
1328+ var minutes = (mm < 10) ? '0' + mm : mm;
1329+ document.write("Printing Date: "+day + "/" + month + "/" + year +
1330+ "\t\t" + hours+":" + minutes );
1331+ </script>
1332+ </td>
1333+ <td style="text-align:right;font-size:10;" width="65%">Page <span class="page"/></td><td style="text-align:left;font-size:10;"> of <span class="topage"/></td>
1334+ </tr>
1335+ </table>
1336+ </body>
1337+</html>]]></field>
1338+ <field name="orientation">Portrait</field>
1339+ <field name="format">Letter</field>
1340+ <field name="html">
1341+<![CDATA[<html>
1342+ <head>
1343+ <meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
1344+ <script>
1345+ function subst() {
1346+ var vars={};
1347+ var x=document.location.search.substring(1).split('&');
1348+ for(var i in x) {var z=x[i].split('=',2);vars[z[0]] = unescape(z[1]);}
1349+ var x=['frompage','topage','page','webpage','section','subsection','subsubsection'];
1350+ for(var i in x) {
1351+ var y = document.getElementsByClassName(x[i]);
1352+ for(var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
1353+ }
1354+ }
1355+ </script>
1356+ <style type="text/css">
1357+ ${css}
1358+ </style>
1359+ </head>
1360+ <body style="border:0; margin: 0;" onload="subst()">
1361+ ${_debug or ''|n}
1362+ </body>
1363+</html>]]>
1364+</field>
1365+ <field eval="0.0" name="margin_top"/>
1366+ <field name="css" >
1367+ <![CDATA[
1368+table.basic_table{
1369+text-align:left;
1370+border:1px solid lightGrey;
1371+border-collapse: collapse;
1372+}
1373+
1374+.dest_address { font-size:12pt;
1375+margin-left:0;
1376+text-align:left; l
1377+ine-height:80%;
1378+padding-top:0px
1379+}
1380+
1381+.celdaLineData{
1382+font-size:7pt;
1383+font-family: monospace;
1384+text-align:right;
1385+background-color:#F5F5F5;
1386+}
1387+
1388+.celdaLineDataName{
1389+font-size:7pt;
1390+font-family: monospace;
1391+text-align:left;
1392+background-color:#F5F5F5;
1393+}
1394+
1395+.celdaLineDataView{
1396+font-size:7pt;
1397+font-family:Arial,Helvetica,sans-serif;
1398+text-align:right;
1399+font-weight:bold;
1400+background-color:#dcdcdc;
1401+}
1402+
1403+.celdaLineDataNameView{
1404+font-size:7pt;
1405+font-family:Arial,Helvetica,sans-serif;
1406+text-align:left;
1407+font-weight:bold;
1408+background-color:#dcdcdc;
1409+}
1410+
1411+.celdaLineDataTotal{
1412+font-size:7pt;
1413+font-family:Arial,Helvetica,sans-serif;
1414+text-align:right;
1415+font-weight:bold;
1416+background-color:#eaeaea;
1417+}
1418+
1419+.celdaLineDataNameTotal{
1420+font-size:7pt;
1421+font-family:Arial,Helvetica,sans-serif;
1422+text-align:left;
1423+font-weight:bold;
1424+background-color:#eaeaea;
1425+}
1426+
1427+.celdaTituloTabla{
1428+font-size:9pt;
1429+text-align:left;
1430+font-family:Arial,Helvetica,sans-serif;
1431+background-color:#620400;
1432+font-weight:bold;
1433+color:#FFFFFF;
1434+}
1435+
1436+div.td_company
1437+{
1438+font-size:11pt;
1439+margin-left:0;
1440+font-weight:bold;
1441+font-family:Arial,Helvetica,sans-serif;
1442+}
1443+
1444+div.td_company_date
1445+{
1446+font-size:9pt;
1447+margin-left:0;
1448+font-weight:bold;
1449+font-family:Arial,Helvetica,sans-serif;
1450+}
1451+
1452+div.td_company_title
1453+{
1454+font-size:15pt;
1455+margin-left:0;
1456+font-weight:bold;
1457+font-family:Arial,Helvetica,sans-serif;
1458+}
1459+]]>
1460+ </field>
1461+ </record>
1462+
1463+ <record id="ir_header_img_companylogo0" model="ir.header_img">
1464+ <field eval="&quot;&quot;&quot;jpg&quot;&quot;&quot;" name="type"/>
1465+ <field eval="&quot;&quot;&quot;company_logo&quot;&quot;&quot;" name="name"/>
1466+ </record>
1467+
1468+ </data>
1469+</openerp>
1470
1471=== added directory 'account_financial_report_webkit/demo'
1472=== added directory 'account_financial_report_webkit/doc'
1473=== added directory 'account_financial_report_webkit/doc/images'
1474=== added directory 'account_financial_report_webkit/i18n'
1475=== added file 'account_financial_report_webkit/i18n/es.po'
1476--- account_financial_report_webkit/i18n/es.po 1970-01-01 00:00:00 +0000
1477+++ account_financial_report_webkit/i18n/es.po 2013-10-29 16:39:33 +0000
1478@@ -0,0 +1,57 @@
1479+# Translation of OpenERP Server.
1480+# This file contains the translation of the following modules:
1481+# * account_financial_report_webkit
1482+#
1483+msgid ""
1484+msgstr ""
1485+"Project-Id-Version: OpenERP Server 7.0\n"
1486+"Report-Msgid-Bugs-To: \n"
1487+"POT-Creation-Date: 2013-10-21 19:57+0000\n"
1488+"PO-Revision-Date: 2013-10-21 14:58-0600\n"
1489+"Last-Translator: <>\n"
1490+"Language-Team: \n"
1491+"MIME-Version: 1.0\n"
1492+"Content-Type: text/plain; charset=UTF-8\n"
1493+"Content-Transfer-Encoding: 8bit\n"
1494+"Plural-Forms: \n"
1495+
1496+#. module: account_financial_report_webkit
1497+#: model:ir.model,name:account_financial_report_webkit.model_wizard_report
1498+msgid "wizard.report"
1499+msgstr "wizard.report"
1500+
1501+#. module: account_financial_report_webkit
1502+#: selection:wizard.report,report_format:0
1503+msgid "PDF"
1504+msgstr "PDF"
1505+
1506+#. module: account_financial_report_webkit
1507+#: field:wizard.report,report_format:0
1508+msgid "Report Format"
1509+msgstr "Formato del Reporte"
1510+
1511+#. module: account_financial_report_webkit
1512+#: model:ir.actions.report.xml,name:account_financial_report_webkit.afr_report_analytic_ledger
1513+#: model:ir.actions.report.xml,name:account_financial_report_webkit.afr_report_analytic_ledger_html
1514+#: model:ir.actions.report.xml,name:account_financial_report_webkit.afr_report_col1
1515+#: model:ir.actions.report.xml,name:account_financial_report_webkit.afr_report_col13
1516+#: model:ir.actions.report.xml,name:account_financial_report_webkit.afr_report_col13_html
1517+#: model:ir.actions.report.xml,name:account_financial_report_webkit.afr_report_col1_html
1518+#: model:ir.actions.report.xml,name:account_financial_report_webkit.afr_report_col2
1519+#: model:ir.actions.report.xml,name:account_financial_report_webkit.afr_report_col2_html
1520+#: model:ir.actions.report.xml,name:account_financial_report_webkit.afr_report_col4
1521+#: model:ir.actions.report.xml,name:account_financial_report_webkit.afr_report_col4_html
1522+#: model:ir.actions.report.xml,name:account_financial_report_webkit.afr_report_col5
1523+#: model:ir.actions.report.xml,name:account_financial_report_webkit.afr_report_col5_html
1524+#: model:ir.actions.report.xml,name:account_financial_report_webkit.afr_report_journal_ledger
1525+#: model:ir.actions.report.xml,name:account_financial_report_webkit.afr_report_journal_ledger_html
1526+#: model:ir.actions.report.xml,name:account_financial_report_webkit.afr_report_qtr
1527+#: model:ir.actions.report.xml,name:account_financial_report_webkit.afr_report_qtr_html
1528+msgid "Print AFR"
1529+msgstr "Imprimir AFR"
1530+
1531+#. module: account_financial_report_webkit
1532+#: selection:wizard.report,report_format:0
1533+msgid "Spreadsheet"
1534+msgstr "Hoja de Calculo"
1535+
1536
1537=== added file 'account_financial_report_webkit/i18n/es_MX.po'
1538--- account_financial_report_webkit/i18n/es_MX.po 1970-01-01 00:00:00 +0000
1539+++ account_financial_report_webkit/i18n/es_MX.po 2013-10-29 16:39:33 +0000
1540@@ -0,0 +1,57 @@
1541+# Translation of OpenERP Server.
1542+# This file contains the translation of the following modules:
1543+# * account_financial_report_webkit
1544+#
1545+msgid ""
1546+msgstr ""
1547+"Project-Id-Version: OpenERP Server 7.0\n"
1548+"Report-Msgid-Bugs-To: \n"
1549+"POT-Creation-Date: 2013-10-21 19:57+0000\n"
1550+"PO-Revision-Date: 2013-10-21 14:58-0600\n"
1551+"Last-Translator: <>\n"
1552+"Language-Team: \n"
1553+"MIME-Version: 1.0\n"
1554+"Content-Type: text/plain; charset=UTF-8\n"
1555+"Content-Transfer-Encoding: 8bit\n"
1556+"Plural-Forms: \n"
1557+
1558+#. module: account_financial_report_webkit
1559+#: model:ir.model,name:account_financial_report_webkit.model_wizard_report
1560+msgid "wizard.report"
1561+msgstr "wizard.report"
1562+
1563+#. module: account_financial_report_webkit
1564+#: selection:wizard.report,report_format:0
1565+msgid "PDF"
1566+msgstr "PDF"
1567+
1568+#. module: account_financial_report_webkit
1569+#: field:wizard.report,report_format:0
1570+msgid "Report Format"
1571+msgstr "Formato del Reporte"
1572+
1573+#. module: account_financial_report_webkit
1574+#: model:ir.actions.report.xml,name:account_financial_report_webkit.afr_report_analytic_ledger
1575+#: model:ir.actions.report.xml,name:account_financial_report_webkit.afr_report_analytic_ledger_html
1576+#: model:ir.actions.report.xml,name:account_financial_report_webkit.afr_report_col1
1577+#: model:ir.actions.report.xml,name:account_financial_report_webkit.afr_report_col13
1578+#: model:ir.actions.report.xml,name:account_financial_report_webkit.afr_report_col13_html
1579+#: model:ir.actions.report.xml,name:account_financial_report_webkit.afr_report_col1_html
1580+#: model:ir.actions.report.xml,name:account_financial_report_webkit.afr_report_col2
1581+#: model:ir.actions.report.xml,name:account_financial_report_webkit.afr_report_col2_html
1582+#: model:ir.actions.report.xml,name:account_financial_report_webkit.afr_report_col4
1583+#: model:ir.actions.report.xml,name:account_financial_report_webkit.afr_report_col4_html
1584+#: model:ir.actions.report.xml,name:account_financial_report_webkit.afr_report_col5
1585+#: model:ir.actions.report.xml,name:account_financial_report_webkit.afr_report_col5_html
1586+#: model:ir.actions.report.xml,name:account_financial_report_webkit.afr_report_journal_ledger
1587+#: model:ir.actions.report.xml,name:account_financial_report_webkit.afr_report_journal_ledger_html
1588+#: model:ir.actions.report.xml,name:account_financial_report_webkit.afr_report_qtr
1589+#: model:ir.actions.report.xml,name:account_financial_report_webkit.afr_report_qtr_html
1590+msgid "Print AFR"
1591+msgstr "Imprimir AFR"
1592+
1593+#. module: account_financial_report_webkit
1594+#: selection:wizard.report,report_format:0
1595+msgid "Spreadsheet"
1596+msgstr "Hoja de Calculo"
1597+
1598
1599=== added directory 'account_financial_report_webkit/model'
1600=== added file 'account_financial_report_webkit/model/__init__.py'
1601--- account_financial_report_webkit/model/__init__.py 1970-01-01 00:00:00 +0000
1602+++ account_financial_report_webkit/model/__init__.py 2013-10-29 16:39:33 +0000
1603@@ -0,0 +1,25 @@
1604+#!/usr/bin/python
1605+# -*- encoding: utf-8 -*-
1606+###############################################################################
1607+# Module Writen to OpenERP, Open Source Management Solution
1608+# Copyright (C) OpenERP Venezuela (<http://www.vauxoo.com>).
1609+# All Rights Reserved
1610+############# Credits #########################################################
1611+# Coded by: Yanina Aular <yani@vauxoo.com>
1612+# Planified by: Humberto Arocha <hbto@vauxoo.com>
1613+# Audited by: Humberto Arocha <hbto@vauxoo.com>
1614+###############################################################################
1615+# This program is free software: you can redistribute it and/or modify
1616+# it under the terms of the GNU Affero General Public License as published
1617+# by the Free Software Foundation, either version 3 of the License, or
1618+# (at your option) any later version.
1619+#
1620+# This program is distributed in the hope that it will be useful,
1621+# but WITHOUT ANY WARRANTY; without even the implied warranty of
1622+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1623+# GNU Affero General Public License for more details.
1624+#
1625+# You should have received a copy of the GNU Affero General Public License
1626+# along with this program. If not, see <http://www.gnu.org/licenses/>.
1627+###############################################################################
1628+
1629
1630=== added directory 'account_financial_report_webkit/report'
1631=== added file 'account_financial_report_webkit/report/__init__.py'
1632--- account_financial_report_webkit/report/__init__.py 1970-01-01 00:00:00 +0000
1633+++ account_financial_report_webkit/report/__init__.py 2013-10-29 16:39:33 +0000
1634@@ -0,0 +1,25 @@
1635+#!/usr/bin/python
1636+# -*- encoding: utf-8 -*-
1637+###############################################################################
1638+# Module Writen to OpenERP, Open Source Management Solution
1639+# Copyright (C) OpenERP Venezuela (<http://www.vauxoo.com>).
1640+# All Rights Reserved
1641+############# Credits #########################################################
1642+# Coded by: Yanina Aular <yani@vauxoo.com>
1643+# Planified by: Humberto Arocha <hbto@vauxoo.com>
1644+# Audited by: Humberto Arocha <hbto@vauxoo.com>
1645+###############################################################################
1646+# This program is free software: you can redistribute it and/or modify
1647+# it under the terms of the GNU Affero General Public License as published
1648+# by the Free Software Foundation, either version 3 of the License, or
1649+# (at your option) any later version.
1650+#
1651+# This program is distributed in the hope that it will be useful,
1652+# but WITHOUT ANY WARRANTY; without even the implied warranty of
1653+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1654+# GNU Affero General Public License for more details.
1655+#
1656+# You should have received a copy of the GNU Affero General Public License
1657+# along with this program. If not, see <http://www.gnu.org/licenses/>.
1658+###############################################################################
1659+
1660
1661=== added file 'account_financial_report_webkit/report/afr_report_webkit_analytic_ledger.mako'
1662--- account_financial_report_webkit/report/afr_report_webkit_analytic_ledger.mako 1970-01-01 00:00:00 +0000
1663+++ account_financial_report_webkit/report/afr_report_webkit_analytic_ledger.mako 2013-10-29 16:39:33 +0000
1664@@ -0,0 +1,103 @@
1665+<!DOCTYPE html SYSTEM
1666+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
1667+<html xmlns="http://www.w3.org/1999/xhtml">
1668+<head>
1669+<style type="text/css">
1670+ ${css}
1671+</style>
1672+</head>
1673+
1674+<body style="border:0; margin: 0;" onload="subst()" >
1675+%for obj in objects:
1676+<table width="100%">
1677+ <tr>
1678+ <td>
1679+ <div>${helper.embed_image('jpeg',str(obj.company_id.logo),250, 120)}</div>
1680+ </td>
1681+ <td>
1682+ <table style="width: 100%; text-align:center;">
1683+ <tr><td><div class="td_company_title">${obj.company_id.name or ''|entity}</div></td></tr>
1684+ <tr><td><div class="td_company">${obj.get_parser_method('get_vat_by_country',data['form']) or ''|entity}</div></td></tr>
1685+ <tr><td><div class="td_company">${obj.get_parser_method('get_informe_text',data['form']) or ''| entity}</div></td></tr>
1686+ <tr><td><div class="td_company">${_(Expressed in data['form'] and (' %s'% obj.get_parser_method('exchange_name',data['form'])) or '')}</div></td></tr>
1687+ <tr><td><div class="td_company_date"> ${data['form'] and obj.get_parser_method('get_month',data['form']) or ''}</div></td></tr>
1688+ </table>
1689+ </td>
1690+ </tr>
1691+</table>
1692+
1693+<table width="100%">
1694+ <thead>
1695+ <tr>
1696+ <td class="celdaTituloTabla" style="width: 100%; text-align:left;">${_('Expressed in: %s') % (obj.get_parser_method('exchange_name',data['form'])) or ''|entity}</td>
1697+ </tr>
1698+ </thead>
1699+</table>
1700+<table width="100%">
1701+ <thead>
1702+ <tr>
1703+ <td class="celdaTituloTabla" style="text-align:right" width="10%">${_('CODE')}</td>
1704+ <td class="celdaTituloTabla" width="50%">${_('ACCOUNT')}</td>
1705+ <td class="celdaTituloTabla" width="10%" style="text-align:center;" >${_('INICIAL')}</td>
1706+ <td class="celdaTituloTabla" width="10%" style="text-align:center;" >${_('DEBIT')}</td>
1707+ <td class="celdaTituloTabla" width="10%" style="text-align:center;" >${_('CREDIT')}</td>
1708+ <td class="celdaTituloTabla" width="10%" style="text-align:center;" >${_('BALANCE')}</td>
1709+ </tr>
1710+ </thead>
1711+</table>
1712+<table width="100%">
1713+ <thead>
1714+ <tr>
1715+ <td class="celdaTituloTabla" style="text-align:left;" width="10%">${_('DATE')}</td>
1716+ <td class="celdaTituloTabla" width="10%">${_('PERIOD')}</td>
1717+ <td class="celdaTituloTabla" width="30%">${_('REFERENCE')}</td>
1718+ <td class="celdaTituloTabla" width="30%">${_('JOURNAL ENTRY')}</td>
1719+ <td class="celdaTituloTabla" width="10%">${_('PARTNER')}</td>
1720+ <td class="celdaTituloTabla" width="10%" ></td>
1721+ </tr>
1722+ </thead>
1723+</table>
1724+<table width="100%">
1725+ <tr>
1726+ <td width="10%"></td>
1727+ <td width="10%"></td>
1728+ <td width="10%"></td>
1729+ <td width="10%"></td>
1730+ <td width="10%"></td>
1731+ <td width="10%"></td>
1732+ <td width="10%"></td>
1733+ <td width="10%"></td>
1734+ <td width="10%"></td>
1735+ <td width="10%"></td>
1736+ </tr>
1737+ %for line in obj.get_parser_method('lines',data['form']):
1738+ %if line['type']!= 'view':
1739+ <tbody>
1740+ <tr>
1741+ <td class="celdaLineDataTotal" style="text-align:right;font-style:italic;" width="10%">${line['code'] or ''}</td>
1742+ <td class="celdaLineDataNameTotal" colspan="5">${line['name'].upper() or line['name'].title() or ''}</td>
1743+ <td class="celdaLineDataTotal" width="10%" style="text-align:right;">${formatLang(line['balanceinit'] and line['balanceinit'] * line.get('change_sign',1.0) or 0.0, digits=2, grouping=True) or ''}</td>
1744+ <td class="celdaLineDataTotal" width="10%" style="text-align:right;">${formatLang(line['debit'], digits=2, grouping=True) or ''}</td>
1745+ <td class="celdaLineDataTotal" width="10%" style="text-align:right;">${formatLang(line['credit'], digits=2, grouping=True) or ''}</td>
1746+ <td class="celdaLineDataTotal" width="10%" style="text-align:right;">${formatLang(line['balance'] and line['balance'] * line.get('change_sign',1.0) or 0.0, digits=2, grouping=True) or ''}</td>
1747+ </tr>
1748+ </tbody>
1749+ %for m in line['mayor']:
1750+ <tbody>
1751+ <tr>
1752+ <td class="celdaLineData" style="text-align:left;font-style:italic;" width="10%">${formatLang( m['date'], date=True) or ''}</td>
1753+ <td class="celdaLineData" style="text-align:left;" width="10%">${m['period'] or ''}</td>
1754+ <td class="celdaLineDataNamePartner" colspan="3">${m['name'] or ''} ${m['ref'] and (' - Ref %s'%m['ref']) or ''}</td>
1755+ <td class="celdaLineDataNamePartner" colspan="3">${m['entry'] or ''}</td>
1756+ <td class="celdaLineDataNamePartner" width="10%">${m['partner'] or ''}</td>
1757+ <td class="celdaLineData" width="10%"></td>
1758+ </tr>
1759+ </tbody>
1760+ %endfor
1761+ %endif
1762+ %endfor
1763+</table>
1764+
1765+%endfor
1766+</body>
1767+</html>
1768
1769=== added file 'account_financial_report_webkit/report/afr_report_webkit_cols1.mako'
1770--- account_financial_report_webkit/report/afr_report_webkit_cols1.mako 1970-01-01 00:00:00 +0000
1771+++ account_financial_report_webkit/report/afr_report_webkit_cols1.mako 2013-10-29 16:39:33 +0000
1772@@ -0,0 +1,71 @@
1773+<!DOCTYPE html SYSTEM
1774+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
1775+<html xmlns="http://www.w3.org/1999/xhtml">
1776+<head>
1777+<style type="text/css">
1778+ ${css}
1779+</style>
1780+</head>
1781+
1782+<body style="border:0; margin: 0;" onload="subst()" >
1783+ %for obj in objects:
1784+ <table>
1785+ <tr>
1786+ <td width="30%">
1787+ <div>${helper.embed_image('jpeg',str(obj.company_id.logo),250, 120)}</div>
1788+ </td>
1789+ <td width="70%">
1790+ <table style="width: 100%; text-align:center;">
1791+ <tr><td><div class="td_company_title">${obj.company_id.name or ''|entity}</div></td></tr>
1792+ <tr><td><div class="td_company">${obj.get_parser_method('get_vat_by_country',data['form']) or ''|entity}</div></td></tr>
1793+ <tr><td><div class="td_company">${obj.get_parser_method('get_informe_text',data['form']) or ''| entity}</div></td></tr>
1794+ <tr><td><div class="td_company">${_(Expressed in data['form'] and (' %s'% obj.get_parser_method('exchange_name',data['form'])) or '')}</div></td></tr>
1795+ <tr><td><div class="td_company_date"> ${data['form'] and obj.get_parser_method('get_month',data['form']) or ''}</div></td></tr>
1796+ </table>
1797+ </td>
1798+ <td>
1799+ </td>
1800+ </tr>
1801+ </table>
1802+ <table width="100%">
1803+ <thead>
1804+ <tr>
1805+ <td class="celdaTituloTabla" style="width: 100%; text-align:left;">${_('Expressed in: %s') % (obj.get_parser_method('exchange_name',data['form'])) or ''|entity}</td>
1806+ </tr>
1807+ </thead>
1808+ </table>
1809+ <table width="100%">
1810+ <tbody>
1811+ <tr class="prueba">
1812+ <td class="celdaTituloTabla" style="text-align:right;" width="10%">${_('CODE')}</td>
1813+ <td class="celdaTituloTabla" width="70%">${_('ACCOUNT')}</td>
1814+ <center>
1815+ <td class="celdaTituloTabla" style="text-align:center;" width="20%">${_('BALANCE')}</td>
1816+ </center>
1817+ </tr>
1818+ %for line in obj.get_parser_method('lines',data['form']):
1819+ %if line['type'] != 'view':
1820+ <tr class="prueba">
1821+ <i><td class="celdaLineData" style="text-align:right;font-style:italic;" width="10%">${line['code'] or ''}</td></i>
1822+ <td class="celdaLineDataName" width="70%">${line['name'].upper() or line['name'].title() or ''}</td>
1823+ <td class="celdaLineData" width="20%">${formatLang(line['balance'] and line['balance'] * line.get('change_sign',1.0) or 0.0, digits=2, grouping=True) or ''}</td>
1824+ </tr>
1825+ %elif line['total'] and not line['label']:
1826+ <tr class="prueba">
1827+ <i><td class="celdaLineDataTotal" style="text-align:right;font-style:italic;" width="10%">${(line['label'] == True ) and line['code'] or ''}</td></i>
1828+ <td class="celdaLineDataTotal" style="text-align:right;" width="70%">${(line['type'] == 'view') and line['name'].upper() or line['name'].title() or ''}</td>
1829+ <td class="celdaLineDataTotal" width="20%">${formatLang(line['balance'] and line['balance'] * line.get('change_sign',1.0) or 0.0, digits=2, grouping=True) or ''}</td>
1830+ </tr>
1831+ %else:
1832+ <tr class="prueba">
1833+ <i><td class="celdaLineDataView" style="text-align:right;font-style:italic;" width="10%">${(line['label'] == True ) and line['code'] or ''}</td></i>
1834+ <td class="celdaLineDataNameView" width="70%">${line['name'].upper() or line['name'].title() or ''}</td>
1835+ <td class="celdaLineDataView" width="20%">${formatLang(line['balance'] and line['balance'] * line.get('change_sign',1.0) or 0.0, digits=2, grouping=True) or ''}</td>
1836+ </tr>
1837+ %endif
1838+ %endfor
1839+ </tbody>
1840+ </table>
1841+ %endfor
1842+</body>
1843+</html>
1844
1845=== added file 'account_financial_report_webkit/report/afr_report_webkit_cols13.mako'
1846--- account_financial_report_webkit/report/afr_report_webkit_cols13.mako 1970-01-01 00:00:00 +0000
1847+++ account_financial_report_webkit/report/afr_report_webkit_cols13.mako 2013-10-29 16:39:33 +0000
1848@@ -0,0 +1,102 @@
1849+<!DOCTYPE html SYSTEM
1850+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
1851+<html xmlns="http://www.w3.org/1999/xhtml">
1852+<head>
1853+<style type="text/css">
1854+ ${css}
1855+</style>
1856+</head>
1857+
1858+<body style="border:0; margin: 0;" onload="subst()" >
1859+<!--
1860+<h1><center>12 Months | YTD</center></h1>
1861+-->
1862+ %for obj in objects:
1863+ <table>
1864+ <tr>
1865+ <td width="30%">
1866+ <div>${helper.embed_image('jpeg',str(obj.company_id.logo),250, 120)}</div>
1867+ </td>
1868+ <td width="70%">
1869+ <table style="width: 100%; text-align:center;">
1870+ <tr><td><div class="td_company_title">${obj.company_id.name or ''|entity}</div></td></tr>
1871+ <tr><td><div class="td_company">${obj.get_parser_method('get_vat_by_country',data['form']) or ''|entity}</div></td></tr>
1872+ <tr><td><div class="td_company">${obj.get_parser_method('get_informe_text',data['form']) or ''| entity}</div></td></tr>
1873+ <tr><td><div class="td_company_date"> ${data['form'] and obj.get_parser_method('get_month',data['form']) or ''}</div></td></tr>
1874+ </table>
1875+ </td>
1876+ </tr>
1877+ </table>
1878+ <table width="100%">
1879+ <thead>
1880+ <tr>
1881+ <td class="celdaTituloTabla" style="width: 100%; text-align:left;" colspan="15">${_('Expressed in: %s') % (obj.get_parser_method('exchange_name',data['form'])) or ''|entity}</td>
1882+ </tr>
1883+ </thead>
1884+ <tbody>
1885+ <tr class="prueba">
1886+ <td class="celdaTituloTabla" style="text-align:right;" width="6%">${_('CODE')}</td>
1887+ <td class="celdaTituloTabla" width="16%">${_('ACCOUNT')}</td>
1888+ <td class="celdaTituloTabla" style="text-align:center;" width="6%">${_('01')}</td>
1889+ <td class="celdaTituloTabla" style="text-align:center;" width="6%">${_('02')}</td>
1890+ <td class="celdaTituloTabla" style="text-align:center;" width="6%">${_('03')}</td>
1891+ <td class="celdaTituloTabla" style="text-align:center;" width="6%">${_('04')}</td>
1892+ <td class="celdaTituloTabla" style="text-align:center;" width="6%">${_('05')}</td>
1893+ <td class="celdaTituloTabla" style="text-align:center;" width="6%">${_('06')}</td>
1894+ <td class="celdaTituloTabla" style="text-align:center;" width="6%">${_('07')}</td>
1895+ <td class="celdaTituloTabla" style="text-align:center;" width="6%">${_('08')}</td>
1896+ <td class="celdaTituloTabla" style="text-align:center;" width="6%">${_('09')}</td>
1897+ <td class="celdaTituloTabla" style="text-align:center;" width="6%">${_('10')}</td>
1898+ <td class="celdaTituloTabla" style="text-align:center;" width="6%">${_('11')}</td>
1899+ <td class="celdaTituloTabla" style="text-align:center;" width="6%">${_('12')}</td>
1900+ <td class="celdaTituloTabla" style="text-align:center;" width="6%">${_('YTD')}</td>
1901+ </tr>
1902+ %for line in obj.get_parser_method('lines',data['form']):
1903+ %if line['type'] != 'view':
1904+ <tr>
1905+ <td class="celdaLineData" style="text-align:right;font-style:italic;" width="6%">${line['code'] or ''}</td>
1906+ <td class="celdaLineDataName" width="16%">${line['name'].upper() or line['name'].title() or ''}</td>
1907+ <td class="celdaLineData" width="6%">${formatLang(line['bal1'] and line['bal1'] * line.get('change_sign',1) or 0.0, digits=2, grouping=True) or ''}</td>
1908+ <td class="celdaLineData" width="6%">${formatLang(line['bal2'] and line['bal2'] * line.get('change_sign',1) or 0.0, digits=2, grouping=True) or ''}</td>
1909+ <td class="celdaLineData" width="6%">${formatLang(line['bal3'] and line['bal3'] * line.get('change_sign',1) or 0.0, digits=2, grouping=True) or ''}</td>
1910+ <td class="celdaLineData" width="6%">${formatLang(line['bal4'] and line['bal4'] * line.get('change_sign',1) or 0.0, digits=2, grouping=True) or ''}</td>
1911+ <td class="celdaLineData" width="6%">${formatLang(line['bal5'] and line['bal5'] * line.get('change_sign',1) or 0.0, digits=2, grouping=True) or ''}</td>
1912+ <td class="celdaLineData" width="6%">${formatLang(line['bal6'] and line['bal6'] * line.get('change_sign',1) or 0.0, digits=2, grouping=True) or ''}</td>
1913+ <td class="celdaLineData" width="6%">${formatLang(line['bal7'] and line['bal7'] * line.get('change_sign',1) or 0.0, digits=2, grouping=True) or ''}</td>
1914+ <td class="celdaLineData" width="6%">${formatLang(line['bal8'] and line['bal8'] * line.get('change_sign',1) or 0.0, digits=2, grouping=True) or ''}</td>
1915+ <td class="celdaLineData" width="6%">${formatLang(line['bal9'] and line['bal9'] * line.get('change_sign',1) or 0.0, digits=2, grouping=True) or ''}</td>
1916+ <td class="celdaLineData" width="6%">${formatLang(line['bal10'] and line['bal10'] * line.get('change_sign',1) or 0.0, digits=2, grouping=True) or ''}</td>
1917+ <td class="celdaLineData" width="6%">${formatLang(line['bal11'] and line['bal11'] * line.get('change_sign',1) or 0.0, digits=2, grouping=True) or ''}</td>
1918+ <td class="celdaLineData" width="6%">${formatLang(line['bal12'] and line['bal12'] * line.get('change_sign',1) or 0.0, digits=2, grouping=True) or ''}</td>
1919+ <td class="celdaLineData" width="6%">${formatLang(line['bal13'] and line['bal13'] * line.get('change_sign',1) or 0.0, digits=2, grouping=True) or ''}</td>
1920+ </tr>
1921+ %elif line['total'] and not line['label']:
1922+ <tr>
1923+ <td class="celdaLineDataTotal" style="text-align:right;font-style:italic;" width="6%">${line['code'] or ''}</td>
1924+ <td class="celdaLineDataTotal" width="16%">${line['name'].upper() or line['name'].title() or ''}</td>
1925+ <td class="celdaLineDataTotal" width="6%">${formatLang(line['bal1'] and line['bal1'] * line.get('change_sign',1) or 0.0, digits=2, grouping=True) or ''}</td>
1926+ <td class="celdaLineDataTotal" width="6%">${formatLang(line['bal2'] and line['bal2'] * line.get('change_sign',1) or 0.0, digits=2, grouping=True) or ''}</td>
1927+ <td class="celdaLineDataTotal" width="6%">${formatLang(line['bal3'] and line['bal3'] * line.get('change_sign',1) or 0.0, digits=2, grouping=True) or ''}</td>
1928+ <td class="celdaLineDataTotal" width="6%">${formatLang(line['bal4'] and line['bal4'] * line.get('change_sign',1) or 0.0, digits=2, grouping=True) or ''}</td>
1929+ <td class="celdaLineDataTotal" width="6%">${formatLang(line['bal5'] and line['bal5'] * line.get('change_sign',1) or 0.0, digits=2, grouping=True) or ''}</td>
1930+ <td class="celdaLineDataTotal" width="6%">${formatLang(line['bal6'] and line['bal6'] * line.get('change_sign',1) or 0.0, digits=2, grouping=True) or ''}</td>
1931+ <td class="celdaLineDataTotal" width="6%">${formatLang(line['bal7'] and line['bal7'] * line.get('change_sign',1) or 0.0, digits=2, grouping=True) or ''}</td>
1932+ <td class="celdaLineDataTotal" width="6%">${formatLang(line['bal8'] and line['bal8'] * line.get('change_sign',1) or 0.0, digits=2, grouping=True) or ''}</td>
1933+ <td class="celdaLineDataTotal" width="6%">${formatLang(line['bal9'] and line['bal9'] * line.get('change_sign',1) or 0.0, digits=2, grouping=True) or ''}</td>
1934+ <td class="celdaLineDataTotal" width="6%">${formatLang(line['bal10'] and line['bal10'] * line.get('change_sign',1) or 0.0, digits=2, grouping=True) or ''}</td>
1935+ <td class="celdaLineDataTotal" width="6%">${formatLang(line['bal11'] and line['bal11'] * line.get('change_sign',1) or 0.0, digits=2, grouping=True) or ''}</td>
1936+ <td class="celdaLineDataTotal" width="6%">${formatLang(line['bal12'] and line['bal12'] * line.get('change_sign',1) or 0.0, digits=2, grouping=True) or ''}</td>
1937+ <td class="celdaLineDataTotal" width="6%">${formatLang(line['bal13'] and line['bal13'] * line.get('change_sign',1) or 0.0, digits=2, grouping=True) or ''}</td>
1938+ </tr>
1939+ %else:
1940+ <tr>
1941+ <td class="celdaLineDataView" style="text-align:right;font-style:italic;" width="6%">${line['code'] or ''}</td>
1942+ <td class="celdaLineDataNameView" colspan="14">${line['name'].upper() or line['name'].title() or ''}</td>
1943+ </tr>
1944+ %endif
1945+ %endfor
1946+ </tbody>
1947+ </table>
1948+%endfor
1949+</body>
1950+</html>
1951
1952=== added file 'account_financial_report_webkit/report/afr_report_webkit_cols2.mako'
1953--- account_financial_report_webkit/report/afr_report_webkit_cols2.mako 1970-01-01 00:00:00 +0000
1954+++ account_financial_report_webkit/report/afr_report_webkit_cols2.mako 2013-10-29 16:39:33 +0000
1955@@ -0,0 +1,80 @@
1956+<!DOCTYPE html SYSTEM
1957+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
1958+<html xmlns="http://www.w3.org/1999/xhtml">
1959+<head>
1960+<style type="text/css">
1961+ ${css}
1962+</style>
1963+</head>
1964+
1965+<body style="border:0; margin: 0;" onload="subst()" >
1966+
1967+<!--
1968+ <h1><center>Debit | Credit</center></h1>
1969+-->
1970+ %for obj in objects:
1971+ <table>
1972+ <tr>
1973+ <td width="30%">
1974+ <div>${helper.embed_image('jpeg',str(obj.company_id.logo),250, 120)}</div>
1975+ </td>
1976+ <td width="70%">
1977+ <table style="width: 100%; text-align:center;">
1978+ <tr><td><div class="td_company_title">${obj.company_id.name or ''|entity}</div></td></tr>
1979+ <tr><td><div class="td_company">${obj.get_parser_method('get_vat_by_country',data['form']) or ''|entity}</div></td></tr>
1980+ <tr><td><div class="td_company">${obj.get_parser_method('get_informe_text',data['form']) or ''| entity}</div></td></tr>
1981+ <tr><td><div class="td_company">${_(Expressed in data['form'] and (' %s'% obj.get_parser_method('exchange_name',data['form'])) or '')}</div></td></tr>
1982+ <tr><td><div class="td_company_date"> ${data['form'] and obj.get_parser_method('get_month',data['form']) or ''}</div></td></tr>
1983+ </table>
1984+ </td>
1985+ <td>
1986+ </td>
1987+ </tr>
1988+ </table>
1989+ <table width="100%">
1990+ <thead>
1991+ <tr>
1992+ <td class="celdaTituloTabla" style="width: 100%; text-align:left;">${_('Expressed in: %s') % (obj.get_parser_method('exchange_name',data['form'])) or ''|entity}</td>
1993+ </tr>
1994+ </thead>
1995+ </table>
1996+ <table width="100%">
1997+ <tbody>
1998+ <tr class="prueba">
1999+ <td class="celdaTituloTabla" style="text-align:right;" width="10%">${_('CODE')}</td>
2000+ <td class="celdaTituloTabla" width="50%">${_('ACCOUNT')}</td>
2001+ <center>
2002+ <td class="celdaTituloTabla" style="text-align:center;" width="20%">${_('DEBIT')}</td>
2003+ <td class="celdaTituloTabla" style="text-align:center;" width="20%">${_('CREDIT')}</td>
2004+ </center>
2005+ </tr>
2006+ %for line in obj.get_parser_method('lines',data['form']):
2007+
2008+ %if line['type'] != 'view':
2009+ <tr class="prueba">
2010+ <i><td class="celdaLineData" style="text-align:right;font-style:italic;" width="10%">${line['code'] or ''}</td></i>
2011+ <td class="celdaLineDataName" width="50%">${line['name'].upper() or line['name'].title() or ''}</td>
2012+ <td class="celdaLineData" width="20%">${formatLang(line['debit'], digits=2, date=False, date_time=False, grouping=3, monetary=True) or ''}</td>
2013+ <td class="celdaLineData" width="20%">${formatLang(line['credit'], digits=2, date=False, date_time=False, grouping=3, monetary=True) or ''}</td>
2014+ </tr>
2015+ %elif line['total'] and not line['label']:
2016+ <tr class="prueba">
2017+ <i><td class="celdaLineDataTotal" style="text-align:right;font-style:italic;" width="10%">${line['code'] or ''}</td></i>
2018+ <td class="celdaLineDataTotal" style="text-align:right;" width="50%">${line['name'].upper() or line['name'].title() or ''}</td>
2019+ <td class="celdaLineDataTotal" width="20%">${formatLang(line['debit'], digits=2, date=False, date_time=False, grouping=3, monetary=True) or ''}</td>
2020+ <td class="celdaLineDataTotal" width="20%">${formatLang(line['credit'], digits=2, date=False, date_time=False, grouping=3, monetary=True) or ''}</td>
2021+ </tr>
2022+ %else:
2023+ <tr class="prueba">
2024+ <i><td class="celdaLineDataView" style="text-align:right;font-style:italic;" width="10%">${(line['label'] == True ) and line['code'] or ''}</td></i>
2025+ <td class="celdaLineDataNameView" width="50%">${line['name'].upper() or line['name'].title() or ''}</td>
2026+ <td class="celdaLineDataView" width="20%">${formatLang(line['debit'], digits=2, date=False, date_time=False, grouping=3, monetary=True) or ''}</td>
2027+ <td class="celdaLineDataView" width="20%">${formatLang(line['credit'], digits=2, date=False, date_time=False, grouping=3, monetary=True) or ''}</td>
2028+ </tr>
2029+ %endif
2030+ %endfor
2031+ </tbody>
2032+ </table>
2033+ %endfor
2034+</body>
2035+</html>
2036
2037=== added file 'account_financial_report_webkit/report/afr_report_webkit_cols4.mako'
2038--- account_financial_report_webkit/report/afr_report_webkit_cols4.mako 1970-01-01 00:00:00 +0000
2039+++ account_financial_report_webkit/report/afr_report_webkit_cols4.mako 2013-10-29 16:39:33 +0000
2040@@ -0,0 +1,86 @@
2041+<!DOCTYPE html SYSTEM
2042+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2043+<html xmlns="http://www.w3.org/1999/xhtml">
2044+<head>
2045+<style type="text/css">
2046+ ${css}
2047+</style>
2048+</head>
2049+
2050+<body style="border:0; margin: 0;" onload="subst()" >
2051+
2052+
2053+<!--
2054+ <h1><center>Initial | Debit | Credit | YTD</center></h1>
2055+-->
2056+ %for obj in objects:
2057+ <table>
2058+ <tr>
2059+ <td width="30%">
2060+ <div>${helper.embed_image('jpeg',str(obj.company_id.logo),250, 120)}</div>
2061+ </td>
2062+ <td width="70%">
2063+ <table style="width: 100%; text-align:center;">
2064+ <tr><td><div class="td_company_title">${obj.company_id.name or ''|entity}</div></td></tr>
2065+ <tr><td><div class="td_company">${obj.get_parser_method('get_vat_by_country',data['form']) or ''|entity}</div></td></tr>
2066+ <tr><td><div class="td_company">${obj.get_parser_method('get_informe_text',data['form']) or ''| entity}</div></td></tr>
2067+ <tr><td><div class="td_company_date"> ${data['form'] and obj.get_parser_method('get_month',data['form']) or ''}</div></td></tr>
2068+ </table>
2069+ </td>
2070+ <td>
2071+ </td>
2072+ </tr>
2073+ </table>
2074+ <table width="100%">
2075+ <thead>
2076+ <tr>
2077+ <td class="celdaTituloTabla" style="width: 100%; text-align:left;">${_('Expressed in: %s') % (obj.get_parser_method('exchange_name',data['form'])) or ''|entity}</td>
2078+ </tr>
2079+ </thead>
2080+ </table>
2081+ <table width="100%">
2082+ <tbody>
2083+ <tr>
2084+ <td class="celdaTituloTabla" style="text-align:right;" width="10%">${_('CODE')}</td>
2085+ <td class="celdaTituloTabla" width="42%">${_('ACCOUNT')}</td>
2086+ <td class="celdaTituloTabla" style="text-align:center;" width="12%">${_('INICIAL')}</td>
2087+ <td class="celdaTituloTabla" style="text-align:center;" width="12%">${_('DEBIT')}</td>
2088+ <td class="celdaTituloTabla" style="text-align:center;" width="12%">${_('CREDIT')}</td>
2089+ <td class="celdaTituloTabla" style="text-align:center;" width="12%">${_('BALANCE')}</td>
2090+ </tr>
2091+ %for line in obj.get_parser_method('lines',data['form']):
2092+ %if line['type'] != 'view':
2093+ <tr>
2094+ <i><td class="celdaLineData" style="text-align:right;font-style:italic;" width="10%">${line['code'] or ''}</td></i>
2095+ <td class="celdaLineDataName" width="42%">${line['name'].upper() or line['name'].title() or ''}</td>
2096+ <td class="celdaLineData" width="12%">${formatLang(line['balanceinit'] and line['balanceinit'] * line.get('change_sign',1.0) or 0.0, digits=2, grouping=True) or ''}</td>
2097+ <td class="celdaLineData" width="12%">${formatLang(line['debit'], digits=2, grouping=True) or ''}</td>
2098+ <td class="celdaLineData" width="12%">${formatLang(line['credit'], digits=2, grouping=True) or ''}</td>
2099+ <td class="celdaLineData" width="12%">${formatLang(line['balance'] and line['balance'] * line.get('change_sign',1.0) or 0.0, digits=2, grouping=True) or ''}</td>
2100+ </tr>
2101+ %elif line['total'] and not line['label']:
2102+ <tr>
2103+ <i><td class="celdaLineDataTotal" style="text-align:right;font-style:italic;" width="10%">${line['code'] or ''}</td></i>
2104+ <td class="celdaLineDataTotal" style="text-align:right;" width="42%">${line['name'].upper() or line['name'].title() or ''}</td>
2105+ <td class="celdaLineDataTotal" width="12%">${formatLang(line['balanceinit'] and line['balanceinit'] * line.get('change_sign',1.0) or 0.0, digits=2, grouping=True) or ''}</td>
2106+ <td class="celdaLineDataTotal" width="12%">${formatLang(line['debit'], digits=2, grouping=True) or ''}</td>
2107+ <td class="celdaLineDataTotal" width="12%">${formatLang(line['credit'], digits=2, grouping=True) or ''}</td>
2108+ <td class="celdaLineDataTotal" width="12%">${formatLang(line['balance'] and line['balance'] * line.get('change_sign',1.0) or 0.0, digits=2, grouping=True) or ''}</td>
2109+ </tr>
2110+ %else:
2111+ <tr>
2112+ <td class="celdaLineDataView" style="text-align:right;font-style:italic;" width="10%">${line['code'] or ''}</td>
2113+ <td class="celdaLineDataNameView" width="42%">${line['name'].upper() or line['name'].title() or ''}</td>
2114+ <td class="celdaLineDataView" width="12%">${formatLang(line['balanceinit'] and line['balanceinit'] * line.get('change_sign',1.0) or 0.0, digits=2, grouping=True) or ''}</td>
2115+ <td class="celdaLineDataView" width="12%">${formatLang(line['debit'], digits=2, grouping=True) or ''}</td>
2116+ <td class="celdaLineDataView" width="12%">${formatLang(line['credit'], digits=2, grouping=True) or ''}</td>
2117+ <td class="celdaLineDataView" width="12%">${formatLang(line['balance'] and line['balance'] * line.get('change_sign',1.0) or 0.0, digits=2, grouping=True) or ''}</td>
2118+ </tr>
2119+ %endif
2120+ %endfor
2121+ </tbody>
2122+ </table>
2123+
2124+%endfor
2125+</body>
2126+</html>
2127
2128=== added file 'account_financial_report_webkit/report/afr_report_webkit_cols5.mako'
2129--- account_financial_report_webkit/report/afr_report_webkit_cols5.mako 1970-01-01 00:00:00 +0000
2130+++ account_financial_report_webkit/report/afr_report_webkit_cols5.mako 2013-10-29 16:39:33 +0000
2131@@ -0,0 +1,76 @@
2132+<!DOCTYPE html SYSTEM
2133+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2134+<html xmlns="http://www.w3.org/1999/xhtml">
2135+<head>
2136+<style type="text/css">
2137+ ${css}
2138+</style>
2139+</head>
2140+
2141+<body style="border:0; margin: 0;" onload="subst()" >
2142+
2143+%for obj in objects:
2144+<table>
2145+ <tr>
2146+ <td width="30%">
2147+ <div>${helper.embed_image('jpeg',str(obj.company_id.logo),250, 120)}</div>
2148+ </td>
2149+ <td width="70%">
2150+ <table style="width: 100%; text-align:center;">
2151+ <tr><td><div class="td_company_title">${obj.company_id.name or ''|entity}</div></td></tr>
2152+ <tr><td><div class="td_company">${obj.get_parser_method('get_vat_by_country',data['form']) or ''|entity}</div></td></tr>
2153+ <tr><td><div class="td_company">${obj.get_parser_method('get_informe_text',data['form']) or ''| entity}</div></td></tr>
2154+ <tr><td><div class="td_company_date"> ${data['form'] and obj.get_parser_method('get_month',data['form']) or ''}</div></td></tr>
2155+ </table>
2156+ </td>
2157+ </tr>
2158+</table>
2159+<table width="100%">
2160+ <thead>
2161+ <tr>
2162+ <td class="celdaTituloTabla" style="width: 100%; text-align:left;">${_('Expressed in: %s') % (obj.get_parser_method('exchange_name',data['form'])) or ''|entity}</td>
2163+ </tr>
2164+ </thead>
2165+</table>
2166+<table style="width: 100%;">
2167+ <tr>
2168+ <td class="celdaTituloTabla" style="text-align:right;" width="10%">${_('Code')}</td>
2169+ <td class="celdaTituloTabla" width="30%">${_('ACCOUNT')}</td>
2170+ <td class="celdaTituloTabla" width="10%">${_('INIT. BAL.')}</td>
2171+ <td class="celdaTituloTabla" style="text-align:center;" width="10%">${_('DEBIT')}</td>
2172+ <td class="celdaTituloTabla" style="text-align:center;" width="10%">${_('CREDIT')}</td>
2173+ <td class="celdaTituloTabla" style="text-align:center;" width="10%">${_('PERIOD')}</td>
2174+ <td class="celdaTituloTabla" style="text-align:center;" width="10%">${_('YTD')}</td>
2175+ </tr>
2176+ %for line in obj.get_parser_method('lines',data['form']):
2177+ %if line['type'] != 'view':
2178+ <tr>
2179+ <td class="celdaLineData" style="text-align:right;font-style:italic;">${line['code'] or ''}</td>
2180+ <td class="celdaLineDataName" >${line['name'].upper() or line['name'].title()}</td>
2181+ <td class="celdaLineData" style="text-align:right;">${formatLang(line.get('change_sign', 1.0) * line.get('balanceinit'), digits=2, grouping=True) or ''}</td>
2182+ <td class="celdaLineData" style="text-align:right;">${formatLang(line['debit'], digits=2, grouping=True) or ''}</td>
2183+ <td class="celdaLineData" style="text-align:right;">${formatLang(line['credit'], digits=2, grouping=True) or ''}</td>
2184+ <td class="celdaLineData" style="text-align:right;">${formatLang(line.get('change_sign', 1.0) * line.get('ytd'), digits=2, grouping=True) or ''}</td>
2185+ <td class="celdaLineData" style="text-align:right;">${formatLang(line.get('change_sign', 1.0) * line.get('balance'), digits=2, grouping=True) or ''}</td>
2186+ </tr>
2187+ %elif line['total'] and not line['label']:
2188+ <tr>
2189+ <td class="celdaLineDataTotal" style="text-align:right;font-style:italic;">${line['code'] or ''}</td>
2190+ <td class="celdaLineDataTotal" style="text-align:right;">${line['name'].upper() or line['name'].title() or ''}</td>
2191+ <td class="celdaLineDataTotal">${formatLang(line.get('change_sign', 1.0) * line.get('balanceinit'), digits=2, grouping=True) or ''}</td>
2192+ <td class="celdaLineDataTotal">${formatLang(line['debit'], digits=2, grouping=True) or ''}</td>
2193+ <td class="celdaLineDataTotal">${formatLang(line['credit'], digits=2, grouping=True) or ''}</td>
2194+ <td class="celdaLineDataTotal">${formatLang(line.get('change_sign', 1.0) * line.get('ytd'), digits=2, grouping=True) or ''}</td>
2195+ <td class="celdaLineDataTotal">${formatLang(line.get('change_sign', 1.0) * line.get('balance'), digits=2, grouping=True) or ''}</td>
2196+ </tr>
2197+ %else:
2198+ <tr>
2199+ <td class="celdaLineDataView" style="text-align:right;font-style:italic;" width="10%">${(line['label'] == True ) and line['code'] or ''}</td>
2200+ <td class="celdaLineDataNameView" colspan="6">${line['name'].upper() or line['name'].title() or ''}</td>
2201+ </tr>
2202+ %endif
2203+ %endfor
2204+</table>
2205+%endfor
2206+</body>
2207+</html>
2208
2209=== added file 'account_financial_report_webkit/report/afr_report_webkit_journal_ledger.mako'
2210--- account_financial_report_webkit/report/afr_report_webkit_journal_ledger.mako 1970-01-01 00:00:00 +0000
2211+++ account_financial_report_webkit/report/afr_report_webkit_journal_ledger.mako 2013-10-29 16:39:33 +0000
2212@@ -0,0 +1,127 @@
2213+<!DOCTYPE html SYSTEM
2214+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2215+<html xmlns="http://www.w3.org/1999/xhtml">
2216+<head>
2217+<style type="text/css">
2218+ ${css}
2219+</style>
2220+</head>
2221+
2222+<body style="border:0; margin: 0;" onload="subst()" >
2223+%for obj in objects:
2224+<table width="100%">
2225+ <tr>
2226+ <td>
2227+ <div>${helper.embed_image('jpeg',str(obj.company_id.logo),250, 120)}</div>
2228+ </td>
2229+ <td>
2230+ <table style="width: 100%; text-align:center;">
2231+ <tr><td><div class="td_company_title">${obj.company_id.name or ''|entity}</div></td></tr>
2232+ <tr><td><div class="td_company">${obj.get_parser_method('get_vat_by_country',data['form']) or ''|entity}</div></td></tr>
2233+ <tr><td><div class="td_company">${obj.get_parser_method('get_informe_text',data['form']) or ''| entity}</div></td></tr>
2234+ <tr><td><div class="td_company_date"> ${data['form'] and obj.get_parser_method('get_month',data['form']) or ''}</div></td></tr>
2235+ </table>
2236+ </td>
2237+ </tr>
2238+</table>
2239+
2240+<table width="100%">
2241+ <thead>
2242+ <tr>
2243+ <td class="celdaTituloTabla" style="width: 100%; text-align:left;">${_('Expressed in: %s') % (obj.get_parser_method('exchange_name',data['form'])) or ''|entity}</td>
2244+ </tr>
2245+ </thead>
2246+</table>
2247+<table width="100%">
2248+ <thead>
2249+ <tr>
2250+ <td class="celdaTituloTabla" style="text-align:right;" width="10%">${_('CODE')}</td>
2251+ <td class="celdaTituloTabla" width="50%">${_('ACCOUNT')}</td>
2252+ <td class="celdaTituloTabla" style="text-align:center;" width="10%">${_('INICIAL')}</td>
2253+ <td class="celdaTituloTabla" style="text-align:center;" width="10%">${_('DEBIT')}</td>
2254+ <td class="celdaTituloTabla" style="text-align:center;" width="10%">${_('CREDIT')}</td>
2255+ <td class="celdaTituloTabla" style="text-align:center;" width="10%">${_('BALANCE')}</td>
2256+ </tr>
2257+ </thead>
2258+</table>
2259+<table width="100%">
2260+ <thead>
2261+ <tr>
2262+ <td class="celdaTituloTabla" style="text-align:left;" width="10%">${_('DATE')}</td>
2263+ <td class="celdaTituloTabla" width="10%">${_('PERIOD')}</td>
2264+ <td class="celdaTituloTabla" width="40%">${_('JOURNAL ENTRY')}</td>
2265+ <td class="celdaTituloTabla" width="40%"></td>
2266+ </tr>
2267+ </thead>
2268+</table>
2269+
2270+<table width="100%">
2271+ <tr>
2272+ <td width="10%"></td>
2273+ <td width="10%"></td>
2274+ <td width="10%"></td>
2275+ <td width="10%"></td>
2276+ <td width="10%"></td>
2277+ <td width="10%"></td>
2278+ <td width="10%"></td>
2279+ <td width="10%"></td>
2280+ <td width="10%"></td>
2281+ <td width="10%"></td>
2282+ </tr>
2283+ %for line in obj.get_parser_method('lines',data['form']):
2284+ %if line['type']!= 'view':
2285+ <tbody>
2286+ <tr>
2287+ <td class="celdaLineDataTotal" style="text-align:right;font-style:italic;" width="10%">${line['code'] or ''}</td>
2288+ <td class="celdaLineDataNameTotal" colspan="5">${line['name'].upper() or line['name'].title() or ''}</td>
2289+ <td class="celdaLineDataTotal" width="10%">${formatLang(line['balanceinit'] and line['balanceinit'] * line.get('change_sign',1.0) or 0.0, digits=2, grouping=True) or ''}</td>
2290+ <td class="celdaLineDataTotal" width="10%"> ${formatLang(line['debit'], digits=2, grouping=True) or ''}</td>
2291+ <td class="celdaLineDataTotal" width="10%">${formatLang(line['credit'], digits=2, grouping=True) or ''}</td>
2292+ <td class="celdaLineDataTotal" width="10%">${formatLang(line['balance'] and line['balance'] * line.get('change_sign',1.0) or 0.0, digits=2, grouping=True) or ''}</td>
2293+ </tr>
2294+ </tbody>
2295+ %for j in line['journal']:
2296+ <tbody>
2297+ <tr>
2298+ <td class="celdaLineData" style="text-align:left;" width="10%" height="12pt">${formatLang( j['date'], date=True) or ''}</td>
2299+ <td class="celdaLineData" style="text-align:left;" width="10%">${j['period'] or ''}</td>
2300+ <td class="celdaLineDataNamePartner" colspan="4">${j['name'] or ''}</td>
2301+ <td class="celdaLineDataNamePartner" colspan="4"></td>
2302+ </tr>
2303+ </tbody>
2304+ %for k in j.get('obj').line_id:
2305+ <tbody>
2306+ %if k.account_id.name.upper() == line['name'].upper() :
2307+ <tr>
2308+ <td class="celdaLineDataAccountSimilar" style="text-align:left;" colspan="2">${k.name or ''}</td>
2309+ <td class="celdaLineDataAccountSimilar" style="text-align:left;">${k.ref and k.ref or ''}</td>
2310+ <td class="celdaLineDataAccountSimilar" colspan="2">${k.partner_id and k.partner_id.name or ''}</td>
2311+ <td class="celdaLineDataAccountSimilar" style="text-align:left;">${k.account_id and k.account_id.code or ''}</td>
2312+ <td class="celdaLineDataAccountSimilar" style="text-align:left;" >${k.account_id and k.account_id.name or ''}</td>
2313+ <td class="celdaLineDataAccountSimilar" style="text-align:right;" >${k.debit and formatLang(k.debit, digits=2, grouping=True) or ''}</td>
2314+ <td class="celdaLineDataAccountSimilar" style="text-align:right;" >${k.credit and formatLang(k.credit, digits=2, grouping=True) or ''}</td>
2315+ <td class="celdaLineDataAccountSimilar" style="text-align:right;" >${k.reconcile_id and k.reconcile_id.name or k.reconcile_partial_id and k.reconcile_partial_id.name or ''}</td>
2316+ </tr>
2317+ %else:
2318+ <tr>
2319+ <td class="celdaLineDataAccount" style="text-align:left;" colspan="2">${k.name or ''}</td>
2320+ <td class="celdaLineDataAccount" style="text-align:left;" >${k.ref and k.ref or ''}</td>
2321+ <td class="celdaLineDataAccount" colspan="2">${k.partner_id and k.partner_id.name or ''}</td>
2322+ <td class="celdaLineDataAccount" style="text-align:left;" >${k.account_id and k.account_id.code or ''}</td>
2323+ <td class="celdaLineDataAccount" style="text-align:left;" >${k.account_id and k.account_id.name or ''}</td>
2324+ <td class="celdaLineDataAccount" style="text-align:right;" >${k.debit and formatLang(k.debit, digits=2, grouping=True) or ''}</td>
2325+ <td class="celdaLineDataAccount" style="text-align:right;" >${k.credit and formatLang(k.credit, digits=2, grouping=True) or ''}</td>
2326+ <td class="celdaLineDataAccount" style="text-align:right;" >${k.reconcile_id and k.reconcile_id.name or k.reconcile_partial_id and k.reconcile_partial_id.name or ''}</td>
2327+ </tr>
2328+ %endif
2329+ </tbody>
2330+ %endfor
2331+ %endfor
2332+ %endif
2333+ %endfor
2334+</table>
2335+
2336+%endfor
2337+
2338+</body>
2339+</html>
2340
2341=== added file 'account_financial_report_webkit/report/afr_report_webkit_qtr.mako'
2342--- account_financial_report_webkit/report/afr_report_webkit_qtr.mako 1970-01-01 00:00:00 +0000
2343+++ account_financial_report_webkit/report/afr_report_webkit_qtr.mako 2013-10-29 16:39:33 +0000
2344@@ -0,0 +1,82 @@
2345+<!DOCTYPE html SYSTEM
2346+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2347+<html xmlns="http://www.w3.org/1999/xhtml">
2348+<head>
2349+<style type="text/css">
2350+ ${css}
2351+</style>
2352+</head>
2353+
2354+<body style="border:0; margin: 0;" onload="subst()" >
2355+
2356+
2357+<!--
2358+ <h1><center>4 QTR | YTD</center></h1>
2359+-->
2360+ %for obj in objects:
2361+ <table width="100%">
2362+ <tr>
2363+ <td width="30%">
2364+ <div>${helper.embed_image('jpeg',str(obj.company_id.logo),250, 120)}</div>
2365+ </td>
2366+ <td width="70%">
2367+ <table style="width: 100%; text-align:center;">
2368+ <tr><td><div class="td_company_title">${obj.company_id.name or ''|entity}</div></td></tr>
2369+ <tr><td><div class="td_company">${obj.get_parser_method('get_vat_by_country',data['form']) or ''|entity}</div></td></tr>
2370+ <tr><td><div class="td_company">${obj.get_parser_method('get_informe_text',data['form']) or ''| entity}</div></td></tr>
2371+ <tr><td><div class="td_company_date"> ${data['form'] and obj.get_parser_method('get_month',data['form']) or ''}</div></td></tr>
2372+ </table>
2373+ </td>
2374+ <td>
2375+ </td>
2376+ </tr>
2377+ </table>
2378+ <table width="100%">
2379+ <thead>
2380+ <tr>
2381+ <td class="celdaTituloTabla" colspan="7" style="text-align:left;">${_('Expressed in: %s') % (obj.get_parser_method('exchange_name',data['form'])) or ''|entity}</td>
2382+ </tr>
2383+ </thead>
2384+ <tbody>
2385+ <tr>
2386+ <td class="celdaTituloTabla" style="text-align:right;" width="10%">${_('CODE')}</td>
2387+ <td class="celdaTituloTabla" width="30%">${_('ACCOUNT')}</td>
2388+ <td class="celdaTituloTabla" style="text-align:center;" width="10%">${_('Q1')}</td>
2389+ <td class="celdaTituloTabla" style="text-align:center;" width="10%">${_('Q2')}</td>
2390+ <td class="celdaTituloTabla" style="text-align:center;" width="10%">${_('Q3')}</td>
2391+ <td class="celdaTituloTabla" style="text-align:center;" width="10%">${_('Q4')}</td>
2392+ <td class="celdaTituloTabla" style="text-align:center;" width="10%">${_('YTD')}</td>
2393+ </tr>
2394+ %for line in obj.get_parser_method('lines',data['form']):
2395+ %if line['type'] != 'view':
2396+ <tr class="prueba">
2397+ <td class="celdaLineData" style="text-align:right;font-style:italic;">${line['code'] or ''}</td>
2398+ <td class="celdaLineDataName" >${line['name'].upper() or line['name'].title()}</td>
2399+ <td class="celdaLineData" style="text-align:right;">${formatLang(line['bal1'] and (line['bal1'] * line.get('change_sign',1)) or 0.0, digits=2, grouping=True) or ''}</td>
2400+ <td class="celdaLineData" style="text-align:right;">${formatLang(line['bal2'] and line['bal2'] * line.get('change_sign',1) or 0.0, digits=2, grouping=True) or ''}</td>
2401+ <td class="celdaLineData" style="text-align:right;">${formatLang(line['bal3'] and line['bal3'] * line.get('change_sign',1) or 0.0, digits=2, grouping=True) or ''}</td>
2402+ <td class="celdaLineData" style="text-align:right;">${formatLang(line['bal4'] and line['bal4'] * line.get('change_sign',1) or 0.0, digits=2, grouping=True) or ''}</td>
2403+ <td class="celdaLineData" style="text-align:right;">${formatLang(line['bal5'] and line['bal5'] * line.get('change_sign',1) or 0.0, digits=2, grouping=True) or ''}</td>
2404+ </tr>
2405+ %elif line['total'] and not line['label']:
2406+ <tr class="prueba">
2407+ <td class="celdaLineDataTotal" style="text-align:right;font-style:italic;">${line['code'] or ''}</td>
2408+ <td class="celdaLineDataTotal" style="text-align:right;">${line['name'].upper() or line['name'].title() or ''}</td>
2409+ <td class="celdaLineDataTotal">${formatLang(line['bal1'] and (line['bal1'] * line.get('change_sign',1)) or 0.0, digits=2, grouping=True) or ''}</td>
2410+ <td class="celdaLineDataTotal">${formatLang(line['bal2'] and line['bal2'] * line.get('change_sign',1) or 0.0, digits=2, grouping=True) or ''}</td>
2411+ <td class="celdaLineDataTotal">${formatLang(line['bal3'] and line['bal3'] * line.get('change_sign',1) or 0.0, digits=2, grouping=True) or ''}</td>
2412+ <td class="celdaLineDataTotal">${formatLang(line['bal4'] and line['bal4'] * line.get('change_sign',1) or 0.0, digits=2, grouping=True) or ''}</td>
2413+ <td class="celdaLineDataTotal">${formatLang(line['bal5'] and line['bal5'] * line.get('change_sign',1) or 0.0, digits=2, grouping=True) or ''}</td>
2414+ </tr>
2415+ %else:
2416+ <tr class="prueba">
2417+ <i><td class="celdaLineDataView" style="text-align:right;font-style:italic;" width="10%">${line['code'] or ''}</td></i>
2418+ <td class="celdaLineDataNameView" colspan="6" >${line['name'].upper() or line['name'].title() or ''}</td>
2419+ </tr>
2420+ %endif
2421+ %endfor
2422+ </tbody>
2423+ </table>
2424+%endfor
2425+</body>
2426+</html>
2427
2428=== added file 'account_financial_report_webkit/report/report_afr.xml'
2429--- account_financial_report_webkit/report/report_afr.xml 1970-01-01 00:00:00 +0000
2430+++ account_financial_report_webkit/report/report_afr.xml 2013-10-29 16:39:33 +0000
2431@@ -0,0 +1,316 @@
2432+<?xml version="1.0"?>
2433+<openerp>
2434+ <data>
2435+ <report
2436+ auto = "True"
2437+ id="afr_report_col5"
2438+ model="wizard.report"
2439+ name="afr_report_col5"
2440+ file="account_financial_report_webkit/report/afr_report_webkit_cols5.mako"
2441+ string="Print AFR"
2442+ report_type="webkit"
2443+ multi="True"
2444+ menu="False"/>
2445+
2446+ <record id="property_afr_report_webkit1" model="ir.property">
2447+ <field name="name">webkit_header</field>
2448+ <field name="fields_id" ref="report_webkit.field_ir_act_report_xml_webkit_header"/>
2449+ <field eval="'ir.header_webkit,'+str(ref('account_financial_report_webkit.ir_header_webkit_afrreport_five_colums'))" model="ir.header_webkit" name="value"/>
2450+ <field eval="'ir.actions.report.xml,'+str(ref('account_financial_report_webkit.afr_report_col5'))" model="ir.actions.report.xml" name="res_id"/>
2451+ </record>
2452+
2453+ <report
2454+ auto = "True"
2455+ id="afr_report_col5_html"
2456+ model="wizard.report"
2457+ name="afr_report_col5_html"
2458+ file="account_financial_report_webkit/report/afr_report_webkit_cols5.mako"
2459+ string="Print AFR"
2460+ report_type="webkit"
2461+ multi="True"
2462+ menu="False"/>
2463+ <record id="afr_report_col5_html" model="ir.actions.report.xml">
2464+ <field name="webkit_debug">True</field>
2465+ <field name="precise_mode">True</field>
2466+ </record>
2467+ <record id="property_afr_report_webkit1_html" model="ir.property">
2468+ <field name="name">webkit_header</field>
2469+ <field name="fields_id" ref="report_webkit.field_ir_act_report_xml_webkit_header"/>
2470+ <field eval="'ir.header_webkit,'+str(ref('account_financial_report_webkit.ir_header_webkit_afrreport_five_colums'))" model="ir.header_webkit" name="value"/>
2471+ <field eval="'ir.actions.report.xml,'+str(ref('account_financial_report_webkit.afr_report_col5_html'))" model="ir.actions.report.xml" name="res_id"/>
2472+ </record>
2473+
2474+ <report
2475+ auto = "True"
2476+ id="afr_report_col1"
2477+ model="wizard.report"
2478+ name="afr_report_col1"
2479+ file="account_financial_report_webkit/report/afr_report_webkit_cols1.mako"
2480+ string="Print AFR"
2481+ report_type="webkit"
2482+ multi="True"
2483+ menu="False"/>
2484+
2485+ <record id="property_afr_report_webkit2" model="ir.property">
2486+ <field name="name">webkit_header</field>
2487+ <field name="fields_id" ref="report_webkit.field_ir_act_report_xml_webkit_header"/>
2488+ <field eval="'ir.header_webkit,'+str(ref('account_financial_report_webkit.ir_header_webkit_afrreport_one_colums'))" model="ir.header_webkit" name="value"/>
2489+ <field eval="'ir.actions.report.xml,'+str(ref('account_financial_report_webkit.afr_report_col1'))" model="ir.actions.report.xml" name="res_id"/>
2490+ </record>
2491+
2492+ <report
2493+ auto = "True"
2494+ id="afr_report_col1_html"
2495+ model="wizard.report"
2496+ name="afr_report_col1_html"
2497+ file="account_financial_report_webkit/report/afr_report_webkit_cols1.mako"
2498+ string="Print AFR"
2499+ report_type="webkit"
2500+ multi="True"
2501+ menu="False"/>
2502+ <record id="afr_report_col1_html" model="ir.actions.report.xml">
2503+ <field name="webkit_debug">True</field>
2504+ <field name="precise_mode">True</field>
2505+ </record>
2506+ <record id="property_afr_report_webkit2_html" model="ir.property">
2507+ <field name="name">webkit_header</field>
2508+ <field name="fields_id" ref="report_webkit.field_ir_act_report_xml_webkit_header"/>
2509+ <field eval="'ir.header_webkit,'+str(ref('account_financial_report_webkit.ir_header_webkit_afrreport_one_colums'))" model="ir.header_webkit" name="value"/>
2510+ <field eval="'ir.actions.report.xml,'+str(ref('account_financial_report_webkit.afr_report_col1_html'))" model="ir.actions.report.xml" name="res_id"/>
2511+ </record>
2512+
2513+ <report
2514+ auto = "True"
2515+ id="afr_report_col2"
2516+ model="wizard.report"
2517+ name="afr_report_col2"
2518+ file="account_financial_report_webkit/report/afr_report_webkit_cols2.mako"
2519+ string="Print AFR"
2520+ report_type="webkit"
2521+ multi="True"
2522+ menu="False"/>
2523+
2524+ <record id="property_afr_report_webkit3" model="ir.property">
2525+ <field name="name">webkit_header</field>
2526+ <field name="fields_id" ref="report_webkit.field_ir_act_report_xml_webkit_header"/>
2527+ <field eval="'ir.header_webkit,'+str(ref('account_financial_report_webkit.ir_header_webkit_afrreport_two_colums'))" model="ir.header_webkit" name="value"/>
2528+ <field eval="'ir.actions.report.xml,'+str(ref('account_financial_report_webkit.afr_report_col2'))" model="ir.actions.report.xml" name="res_id"/>
2529+ </record>
2530+
2531+ <report
2532+ auto = "True"
2533+ id="afr_report_col2_html"
2534+ model="wizard.report"
2535+ name="afr_report_col2_html"
2536+ file="account_financial_report_webkit/report/afr_report_webkit_cols2.mako"
2537+ string="Print AFR"
2538+ report_type="webkit"
2539+ multi="True"
2540+ menu="False"/>
2541+ <record id="afr_report_col2_html" model="ir.actions.report.xml">
2542+ <field name="webkit_debug">True</field>
2543+ <field name="precise_mode">True</field>
2544+ </record>
2545+ <record id="property_afr_report_webkit3_html" model="ir.property">
2546+ <field name="name">webkit_header</field>
2547+ <field name="fields_id" ref="report_webkit.field_ir_act_report_xml_webkit_header"/>
2548+ <field eval="'ir.header_webkit,'+str(ref('account_financial_report_webkit.ir_header_webkit_afrreport_two_colums'))" model="ir.header_webkit" name="value"/>
2549+ <field eval="'ir.actions.report.xml,'+str(ref('account_financial_report_webkit.afr_report_col2_html'))" model="ir.actions.report.xml" name="res_id"/>
2550+ </record>
2551+
2552+ <report
2553+ auto = "True"
2554+ id="afr_report_col4"
2555+ model="wizard.report"
2556+ name="afr_report_col4"
2557+ file="account_financial_report_webkit/report/afr_report_webkit_cols4.mako"
2558+ string="Print AFR"
2559+ report_type="webkit"
2560+ multi="True"
2561+ menu="False"/>
2562+
2563+ <record id="property_afr_report_webkit4" model="ir.property">
2564+ <field name="name">webkit_header</field>
2565+ <field name="fields_id" ref="report_webkit.field_ir_act_report_xml_webkit_header"/>
2566+ <field eval="'ir.header_webkit,'+str(ref('account_financial_report_webkit.ir_header_webkit_afrreport_four_colums'))" model="ir.header_webkit" name="value"/>
2567+ <field eval="'ir.actions.report.xml,'+str(ref('account_financial_report_webkit.afr_report_col4'))" model="ir.actions.report.xml" name="res_id"/>
2568+ </record>
2569+
2570+ <report
2571+ auto = "True"
2572+ id="afr_report_col4_html"
2573+ model="wizard.report"
2574+ name="afr_report_col4_html"
2575+ file="account_financial_report_webkit/report/afr_report_webkit_cols4.mako"
2576+ string="Print AFR"
2577+ report_type="webkit"
2578+ multi="True"
2579+ menu="False"/>
2580+ <record id="afr_report_col4_html" model="ir.actions.report.xml">
2581+ <field name="webkit_debug">True</field>
2582+ <field name="precise_mode">True</field>
2583+ </record>
2584+ <record id="property_afr_report_webkit4_html" model="ir.property">
2585+ <field name="name">webkit_header</field>
2586+ <field name="fields_id" ref="report_webkit.field_ir_act_report_xml_webkit_header"/>
2587+ <field eval="'ir.header_webkit,'+str(ref('account_financial_report_webkit.ir_header_webkit_afrreport_four_colums'))" model="ir.header_webkit" name="value"/>
2588+ <field eval="'ir.actions.report.xml,'+str(ref('account_financial_report_webkit.afr_report_col4_html'))" model="ir.actions.report.xml" name="res_id"/>
2589+ </record>
2590+
2591+ <report
2592+ auto = "True"
2593+ id="afr_report_journal_ledger"
2594+ model="wizard.report"
2595+ name="afr_report_journal_ledger"
2596+ file="account_financial_report_webkit/report/afr_report_webkit_journal_ledger.mako"
2597+ string="Print AFR"
2598+ report_type="webkit"
2599+ multi="True"
2600+ menu="False"/>
2601+
2602+ <record id="property_afr_report_webkit6" model="ir.property">
2603+ <field name="name">webkit_header</field>
2604+ <field name="fields_id" ref="report_webkit.field_ir_act_report_xml_webkit_header"/>
2605+ <field eval="'ir.header_webkit,'+str(ref('account_financial_report_webkit.ir_header_webkit_afrreport_journal_ledger'))" model="ir.header_webkit" name="value"/>
2606+ <field eval="'ir.actions.report.xml,'+str(ref('account_financial_report_webkit.afr_report_journal_ledger'))" model="ir.actions.report.xml" name="res_id"/>
2607+ </record>
2608+
2609+ <report
2610+ auto = "True"
2611+ id="afr_report_journal_ledger_html"
2612+ model="wizard.report"
2613+ name="afr_report_journal_ledger_html"
2614+ file="account_financial_report_webkit/report/afr_report_webkit_journal_ledger.mako"
2615+ string="Print AFR"
2616+ report_type="webkit"
2617+ multi="True"
2618+ menu="False"/>
2619+ <record id="afr_report_journal_ledger_html" model="ir.actions.report.xml">
2620+ <field name="webkit_debug">True</field>
2621+ <field name="precise_mode">True</field>
2622+ </record>
2623+ <record id="property_afr_report_webkit6_html" model="ir.property">
2624+ <field name="name">webkit_header</field>
2625+ <field name="fields_id" ref="report_webkit.field_ir_act_report_xml_webkit_header"/>
2626+ <field eval="'ir.header_webkit,'+str(ref('account_financial_report_webkit.ir_header_webkit_afrreport_journal_ledger'))" model="ir.header_webkit" name="value"/>
2627+ <field eval="'ir.actions.report.xml,'+str(ref('account_financial_report_webkit.afr_report_journal_ledger_html'))" model="ir.actions.report.xml" name="res_id"/>
2628+ </record>
2629+
2630+ <report
2631+ auto = "True"
2632+ id="afr_report_qtr"
2633+ model="wizard.report"
2634+ name="afr_report_qtr"
2635+ file="account_financial_report_webkit/report/afr_report_webkit_qtr.mako"
2636+ string="Print AFR"
2637+ report_type="webkit"
2638+ multi="True"
2639+ menu="False"/>
2640+
2641+ <record id="property_afr_report_webkit7" model="ir.property">
2642+ <field name="name">webkit_header</field>
2643+ <field name="fields_id" ref="report_webkit.field_ir_act_report_xml_webkit_header"/>
2644+ <field eval="'ir.header_webkit,'+str(ref('account_financial_report_webkit.ir_header_webkit_afrreport_qtr'))" model="ir.header_webkit" name="value"/>
2645+ <field eval="'ir.actions.report.xml,'+str(ref('account_financial_report_webkit.afr_report_qtr'))" model="ir.actions.report.xml" name="res_id"/>
2646+ </record>
2647+
2648+ <report
2649+ auto = "True"
2650+ id="afr_report_qtr_html"
2651+ model="wizard.report"
2652+ name="afr_report_qtr_html"
2653+ file="account_financial_report_webkit/report/afr_report_webkit_qtr.mako"
2654+ string="Print AFR"
2655+ report_type="webkit"
2656+ multi="True"
2657+ menu="False"/>
2658+ <record id="afr_report_qtr_html" model="ir.actions.report.xml">
2659+ <field name="webkit_debug">True</field>
2660+ <field name="precise_mode">True</field>
2661+ </record>
2662+ <record id="property_afr_report_webkit7_html" model="ir.property">
2663+ <field name="name">webkit_header</field>
2664+ <field name="fields_id" ref="report_webkit.field_ir_act_report_xml_webkit_header"/>
2665+ <field eval="'ir.header_webkit,'+str(ref('account_financial_report_webkit.ir_header_webkit_afrreport_qtr'))" model="ir.header_webkit" name="value"/>
2666+ <field eval="'ir.actions.report.xml,'+str(ref('account_financial_report_webkit.afr_report_qtr_html'))" model="ir.actions.report.xml" name="res_id"/>
2667+ </record>
2668+
2669+ <report
2670+ auto = "True"
2671+ id="afr_report_col13"
2672+ model="wizard.report"
2673+ name="afr_report_col13"
2674+ file="account_financial_report_webkit/report/afr_report_webkit_cols13.mako"
2675+ string="Print AFR"
2676+ report_type="webkit"
2677+ multi="True"
2678+ menu="False"/>
2679+
2680+ <record id="property_afr_report_webkit8" model="ir.property">
2681+ <field name="name">webkit_header</field>
2682+ <field name="fields_id" ref="report_webkit.field_ir_act_report_xml_webkit_header"/>
2683+ <field eval="'ir.header_webkit,'+str(ref('account_financial_report_webkit.ir_header_webkit_afrreport_col13'))" model="ir.header_webkit" name="value"/>
2684+ <field eval="'ir.actions.report.xml,'+str(ref('account_financial_report_webkit.afr_report_col13'))" model="ir.actions.report.xml" name="res_id"/>
2685+ </record>
2686+
2687+ <report
2688+ auto = "True"
2689+ id="afr_report_col13_html"
2690+ model="wizard.report"
2691+ name="afr_report_col13_html"
2692+ file="account_financial_report_webkit/report/afr_report_webkit_cols13.mako"
2693+ string="Print AFR"
2694+ report_type="webkit"
2695+ multi="True"
2696+ menu="False"/>
2697+ <record id="afr_report_col13_html" model="ir.actions.report.xml">
2698+ <field name="webkit_debug">True</field>
2699+ <field name="precise_mode">True</field>
2700+ </record>
2701+ <record id="property_afr_report_webkit8_html" model="ir.property">
2702+ <field name="name">webkit_header</field>
2703+ <field name="fields_id" ref="report_webkit.field_ir_act_report_xml_webkit_header"/>
2704+ <field eval="'ir.header_webkit,'+str(ref('account_financial_report_webkit.ir_header_webkit_afrreport_col13'))" model="ir.header_webkit" name="value"/>
2705+ <field eval="'ir.actions.report.xml,'+str(ref('account_financial_report_webkit.afr_report_col13_html'))" model="ir.actions.report.xml" name="res_id"/>
2706+ </record>
2707+
2708+ <report
2709+ auto = "True"
2710+ id="afr_report_analytic_ledger"
2711+ model="wizard.report"
2712+ name="afr_report_analytic_ledger"
2713+ file="account_financial_report_webkit/report/afr_report_webkit_analytic_ledger.mako"
2714+ string="Print AFR"
2715+ report_type="webkit"
2716+ multi="True"
2717+ menu="False"/>
2718+
2719+ <record id="property_afr_report_webkit9" model="ir.property">
2720+ <field name="name">webkit_header</field>
2721+ <field name="fields_id" ref="report_webkit.field_ir_act_report_xml_webkit_header"/>
2722+ <field eval="'ir.header_webkit,'+str(ref('account_financial_report_webkit.ir_header_webkit_afrreport_analytic_ledger'))" model="ir.header_webkit" name="value"/>
2723+ <field eval="'ir.actions.report.xml,'+str(ref('account_financial_report_webkit.afr_report_analytic_ledger'))" model="ir.actions.report.xml" name="res_id"/>
2724+ </record>
2725+
2726+ <report
2727+ auto = "True"
2728+ id="afr_report_analytic_ledger_html"
2729+ model="wizard.report"
2730+ name="afr_report_analytic_ledger_html"
2731+ file="account_financial_report_webkit/report/afr_report_webkit_analytic_ledger.mako"
2732+ string="Print AFR"
2733+ report_type="webkit"
2734+ multi="True"
2735+ menu="False"/>
2736+ <record id="afr_report_analytic_ledger_html" model="ir.actions.report.xml">
2737+ <field name="webkit_debug">True</field>
2738+ <field name="precise_mode">True</field>
2739+ </record>
2740+ <record id="property_afr_report_webkit9_html" model="ir.property">
2741+ <field name="name">webkit_header</field>
2742+ <field name="fields_id" ref="report_webkit.field_ir_act_report_xml_webkit_header"/>
2743+ <field eval="'ir.header_webkit,'+str(ref('account_financial_report_webkit.ir_header_webkit_afrreport_analytic_ledger'))" model="ir.header_webkit" name="value"/>
2744+ <field eval="'ir.actions.report.xml,'+str(ref('account_financial_report_webkit.afr_report_analytic_ledger_html'))" model="ir.actions.report.xml" name="res_id"/>
2745+ </record>
2746+ </data>
2747+</openerp>
2748
2749=== added directory 'account_financial_report_webkit/security'
2750=== added directory 'account_financial_report_webkit/static'
2751=== added directory 'account_financial_report_webkit/static/description'
2752=== added file 'account_financial_report_webkit/static/description/index.html'
2753=== added directory 'account_financial_report_webkit/static/src'
2754=== added directory 'account_financial_report_webkit/static/src/css'
2755=== added directory 'account_financial_report_webkit/static/src/img'
2756=== added directory 'account_financial_report_webkit/static/src/js'
2757=== added directory 'account_financial_report_webkit/static/src/xml'
2758=== added directory 'account_financial_report_webkit/test'
2759=== added directory 'account_financial_report_webkit/view'
2760=== added file 'account_financial_report_webkit/view/account_financial_report_view.xml'
2761--- account_financial_report_webkit/view/account_financial_report_view.xml 1970-01-01 00:00:00 +0000
2762+++ account_financial_report_webkit/view/account_financial_report_view.xml 2013-10-29 16:39:33 +0000
2763@@ -0,0 +1,15 @@
2764+<?xml version='1.0' encoding='UTF-8'?>
2765+<openerp>
2766+ <data>
2767+ <record model="ir.ui.view" id="wizard_report_view_inherit">
2768+ <field name="name">wizard.report.view.inherit</field>
2769+ <field name="model">wizard.report</field>
2770+ <field name="inherit_id" ref="account_financial_report.wizard_report_view"/>
2771+ <field name="arch" type="xml">
2772+ <xpath expr="//field[@name='journal_ledger']" position="after">
2773+ <field name="report_format"/>
2774+ </xpath>
2775+ </field>
2776+ </record>
2777+ </data>
2778+</openerp>
2779
2780=== added directory 'account_financial_report_webkit/wizard'
2781=== added file 'account_financial_report_webkit/wizard/__init__.py'
2782--- account_financial_report_webkit/wizard/__init__.py 1970-01-01 00:00:00 +0000
2783+++ account_financial_report_webkit/wizard/__init__.py 2013-10-29 16:39:33 +0000
2784@@ -0,0 +1,26 @@
2785+#!/usr/bin/python
2786+# -*- encoding: utf-8 -*-
2787+###############################################################################
2788+# Module Writen to OpenERP, Open Source Management Solution
2789+# Copyright (C) OpenERP Venezuela (<http://www.vauxoo.com>).
2790+# All Rights Reserved
2791+############# Credits #########################################################
2792+# Coded by: Yanina Aular <yani@vauxoo.com>
2793+# Planified by: Humberto Arocha <hbto@vauxoo.com>
2794+# Audited by: Humberto Arocha <hbto@vauxoo.com>
2795+###############################################################################
2796+# This program is free software: you can redistribute it and/or modify
2797+# it under the terms of the GNU Affero General Public License as published
2798+# by the Free Software Foundation, either version 3 of the License, or
2799+# (at your option) any later version.
2800+#
2801+# This program is distributed in the hope that it will be useful,
2802+# but WITHOUT ANY WARRANTY; without even the implied warranty of
2803+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2804+# GNU Affero General Public License for more details.
2805+#
2806+# You should have received a copy of the GNU Affero General Public License
2807+# along with this program. If not, see <http://www.gnu.org/licenses/>.
2808+###############################################################################
2809+
2810+import afr_report_wizard
2811
2812=== added file 'account_financial_report_webkit/wizard/afr_report_wizard.py'
2813--- account_financial_report_webkit/wizard/afr_report_wizard.py 1970-01-01 00:00:00 +0000
2814+++ account_financial_report_webkit/wizard/afr_report_wizard.py 2013-10-29 16:39:33 +0000
2815@@ -0,0 +1,118 @@
2816+#!/usr/bin/python
2817+# -*- encoding: utf-8 -*-
2818+###############################################################################
2819+# Module Writen to OpenERP, Open Source Management Solution
2820+# Copyright (C) OpenERP Venezuela (<http://www.vauxoo.com>).
2821+# All Rights Reserved
2822+############# Credits #########################################################
2823+# Coded by: Yanina Aular <yani@vauxoo.com>
2824+# Planified by: Humberto Arocha <hbto@vauxoo.com>
2825+# Audited by: Humberto Arocha <hbto@vauxoo.com>
2826+###############################################################################
2827+# This program is free software: you can redistribute it and/or modify
2828+# it under the terms of the GNU Affero General Public License as published
2829+# by the Free Software Foundation, either version 3 of the License, or
2830+# (at your option) any later version.
2831+#
2832+# This program is distributed in the hope that it will be useful,
2833+# but WITHOUT ANY WARRANTY; without even the implied warranty of
2834+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2835+# GNU Affero General Public License for more details.
2836+#
2837+# You should have received a copy of the GNU Affero General Public License
2838+# along with this program. If not, see <http://www.gnu.org/licenses/>.
2839+###############################################################################
2840+
2841+
2842+
2843+from osv import osv, fields
2844+import pooler
2845+import time
2846+from tools.translate import _
2847+from account_financial_report.report import parser as Parser
2848+
2849+
2850+class wizard_report(osv.osv_memory):
2851+ _inherit = "wizard.report"
2852+
2853+ _columns = {
2854+ 'report_format' : fields.selection([
2855+ ('pdf', 'PDF'),
2856+ ('spreadsheet', 'Spreadsheet')], 'Report Format')
2857+ }
2858+ def get_parser_method(self, cr, uid, ids, method=None, args=None, param=None, context=None):
2859+ if context is None:
2860+ context = {}
2861+
2862+ acc_bal_obj = Parser.account_balance(cr, uid, ids ,context=context)
2863+ res = []
2864+
2865+ if method:
2866+ if method in ("get_company_accounts", "_get_analytic_ledger", "_get_journal_ledger",
2867+ "lines"):
2868+ res = getattr(acc_bal_obj, method)(args, param)
2869+ else:
2870+ res = getattr(acc_bal_obj, method)(args)
2871+
2872+ return res
2873+
2874+ def print_report(self, cr, uid, ids, data, context=None):
2875+ if context is None:
2876+ context = {}
2877+
2878+ res = super(wizard_report, self).print_report(cr, uid, ids, data=data, context=context)
2879+
2880+ res.get('datas')['ids'] = ids
2881+
2882+ if( res.get('report_name') == 'afr.1cols'):
2883+ if (res.get('datas').get('form')['report_format'] == 'spreadsheet'):
2884+ res['report_name'] = 'afr_report_col1_html'
2885+ else:
2886+ res['report_name'] = 'afr_report_col1'
2887+
2888+ if( res.get('report_name') == 'afr.2cols'):
2889+ if (res.get('datas').get('form')['report_format'] == 'spreadsheet'):
2890+ res['report_name'] = 'afr_report_col2_html'
2891+ else:
2892+ res['report_name'] = 'afr_report_col2'
2893+
2894+ if( res.get('report_name') == 'afr.4cols'):
2895+ if (res.get('datas').get('form')['report_format'] == 'spreadsheet'):
2896+ res['report_name'] = 'afr_report_col4_html'
2897+ else:
2898+ res['report_name'] = 'afr_report_col4'
2899+
2900+ if( res.get('report_name') == 'afr.5cols'):
2901+ if (res.get('datas').get('form')['report_format'] == 'spreadsheet'):
2902+ res['report_name'] = 'afr_report_col5_html'
2903+ else:
2904+ res['report_name'] = 'afr_report_col5'
2905+
2906+ if( res.get('report_name') == 'afr.journal.ledger'):
2907+ if (res.get('datas').get('form')['report_format'] == 'spreadsheet'):
2908+ res['report_name'] = 'afr_report_journal_ledger_html'
2909+ else:
2910+ res['report_name'] = 'afr_report_journal_ledger'
2911+
2912+ if( res.get('report_name') == 'afr.analytic.ledger'):
2913+ if (res.get('datas').get('form')['report_format'] == 'spreadsheet'):
2914+ res['report_name'] = 'afr_report_analytic_ledger_html'
2915+ else:
2916+ res['report_name'] = 'afr_report_analytic_ledger'
2917+
2918+ if( res.get('report_name') == 'afr.qtrcols'):
2919+ if (res.get('datas').get('form')['report_format'] == 'spreadsheet'):
2920+ res['report_name'] = 'afr_report_qtr_html'
2921+ else:
2922+ res['report_name'] = 'afr_report_qtr'
2923+
2924+ if( res.get('report_name') == 'afr.13cols'):
2925+ if (res.get('datas').get('form')['report_format'] == 'spreadsheet'):
2926+ res['report_name'] = 'afr_report_col13_html'
2927+ else:
2928+ res['report_name'] = 'afr_report_col13'
2929+
2930+ return res
2931+
2932+
2933+
2934
2935=== added directory 'account_financial_report_webkit/workflow'