Merge lp:~scigghia/openobject-italia/6.1-new-riba-report into lp:~openobject-italia-core-devs/openobject-italia/italian-addons-6.1

Proposed by Andrea Cometa
Status: Rejected
Rejected by: Lorenzo Battistini
Proposed branch: lp:~scigghia/openobject-italia/6.1-new-riba-report
Merge into: lp:~openobject-italia-core-devs/openobject-italia/italian-addons-6.1
Diff against target: 162 lines (+78/-2)
5 files modified
l10n_it_ricevute_bancarie_report/i18n/it.po (+10/-0)
l10n_it_ricevute_bancarie_report/i18n/l10n_it_ricevute_bancarie_report.pot (+15/-2)
l10n_it_ricevute_bancarie_report/reports.xml (+10/-0)
l10n_it_ricevute_bancarie_report/riba_parser.py (+6/-0)
l10n_it_ricevute_bancarie_report/templates/riba_maturities_tot_summary.mako (+37/-0)
To merge this branch: bzr merge lp:~scigghia/openobject-italia/6.1-new-riba-report
Reviewer Review Type Date Requested Status
Lorenzo Battistini Disapprove
Review via email: mp+228803@code.launchpad.net

Description of the change

added new report for riba maturities (only totals by date)

To post a comment you must log in.
Revision history for this message
Lorenzo Battistini (elbati) wrote :

This project is now hosted on GitHub.
Please create a PR at https://github.com/OCA/l10n-italy/tree/6.1

review: Disapprove
Revision history for this message
Andrea Cometa (scigghia) wrote :

DOH!

Unmerged revisions

247. By Andrea Cometa

[l10n_it_ricevute_bancarie_report] aggiunto report sintetico totali scadenze

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'l10n_it_ricevute_bancarie_report/i18n/it.po'
2--- l10n_it_ricevute_bancarie_report/i18n/it.po 2014-05-22 10:01:42 +0000
3+++ l10n_it_ricevute_bancarie_report/i18n/it.po 2014-07-30 09:12:09 +0000
4@@ -21,6 +21,11 @@
5 msgstr "CLIENTE"
6
7 #. module: l10n_it_ricevute_bancarie_report
8+#: report:addons/l10n_it_ricevute_bancarie_report/templates/riba_maturities_tot_summary.mako:9
9+msgid "RIBA LIST MATURITIES TOTAL SUMMARY"
10+msgstr "RIEPILOGO TOTALI SCADENZE RIBA"
11+
12+#. module: l10n_it_ricevute_bancarie_report
13 #: report:addons/l10n_it_ricevute_bancarie_report/templates/riba_maturities_summary.mako:19
14 msgid "ROW nr"
15 msgstr "nr RIGA"
16@@ -66,6 +71,11 @@
17 msgstr "Data scadenza:"
18
19 #. module: l10n_it_ricevute_bancarie_report
20+#: model:ir.actions.report.xml,name:l10n_it_ricevute_bancarie_report.riba_maturities_tot_summary
21+msgid "Ri.Ba. Maturities Total Summary"
22+msgstr "Riepilogo Totali Scadenze Ri.Ba."
23+
24+#. module: l10n_it_ricevute_bancarie_report
25 #: model:ir.actions.report.xml,name:l10n_it_ricevute_bancarie_report.riba_maturities_summary
26 msgid "Ri.Ba. Maturities Summary"
27 msgstr "Riepilogo Scadenze Ri.Ba."
28
29=== modified file 'l10n_it_ricevute_bancarie_report/i18n/l10n_it_ricevute_bancarie_report.pot'
30--- l10n_it_ricevute_bancarie_report/i18n/l10n_it_ricevute_bancarie_report.pot 2014-05-22 10:01:42 +0000
31+++ l10n_it_ricevute_bancarie_report/i18n/l10n_it_ricevute_bancarie_report.pot 2014-07-30 09:12:09 +0000
32@@ -6,8 +6,8 @@
33 msgstr ""
34 "Project-Id-Version: OpenERP Server 6.1\n"
35 "Report-Msgid-Bugs-To: \n"
36-"POT-Creation-Date: 2014-05-22 09:57+0000\n"
37-"PO-Revision-Date: 2014-05-22 09:57+0000\n"
38+"POT-Creation-Date: 2014-07-30 09:02+0000\n"
39+"PO-Revision-Date: 2014-07-30 09:02+0000\n"
40 "Last-Translator: <>\n"
41 "Language-Team: \n"
42 "MIME-Version: 1.0\n"
43@@ -21,12 +21,18 @@
44 msgstr ""
45
46 #. module: l10n_it_ricevute_bancarie_report
47+#: report:addons/l10n_it_ricevute_bancarie_report/templates/riba_maturities_tot_summary.mako:9
48+msgid "RIBA LIST MATURITIES TOTAL SUMMARY"
49+msgstr ""
50+
51+#. module: l10n_it_ricevute_bancarie_report
52 #: report:addons/l10n_it_ricevute_bancarie_report/templates/riba_maturities_summary.mako:19
53 msgid "ROW nr"
54 msgstr ""
55
56 #. module: l10n_it_ricevute_bancarie_report
57 #: report:addons/l10n_it_ricevute_bancarie_report/templates/riba_maturities_summary.mako:40
58+#: report:addons/l10n_it_ricevute_bancarie_report/templates/riba_maturities_tot_summary.mako:24
59 msgid "DUE DATE TOTAL:"
60 msgstr ""
61
62@@ -37,6 +43,7 @@
63
64 #. module: l10n_it_ricevute_bancarie_report
65 #: report:addons/l10n_it_ricevute_bancarie_report/templates/riba_maturities_summary.mako:47
66+#: report:addons/l10n_it_ricevute_bancarie_report/templates/riba_maturities_tot_summary.mako:31
67 msgid "TOTAL:"
68 msgstr ""
69
70@@ -62,10 +69,16 @@
71
72 #. module: l10n_it_ricevute_bancarie_report
73 #: report:addons/l10n_it_ricevute_bancarie_report/templates/riba_maturities_summary.mako:15
74+#: report:addons/l10n_it_ricevute_bancarie_report/templates/riba_maturities_tot_summary.mako:15
75 msgid "Due date:"
76 msgstr ""
77
78 #. module: l10n_it_ricevute_bancarie_report
79+#: model:ir.actions.report.xml,name:l10n_it_ricevute_bancarie_report.riba_maturities_tot_summary
80+msgid "Ri.Ba. Maturities Total Summary"
81+msgstr ""
82+
83+#. module: l10n_it_ricevute_bancarie_report
84 #: model:ir.actions.report.xml,name:l10n_it_ricevute_bancarie_report.riba_maturities_summary
85 msgid "Ri.Ba. Maturities Summary"
86 msgstr ""
87
88=== modified file 'l10n_it_ricevute_bancarie_report/reports.xml'
89--- l10n_it_ricevute_bancarie_report/reports.xml 2014-05-22 09:49:41 +0000
90+++ l10n_it_ricevute_bancarie_report/reports.xml 2014-07-30 09:12:09 +0000
91@@ -334,5 +334,15 @@
92 webkit_header="riba_portrait_header"
93 />
94
95+ <report auto="False"
96+ id="riba_maturities_tot_summary"
97+ model="riba.distinta"
98+ name="riba.maturities_tot_summary"
99+ file="l10n_it_ricevute_bancarie_report/templates/riba_maturities_tot_summary.mako"
100+ string="Ri.Ba. Maturities Total Summary"
101+ report_type="webkit"
102+ webkit_header="riba_portrait_header"
103+ />
104+
105 </data>
106 </openerp>
107
108=== modified file 'l10n_it_ricevute_bancarie_report/riba_parser.py'
109--- l10n_it_ricevute_bancarie_report/riba_parser.py 2014-06-26 09:45:53 +0000
110+++ l10n_it_ricevute_bancarie_report/riba_parser.py 2014-07-30 09:12:09 +0000
111@@ -56,3 +56,9 @@
112 'l10n_it_ricevute_bancarie_report/template/\
113 riba_maturities_summary.mako',
114 parser=report_riba_webkit)
115+
116+report_sxw.report_sxw(
117+ 'report.riba.maturities_tot_summary', 'riba',
118+ 'l10n_it_ricevute_bancarie_report/template/\
119+riba_maturities_tot_summary.mako',
120+ parser=report_riba_webkit)
121
122=== added file 'l10n_it_ricevute_bancarie_report/templates/riba_maturities_tot_summary.mako'
123--- l10n_it_ricevute_bancarie_report/templates/riba_maturities_tot_summary.mako 1970-01-01 00:00:00 +0000
124+++ l10n_it_ricevute_bancarie_report/templates/riba_maturities_tot_summary.mako 2014-07-30 09:12:09 +0000
125@@ -0,0 +1,37 @@
126+<html>
127+<head>
128+ <style type="text/css">
129+ ${css}
130+ </style>
131+</head>
132+<body class="font_10" style="margin:0px;padding:0px;">
133+
134+ <p class="w100 centered" style="font-size: 24px;"><b>${_("RIBA LIST MATURITIES TOTAL SUMMARY")}</b></p>
135+
136+ <table class="w100">
137+ <%total=0%>
138+ %for due_date in sorted(group_riba_by_date(objects).keys()):
139+ <tr style="background-color: #cecece;">
140+ <td colspan="6">${_("Due date:")} ${due_date}</td>
141+ </tr>
142+ <%group_amount=0%>
143+ %for l in group_riba_by_date(objects)[due_date]:
144+ %if l.due_date == due_date:
145+ <%group_amount+=l.amount%>
146+ %endif
147+ %endfor
148+ <tr>
149+ <td colspan="5" align="right"><b>${_("DUE DATE TOTAL:")}</b></td>
150+ <td><b>${group_amount}</b></td>
151+ <%total+=group_amount%>
152+ </tr>
153+ %endfor
154+ <tr>
155+ <td colspan="4">&nbsp;</td>
156+ <td><b>${_("TOTAL:")}</b></td>
157+ <td><b>${total}</b></td>
158+ </tr>
159+
160+ </table>
161+</body>
162+</html>

Subscribers

People subscribed via source and target branches