Merge lp:~openobject-italia-core-devs/openobject-italia/adding_l10n_it_prima_nota_cassa into lp:~openobject-italia-core-devs/openobject-italia/italian-addons

Proposed by Lorenzo Battistini
Status: Merged
Merged at revision: 171
Proposed branch: lp:~openobject-italia-core-devs/openobject-italia/adding_l10n_it_prima_nota_cassa
Merge into: lp:~openobject-italia-core-devs/openobject-italia/italian-addons
Diff against target: 1098 lines (+1030/-0)
13 files modified
l10n_it_prima_nota_cassa/AUTHORS.txt (+2/-0)
l10n_it_prima_nota_cassa/README.txt (+5/-0)
l10n_it_prima_nota_cassa/__init__.py (+24/-0)
l10n_it_prima_nota_cassa/__openerp__.py (+40/-0)
l10n_it_prima_nota_cassa/i18n/it.po (+214/-0)
l10n_it_prima_nota_cassa/i18n/l10n_it_prima_nota_cassa.pot (+214/-0)
l10n_it_prima_nota_cassa/report/__init__.py (+22/-0)
l10n_it_prima_nota_cassa/report/prima_nota_cassa.mako (+67/-0)
l10n_it_prima_nota_cassa/report/prima_nota_cassa.py (+307/-0)
l10n_it_prima_nota_cassa/reports.xml (+16/-0)
l10n_it_prima_nota_cassa/wizard/__init__.py (+22/-0)
l10n_it_prima_nota_cassa/wizard/wizard_print_prima_nota_cassa.py (+54/-0)
l10n_it_prima_nota_cassa/wizard/wizard_print_prima_nota_cassa.xml (+43/-0)
To merge this branch: bzr merge lp:~openobject-italia-core-devs/openobject-italia/adding_l10n_it_prima_nota_cassa
Reviewer Review Type Date Requested Status
OpenERP Italia core devs Pending
Review via email: mp+82651@code.launchpad.net
To post a comment you must log in.
122. By Lorenzo Battistini

[FIX] copyright

123. By Lorenzo Battistini

[FIX] removing revisions 120 and 121

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added directory 'l10n_it_prima_nota_cassa'
2=== added file 'l10n_it_prima_nota_cassa/AUTHORS.txt'
3--- l10n_it_prima_nota_cassa/AUTHORS.txt 1970-01-01 00:00:00 +0000
4+++ l10n_it_prima_nota_cassa/AUTHORS.txt 2012-03-17 17:27:18 +0000
5@@ -0,0 +1,2 @@
6+Leonardo Pistone <leonardo.pistone@domsense.com>
7+Lorenzo Battistini <lorenzo.battistini@domsense.com>
8
9=== added file 'l10n_it_prima_nota_cassa/README.txt'
10--- l10n_it_prima_nota_cassa/README.txt 1970-01-01 00:00:00 +0000
11+++ l10n_it_prima_nota_cassa/README.txt 2012-03-17 17:27:18 +0000
12@@ -0,0 +1,5 @@
13+Questo modulo usa report_webkit.
14+E' necessario installare wkhtmltopdf per la stampa dei reports.
15+
16+La versione inclusa in Ubuntu necessità di alcune patch, quindi è più agevole scaricare l'eseguibile binario dal sito del progetto:
17+http://code.google.com/p/wkhtmltopdf/
18
19=== added file 'l10n_it_prima_nota_cassa/__init__.py'
20--- l10n_it_prima_nota_cassa/__init__.py 1970-01-01 00:00:00 +0000
21+++ l10n_it_prima_nota_cassa/__init__.py 2012-03-17 17:27:18 +0000
22@@ -0,0 +1,24 @@
23+# -*- coding: utf-8 -*-
24+##############################################################################
25+#
26+# Copyright (C) 2011-2012 Associazione OpenERP Italia
27+# (<http://www.openerp-italia.org>).
28+# All Rights Reserved
29+#
30+# This program is free software: you can redistribute it and/or modify
31+# it under the terms of the GNU Affero General Public License as published by
32+# the Free Software Foundation, either version 3 of the License, or
33+# (at your option) any later version.
34+#
35+# This program is distributed in the hope that it will be useful,
36+# but WITHOUT ANY WARRANTY; without even the implied warranty of
37+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38+# GNU General Public License for more details.
39+#
40+# You should have received a copy of the GNU Affero General Public License
41+# along with this program. If not, see <http://www.gnu.org/licenses/>.
42+#
43+##############################################################################
44+
45+import report
46+import wizard
47
48=== added file 'l10n_it_prima_nota_cassa/__openerp__.py'
49--- l10n_it_prima_nota_cassa/__openerp__.py 1970-01-01 00:00:00 +0000
50+++ l10n_it_prima_nota_cassa/__openerp__.py 2012-03-17 17:27:18 +0000
51@@ -0,0 +1,40 @@
52+# -*- coding: utf-8 -*-
53+##############################################################################
54+#
55+# Copyright (C) 2011-2012 Associazione OpenERP Italia
56+# (<http://www.openerp-italia.org>).
57+# All Rights Reserved
58+#
59+# This program is free software: you can redistribute it and/or modify
60+# it under the terms of the GNU Affero General Public License as published by
61+# the Free Software Foundation, either version 3 of the License, or
62+# (at your option) any later version.
63+#
64+# This program is distributed in the hope that it will be useful,
65+# but WITHOUT ANY WARRANTY; without even the implied warranty of
66+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
67+# GNU General Public License for more details.
68+#
69+# You should have received a copy of the GNU Affero General Public License
70+# along with this program. If not, see <http://www.gnu.org/licenses/>.
71+#
72+##############################################################################
73+{
74+ 'name': 'Italian Localisation - Prima Nota Cassa',
75+ 'version': '0.1',
76+ 'category': 'Localisation/Italy',
77+ 'description': """Accounting reports - Prima Nota Cassa - Webkit""",
78+ 'author': 'OpenERP Italian Community',
79+ 'website': 'http://www.openerp-italia.org',
80+ 'license': 'AGPL-3',
81+ "depends" : ['account', 'report_webkit'],
82+ "init_xml" : [
83+ ],
84+ "update_xml" : [
85+ 'reports.xml',
86+ 'wizard/wizard_print_prima_nota_cassa.xml',
87+ ],
88+ "demo_xml" : [],
89+ "active": False,
90+ "installable": True
91+}
92
93=== added directory 'l10n_it_prima_nota_cassa/i18n'
94=== added file 'l10n_it_prima_nota_cassa/i18n/it.po'
95--- l10n_it_prima_nota_cassa/i18n/it.po 1970-01-01 00:00:00 +0000
96+++ l10n_it_prima_nota_cassa/i18n/it.po 2012-03-17 17:27:18 +0000
97@@ -0,0 +1,214 @@
98+# Translation of OpenERP Server.
99+# This file contains the translation of the following modules:
100+# * l10n_it_prima_nota_cassa
101+#
102+msgid ""
103+msgstr ""
104+"Project-Id-Version: OpenERP Server 6.0.2\n"
105+"Report-Msgid-Bugs-To: support@openerp.com\n"
106+"POT-Creation-Date: 2011-08-02 09:42+0000\n"
107+"PO-Revision-Date: 2011-08-02 12:02+0100\n"
108+"Last-Translator: Lorenzo Battistini <lorenzo.battistini@agilebg.com>\n"
109+"Language-Team: \n"
110+"MIME-Version: 1.0\n"
111+"Content-Type: text/plain; charset=UTF-8\n"
112+"Content-Transfer-Encoding: 8bit\n"
113+"Plural-Forms: \n"
114+
115+#. module: l10n_it_prima_nota_cassa
116+#: report:report.account.print.prima_nota_cassa:8
117+msgid "Prime entry"
118+msgstr "Prima nota"
119+
120+#. module: l10n_it_prima_nota_cassa
121+#: model:ir.module.module,shortdesc:l10n_it_prima_nota_cassa.module_meta_information
122+msgid "Italian Localisation - Prima Nota Cassa"
123+msgstr "Localizzazione Italiana - Prima Nota Cassa"
124+
125+#. module: l10n_it_prima_nota_cassa
126+#: view:account.report.prima_nota_cassa:0
127+msgid "This report prints a summary of all cash and bank moves in a given date or period range. It is possible to restrict analysis to single cash or bank accounts on the second tab."
128+msgstr "Questo report stampa un riassunto di tutti i movimenti di cassa e banca in un intervallo di date o periodo. E' possibile restringere l'analisi ai singoli sezionali nel secondo tab."
129+
130+#. module: l10n_it_prima_nota_cassa
131+#: report:report.account.print.prima_nota_cassa:43
132+#: code:addons/l10n_it_prima_nota_cassa/report/prima_nota_cassa.py:36
133+#, python-format
134+msgid "Debit"
135+msgstr "Entrate"
136+
137+#. module: l10n_it_prima_nota_cassa
138+#: report:report.account.print.prima_nota_cassa:16
139+msgid "Filter By"
140+msgstr "Filtro per"
141+
142+#. module: l10n_it_prima_nota_cassa
143+#: report:report.account.print.prima_nota_cassa:42
144+msgid "Entry Label"
145+msgstr "Descrizione"
146+
147+#. module: l10n_it_prima_nota_cassa
148+#: report:report.account.print.prima_nota_cassa:40
149+msgid "Ref"
150+msgstr "Rif"
151+
152+#. module: l10n_it_prima_nota_cassa
153+#: model:ir.model,name:l10n_it_prima_nota_cassa.model_account_report_prima_nota_cassa
154+msgid "Print Prima Nota Cassa"
155+msgstr "Stampa Prima Nota Cassa"
156+
157+#. module: l10n_it_prima_nota_cassa
158+#: selection:account.report.prima_nota_cassa,display_account:0
159+msgid "With balance is not equal to 0"
160+msgstr "Con saldo diverso da 0"
161+
162+#. module: l10n_it_prima_nota_cassa
163+#: model:ir.module.module,description:l10n_it_prima_nota_cassa.module_meta_information
164+msgid "Accounting reports - Prima Nota Cassa - Webkit"
165+msgstr "Stampe Contabili - Prima Nota Cassa - Webkit"
166+
167+#. module: l10n_it_prima_nota_cassa
168+#: report:report.account.print.prima_nota_cassa:15
169+msgid "Jounal"
170+msgstr "Sezionale"
171+
172+#. module: l10n_it_prima_nota_cassa
173+#: selection:account.report.prima_nota_cassa,filter:0
174+#: report:report.account.print.prima_nota_cassa:37
175+msgid "Date"
176+msgstr "Data"
177+
178+#. module: l10n_it_prima_nota_cassa
179+#: report:report.account.print.prima_nota_cassa:13
180+msgid "Chart of Account"
181+msgstr "Piano dei conti"
182+
183+#. module: l10n_it_prima_nota_cassa
184+#: field:account.report.prima_nota_cassa,journal_ids:0
185+msgid "Journals"
186+msgstr "Sezionali"
187+
188+#. module: l10n_it_prima_nota_cassa
189+#: field:account.report.prima_nota_cassa,target_move:0
190+#: report:report.account.print.prima_nota_cassa:17
191+msgid "Target Moves"
192+msgstr "Registrazioni target"
193+
194+#. module: l10n_it_prima_nota_cassa
195+#: help:account.report.prima_nota_cassa,chart_account_id:0
196+msgid "Select Charts of Accounts"
197+msgstr "Seleziona piano dei conti"
198+
199+#. module: l10n_it_prima_nota_cassa
200+#: field:account.report.prima_nota_cassa,date_to:0
201+msgid "End Date"
202+msgstr "Data fine"
203+
204+#. module: l10n_it_prima_nota_cassa
205+#: field:account.report.prima_nota_cassa,display_account:0
206+msgid "Display accounts"
207+msgstr "Visualizza conti"
208+
209+#. module: l10n_it_prima_nota_cassa
210+#: selection:account.report.prima_nota_cassa,target_move:0
211+msgid "All Posted Entries"
212+msgstr "Tutte le registrazioni confermate"
213+
214+#. module: l10n_it_prima_nota_cassa
215+#: help:account.report.prima_nota_cassa,fiscalyear_id:0
216+msgid "Keep empty for all open fiscal year"
217+msgstr "Lasciare vuoto per tutti gli anni fiscali aperti"
218+
219+#. module: l10n_it_prima_nota_cassa
220+#: report:report.account.print.prima_nota_cassa:44
221+msgid "Credit"
222+msgstr "Uscite"
223+
224+#. module: l10n_it_prima_nota_cassa
225+#: report:report.account.print.prima_nota_cassa:14
226+msgid "Fiscal Year"
227+msgstr "Anno fiscale"
228+
229+#. module: l10n_it_prima_nota_cassa
230+#: selection:account.report.prima_nota_cassa,filter:0
231+msgid "No Filters"
232+msgstr "Nessun filtro"
233+
234+#. module: l10n_it_prima_nota_cassa
235+#: field:account.report.prima_nota_cassa,chart_account_id:0
236+msgid "Chart of account"
237+msgstr "Piano dei conti"
238+
239+#. module: l10n_it_prima_nota_cassa
240+#: report:report.account.print.prima_nota_cassa:45
241+msgid "Balance"
242+msgstr "Saldo"
243+
244+#. module: l10n_it_prima_nota_cassa
245+#: view:account.report.prima_nota_cassa:0
246+#: model:ir.actions.act_window,name:l10n_it_prima_nota_cassa.action_account_prima_nota_cassa
247+#: model:ir.actions.report.xml,name:l10n_it_prima_nota_cassa.prima_nota_cassa
248+#: model:ir.ui.menu,name:l10n_it_prima_nota_cassa.menu_print_prima_nota_cassa
249+msgid "Prima Nota Cassa"
250+msgstr "Prima Nota Cassa"
251+
252+#. module: l10n_it_prima_nota_cassa
253+#: selection:account.report.prima_nota_cassa,display_account:0
254+msgid "With movements"
255+msgstr "Con registrazioni"
256+
257+#. module: l10n_it_prima_nota_cassa
258+#: selection:account.report.prima_nota_cassa,display_account:0
259+msgid "All"
260+msgstr "Tutti"
261+
262+#. module: l10n_it_prima_nota_cassa
263+#: field:account.report.prima_nota_cassa,period_from:0
264+msgid "Start period"
265+msgstr "Periodo di inizio"
266+
267+#. module: l10n_it_prima_nota_cassa
268+#: report:report.account.print.prima_nota_cassa:41
269+msgid "Move"
270+msgstr "Movimento"
271+
272+#. module: l10n_it_prima_nota_cassa
273+#: field:account.report.prima_nota_cassa,period_to:0
274+msgid "End period"
275+msgstr "Periodo di fine"
276+
277+#. module: l10n_it_prima_nota_cassa
278+#: field:account.report.prima_nota_cassa,fiscalyear_id:0
279+msgid "Fiscal year"
280+msgstr "Anno fiscale"
281+
282+#. module: l10n_it_prima_nota_cassa
283+#: selection:account.report.prima_nota_cassa,filter:0
284+msgid "Periods"
285+msgstr "Periodi"
286+
287+#. module: l10n_it_prima_nota_cassa
288+#: report:report.account.print.prima_nota_cassa:38
289+msgid "JRNL"
290+msgstr "JRNL"
291+
292+#. module: l10n_it_prima_nota_cassa
293+#: report:report.account.print.prima_nota_cassa:39
294+msgid "Partner"
295+msgstr "Partner"
296+
297+#. module: l10n_it_prima_nota_cassa
298+#: field:account.report.prima_nota_cassa,date_from:0
299+msgid "Start Date"
300+msgstr "Data inizio"
301+
302+#. module: l10n_it_prima_nota_cassa
303+#: field:account.report.prima_nota_cassa,filter:0
304+msgid "Filter by"
305+msgstr "Filtra per"
306+
307+#. module: l10n_it_prima_nota_cassa
308+#: selection:account.report.prima_nota_cassa,target_move:0
309+msgid "All Entries"
310+msgstr "Tutte le registrazioni"
311+
312
313=== added file 'l10n_it_prima_nota_cassa/i18n/l10n_it_prima_nota_cassa.pot'
314--- l10n_it_prima_nota_cassa/i18n/l10n_it_prima_nota_cassa.pot 1970-01-01 00:00:00 +0000
315+++ l10n_it_prima_nota_cassa/i18n/l10n_it_prima_nota_cassa.pot 2012-03-17 17:27:18 +0000
316@@ -0,0 +1,214 @@
317+# Translation of OpenERP Server.
318+# This file contains the translation of the following modules:
319+# * l10n_it_prima_nota_cassa
320+#
321+msgid ""
322+msgstr ""
323+"Project-Id-Version: OpenERP Server 6.0.2\n"
324+"Report-Msgid-Bugs-To: support@openerp.com\n"
325+"POT-Creation-Date: 2011-08-02 07:44+0000\n"
326+"PO-Revision-Date: 2011-08-02 07:44+0000\n"
327+"Last-Translator: <>\n"
328+"Language-Team: \n"
329+"MIME-Version: 1.0\n"
330+"Content-Type: text/plain; charset=UTF-8\n"
331+"Content-Transfer-Encoding: \n"
332+"Plural-Forms: \n"
333+
334+#. module: l10n_it_prima_nota_cassa
335+#: report:addons/l10n_it_prima_nota_cassa/report/prima_nota_cassa.mako:8
336+msgid "Prime entry"
337+msgstr ""
338+
339+#. module: l10n_it_prima_nota_cassa
340+#: model:ir.module.module,description:l10n_it_prima_nota_cassa.module_meta_information
341+msgid "Accounting reports - Prima Nota Cassa - Webkit"
342+msgstr ""
343+
344+#. module: l10n_it_prima_nota_cassa
345+#: view:account.report.prima_nota_cassa:0
346+msgid "This report prints a summary of all cash and bank moves in a given date or period range. It is possible to restrict analysis to single cash or bank accounts on the second tab."
347+msgstr ""
348+
349+#. module: l10n_it_prima_nota_cassa
350+#: report:addons/l10n_it_prima_nota_cassa/report/prima_nota_cassa.mako:43
351+#: code:addons/l10n_it_prima_nota_cassa/report/prima_nota_cassa.py:36
352+#, python-format
353+msgid "Debit"
354+msgstr ""
355+
356+#. module: l10n_it_prima_nota_cassa
357+#: report:addons/l10n_it_prima_nota_cassa/report/prima_nota_cassa.mako:16
358+msgid "Filter By"
359+msgstr ""
360+
361+#. module: l10n_it_prima_nota_cassa
362+#: report:addons/l10n_it_prima_nota_cassa/report/prima_nota_cassa.mako:42
363+msgid "Entry Label"
364+msgstr ""
365+
366+#. module: l10n_it_prima_nota_cassa
367+#: report:addons/l10n_it_prima_nota_cassa/report/prima_nota_cassa.mako:40
368+msgid "Ref"
369+msgstr ""
370+
371+#. module: l10n_it_prima_nota_cassa
372+#: model:ir.model,name:l10n_it_prima_nota_cassa.model_account_report_prima_nota_cassa
373+msgid "Print Prima Nota Cassa"
374+msgstr ""
375+
376+#. module: l10n_it_prima_nota_cassa
377+#: selection:account.report.prima_nota_cassa,display_account:0
378+msgid "With balance is not equal to 0"
379+msgstr ""
380+
381+#. module: l10n_it_prima_nota_cassa
382+#: report:addons/l10n_it_prima_nota_cassa/report/prima_nota_cassa.mako:15
383+msgid "Jounal"
384+msgstr ""
385+
386+#. module: l10n_it_prima_nota_cassa
387+#: model:ir.module.module,shortdesc:l10n_it_prima_nota_cassa.module_meta_information
388+msgid "Italian Localisation - Accounting Webkit reports"
389+msgstr ""
390+
391+#. module: l10n_it_prima_nota_cassa
392+#: selection:account.report.prima_nota_cassa,filter:0
393+#: report:addons/l10n_it_prima_nota_cassa/report/prima_nota_cassa.mako:37
394+msgid "Date"
395+msgstr ""
396+
397+#. module: l10n_it_prima_nota_cassa
398+#: report:addons/l10n_it_prima_nota_cassa/report/prima_nota_cassa.mako:13
399+msgid "Chart of Account"
400+msgstr ""
401+
402+#. module: l10n_it_prima_nota_cassa
403+#: field:account.report.prima_nota_cassa,journal_ids:0
404+msgid "Journals"
405+msgstr ""
406+
407+#. module: l10n_it_prima_nota_cassa
408+#: field:account.report.prima_nota_cassa,target_move:0
409+#: report:addons/l10n_it_prima_nota_cassa/report/prima_nota_cassa.mako:17
410+msgid "Target Moves"
411+msgstr ""
412+
413+#. module: l10n_it_prima_nota_cassa
414+#: help:account.report.prima_nota_cassa,chart_account_id:0
415+msgid "Select Charts of Accounts"
416+msgstr ""
417+
418+#. module: l10n_it_prima_nota_cassa
419+#: field:account.report.prima_nota_cassa,date_to:0
420+msgid "End Date"
421+msgstr ""
422+
423+#. module: l10n_it_prima_nota_cassa
424+#: field:account.report.prima_nota_cassa,display_account:0
425+msgid "Display accounts"
426+msgstr ""
427+
428+#. module: l10n_it_prima_nota_cassa
429+#: selection:account.report.prima_nota_cassa,target_move:0
430+msgid "All Posted Entries"
431+msgstr ""
432+
433+#. module: l10n_it_prima_nota_cassa
434+#: help:account.report.prima_nota_cassa,fiscalyear_id:0
435+msgid "Keep empty for all open fiscal year"
436+msgstr ""
437+
438+#. module: l10n_it_prima_nota_cassa
439+#: report:addons/l10n_it_prima_nota_cassa/report/prima_nota_cassa.mako:44
440+msgid "Credit"
441+msgstr ""
442+
443+#. module: l10n_it_prima_nota_cassa
444+#: report:addons/l10n_it_prima_nota_cassa/report/prima_nota_cassa.mako:14
445+msgid "Fiscal Year"
446+msgstr ""
447+
448+#. module: l10n_it_prima_nota_cassa
449+#: selection:account.report.prima_nota_cassa,filter:0
450+msgid "No Filters"
451+msgstr ""
452+
453+#. module: l10n_it_prima_nota_cassa
454+#: field:account.report.prima_nota_cassa,chart_account_id:0
455+msgid "Chart of account"
456+msgstr ""
457+
458+#. module: l10n_it_prima_nota_cassa
459+#: report:addons/l10n_it_prima_nota_cassa/report/prima_nota_cassa.mako:45
460+msgid "Balance"
461+msgstr ""
462+
463+#. module: l10n_it_prima_nota_cassa
464+#: view:account.report.prima_nota_cassa:0
465+#: model:ir.actions.act_window,name:l10n_it_prima_nota_cassa.action_account_prima_nota_cassa
466+#: model:ir.actions.report.xml,name:l10n_it_prima_nota_cassa.prima_nota_cassa
467+#: model:ir.ui.menu,name:l10n_it_prima_nota_cassa.menu_print_prima_nota_cassa
468+msgid "Prima Nota Cassa"
469+msgstr ""
470+
471+#. module: l10n_it_prima_nota_cassa
472+#: selection:account.report.prima_nota_cassa,display_account:0
473+msgid "With movements"
474+msgstr ""
475+
476+#. module: l10n_it_prima_nota_cassa
477+#: selection:account.report.prima_nota_cassa,display_account:0
478+msgid "All"
479+msgstr ""
480+
481+#. module: l10n_it_prima_nota_cassa
482+#: field:account.report.prima_nota_cassa,period_from:0
483+msgid "Start period"
484+msgstr ""
485+
486+#. module: l10n_it_prima_nota_cassa
487+#: report:addons/l10n_it_prima_nota_cassa/report/prima_nota_cassa.mako:41
488+msgid "Move"
489+msgstr ""
490+
491+#. module: l10n_it_prima_nota_cassa
492+#: field:account.report.prima_nota_cassa,period_to:0
493+msgid "End period"
494+msgstr ""
495+
496+#. module: l10n_it_prima_nota_cassa
497+#: field:account.report.prima_nota_cassa,fiscalyear_id:0
498+msgid "Fiscal year"
499+msgstr ""
500+
501+#. module: l10n_it_prima_nota_cassa
502+#: selection:account.report.prima_nota_cassa,filter:0
503+msgid "Periods"
504+msgstr ""
505+
506+#. module: l10n_it_prima_nota_cassa
507+#: report:addons/l10n_it_prima_nota_cassa/report/prima_nota_cassa.mako:38
508+msgid "JRNL"
509+msgstr ""
510+
511+#. module: l10n_it_prima_nota_cassa
512+#: report:addons/l10n_it_prima_nota_cassa/report/prima_nota_cassa.mako:39
513+msgid "Partner"
514+msgstr ""
515+
516+#. module: l10n_it_prima_nota_cassa
517+#: field:account.report.prima_nota_cassa,date_from:0
518+msgid "Start Date"
519+msgstr ""
520+
521+#. module: l10n_it_prima_nota_cassa
522+#: field:account.report.prima_nota_cassa,filter:0
523+msgid "Filter by"
524+msgstr ""
525+
526+#. module: l10n_it_prima_nota_cassa
527+#: selection:account.report.prima_nota_cassa,target_move:0
528+msgid "All Entries"
529+msgstr ""
530+
531
532=== added directory 'l10n_it_prima_nota_cassa/report'
533=== added file 'l10n_it_prima_nota_cassa/report/__init__.py'
534--- l10n_it_prima_nota_cassa/report/__init__.py 1970-01-01 00:00:00 +0000
535+++ l10n_it_prima_nota_cassa/report/__init__.py 2012-03-17 17:27:18 +0000
536@@ -0,0 +1,22 @@
537+# -*- coding: utf-8 -*-
538+##############################################################################
539+#
540+# Copyright (C) 2011-2012 Associazione OpenERP Italia
541+# (<http://www.openerp-italia.org>).
542+# All Rights Reserved
543+#
544+# This program is free software: you can redistribute it and/or modify
545+# it under the terms of the GNU Affero General Public License as published by
546+# the Free Software Foundation, either version 3 of the License, or
547+# (at your option) any later version.
548+#
549+# This program is distributed in the hope that it will be useful,
550+# but WITHOUT ANY WARRANTY; without even the implied warranty of
551+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
552+# GNU General Public License for more details.
553+#
554+# You should have received a copy of the GNU Affero General Public License
555+# along with this program. If not, see <http://www.gnu.org/licenses/>.
556+#
557+##############################################################################
558+import prima_nota_cassa
559
560=== added file 'l10n_it_prima_nota_cassa/report/prima_nota_cassa.mako'
561--- l10n_it_prima_nota_cassa/report/prima_nota_cassa.mako 1970-01-01 00:00:00 +0000
562+++ l10n_it_prima_nota_cassa/report/prima_nota_cassa.mako 2012-03-17 17:27:18 +0000
563@@ -0,0 +1,67 @@
564+<html>
565+<head>
566+ <style type="text/css">
567+ ${css}
568+ </style>
569+</head>
570+<body>
571+<h1 class="title">${_("Prime entry")} </h1>
572+## ${ ipdb(data) }
573+
574+<table class="basic_table" width="90%">
575+ <tr>
576+ <td>${ _("Chart of Account") }</td>
577+ <td>${ _("Fiscal Year") }</td>
578+ <td>${ _("Jounal")}</td>
579+ <td>${ _("Filter By") }</td>
580+ <td>${ _("Target Moves") }</td>
581+ </tr>
582+ <tr>
583+
584+ <td>${ get_account(data) or '' }</td>
585+ <td>${ get_fiscalyear(data) or '' }</td>
586+ <td>${ ', '.join([ lt or '' for lt in get_journal(data)]) }</td>
587+ <td>${ get_filter(data) or '' }</td>
588+ <td>${ get_target_move(data) }</td>
589+ </tr>
590+</table>
591+
592+<br />
593+
594+<div id="results">
595+ % for a in objects:
596+## ${ company.partner_id.lang }
597+ <% setLang(company.partner_id.lang) %>
598+ <table class="list_table" width="90%">
599+ <tr>
600+ <th> ${ _('Date') }</th>
601+ <th> ${ _('JRNL') }</th>
602+ <th> ${ _('Partner') }</th>
603+ <th> ${ _('Ref') }</th>
604+ <th> ${ _('Move') }</th>
605+ <th> ${ _('Entry Label') }</th>
606+ <th> ${ _('Debit') }</th>
607+ <th> ${ _('Credit') }</th>
608+ <th> ${ _('Balance') }</th>
609+ </tr>
610+
611+
612+ %for line in lines(a) :
613+ <tr style="page-break-inside: avoid; vertical-align:text-top;">
614+ <td>${ formatLang(line['ldate'], date=True) or ''|entity }</td>
615+ <td>${ line['jname'] or ''|entity }</td>
616+ <td>${ line['partner_name'] or ''|entity }</td>
617+ <td>${ line['lref'] or ''|entity }</td>
618+ <td>${ line['move'] or ''|entity }</td>
619+ <td>${ line['lname'] or ''|entity }</td>
620+ <td>${ formatLang(line['debit'], digits=get_digits(dp='Account')) |entity}</td>
621+ <td>${ formatLang(line['credit'], digits=get_digits(dp='Account')) |entity}</td>
622+ <td>${ line['debit'] - line['credit'] |entity}</td>
623+ </tr>
624+ %endfor
625+ </table>
626+ %endfor
627+ ## ${ ipdb(data) }
628+</div>
629+</body>
630+</html>
631
632=== added file 'l10n_it_prima_nota_cassa/report/prima_nota_cassa.py'
633--- l10n_it_prima_nota_cassa/report/prima_nota_cassa.py 1970-01-01 00:00:00 +0000
634+++ l10n_it_prima_nota_cassa/report/prima_nota_cassa.py 2012-03-17 17:27:18 +0000
635@@ -0,0 +1,307 @@
636+# -*- coding: utf-8 -*-
637+##############################################################################
638+#
639+# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
640+# Copyright (C) 2011-2012 Associazione OpenERP Italia
641+# (<http://www.openerp-italia.org>).
642+# All Rights Reserved
643+#
644+# This program is free software: you can redistribute it and/or modify
645+# it under the terms of the GNU Affero General Public License as published by
646+# the Free Software Foundation, either version 3 of the License, or
647+# (at your option) any later version.
648+#
649+# This program is distributed in the hope that it will be useful,
650+# but WITHOUT ANY WARRANTY; without even the implied warranty of
651+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
652+# GNU General Public License for more details.
653+#
654+# You should have received a copy of the GNU Affero General Public License
655+# along with this program. If not, see <http://www.gnu.org/licenses/>.
656+#
657+##############################################################################
658+
659+import time
660+from report import report_sxw
661+from account.report.common_report_header import common_report_header
662+from tools.translate import _
663+
664+class print_prima_nota_cassa(report_sxw.rml_parse, common_report_header):
665+ _name = 'report.account.prima_nota_cassa'
666+
667+ def set_context(self, objects, data, ids, report_type=None):
668+ new_ids = ids
669+ obj_move = self.pool.get('account.move.line')
670+ self.sortby = data['form'].get('sortby', 'sort_date')
671+ self.query = obj_move._query_get(self.cr, self.uid, obj='l', context=data['form'].get('used_context',{}))
672+ ctx2 = data['form'].get('used_context',{}).copy()
673+ print _('Debit')
674+ self.init_balance = data['form']['initial_balance']
675+ self.display_account = data['form']['display_account']
676+ self.target_move = data['form'].get('target_move', 'all')
677+ self.journal_ids = data['form'].get('journal_ids', [])
678+ ctx = self.context.copy()
679+ ctx['fiscalyear'] = data['form']['fiscalyear_id']
680+ if data['form']['filter'] == 'filter_period':
681+ ctx['periods'] = data['form']['periods']
682+ elif data['form']['filter'] == 'filter_date':
683+ ctx['date_from'] = data['form']['date_from']
684+ ctx['date_to'] = data['form']['date_to']
685+ ctx['state'] = data['form']['target_move']
686+ self.context.update(ctx)
687+ if (data['model'] == 'ir.ui.menu'):
688+ new_ids = [data['form']['chart_account_id']]
689+ objects = self.pool.get('account.account').browse(self.cr, self.uid, new_ids)
690+ return super(print_prima_nota_cassa, self).set_context(objects, data, new_ids, report_type=report_type)
691+
692+ def __init__(self, cr, uid, name, context=None):
693+ if context is None:
694+ context = {}
695+ super(print_prima_nota_cassa, self).__init__(cr, uid, name, context=context)
696+ self.query = ""
697+ self.tot_currency = 0.0
698+ self.period_sql = ""
699+ self.sold_accounts = {}
700+ self.sortby = 'sort_date'
701+ self.localcontext.update( {
702+ 'time': time,
703+ 'lines': self.lines,
704+ 'sum_debit_account': self._sum_debit_account,
705+ 'sum_credit_account': self._sum_credit_account,
706+ 'sum_balance_account': self._sum_balance_account,
707+ 'sum_currency_amount_account': self._sum_currency_amount_account,
708+# 'get_children_accounts': self.get_children_accounts,
709+ 'get_fiscalyear': self._get_fiscalyear,
710+ 'get_journal': self._get_journal,
711+ 'get_account': self._get_account,
712+ 'get_start_period': self.get_start_period,
713+ 'get_end_period': self.get_end_period,
714+ 'get_filter': self._get_filter,
715+ 'get_sortby': self._get_sortby,
716+ 'get_start_date':self._get_start_date,
717+ 'get_end_date':self._get_end_date,
718+ 'get_target_move': self._get_target_move,
719+ 'ipdb': self.ipdb
720+ })
721+ self.context = context
722+
723+ def ipdb(self, data):
724+ import ipdb;ipdb.set_trace()
725+ return 'LEP WAS HERE'
726+
727+ def _sum_currency_amount_account(self, account):
728+ self.cr.execute('SELECT sum(l.amount_currency) AS tot_currency \
729+ FROM account_move_line l \
730+ WHERE l.account_id = %s AND %s' %(account.id, self.query))
731+ sum_currency = self.cr.fetchone()[0] or 0.0
732+ if self.init_balance:
733+ self.cr.execute('SELECT sum(l.amount_currency) AS tot_currency \
734+ FROM account_move_line l \
735+ WHERE l.account_id = %s AND %s '%(account.id, self.init_query))
736+ sum_currency += self.cr.fetchone()[0] or 0.0
737+ return sum_currency
738+
739+ def get_children_accounts(self, account):
740+ """ Return all the accounts that are children of the chosen main one
741+ and are set as default for the selected cash and bank accounts"""
742+
743+ currency_obj = self.pool.get('res.currency')
744+ journal_obj = self.pool.get('account.journal')
745+
746+ cash_bank_journals = journal_obj.search(self.cr, self.uid, [ ('type','in',('bank','cash')) ] )
747+
748+ cash_bank_accounts = [journal_obj.browse(self.cr, self.uid, j).default_credit_account_id.id for j in cash_bank_journals] + \
749+ [journal_obj.browse(self.cr, self.uid, j).default_debit_account_id.id for j in cash_bank_journals]
750+
751+ ids_acc = [acc for acc in self.pool.get('account.account')._get_children_and_consol(self.cr, self.uid, account.id) \
752+ if acc in cash_bank_accounts]
753+
754+ currency = account.currency_id and account.currency_id or account.company_id.currency_id
755+
756+ return ids_acc
757+
758+ def lines(self, main_account):
759+ """ Return all the account_move_line of account with their account code counterparts """
760+ #import ipdb;ipdb.set_trace()
761+ account_ids = self.get_children_accounts(main_account)
762+
763+ move_state = ['draft','posted']
764+ if self.target_move == 'posted':
765+ move_state = ['posted', '']
766+
767+ # Then select all account_move_line of this account
768+ if self.sortby == 'sort_journal_partner':
769+ sql_sort='j.code, p.name, l.move_id'
770+ else:
771+ sql_sort='l.date, l.move_id'
772+ sql = """
773+ SELECT
774+ l.id AS lid,
775+ l.date AS ldate,
776+ j.code AS lcode,
777+ j.name AS jname,
778+ l.currency_id,
779+ l.amount_currency,
780+ l.ref AS lref,
781+ l.name AS lname,
782+ COALESCE(l.debit,0) AS debit,
783+ COALESCE(l.credit,0) AS credit,
784+ l.period_id AS lperiod_id,
785+ l.partner_id AS lpartner_id,
786+ m.name AS move_name,
787+ m.id AS mmove_id,
788+ per.code as period_code,
789+ c.symbol AS currency_code,
790+ i.id AS invoice_id,
791+ i.type AS invoice_type,
792+ i.number AS invoice_number,
793+ p.name AS partner_name
794+ FROM account_move_line l
795+ JOIN account_move m on (l.move_id=m.id)
796+ LEFT JOIN res_currency c on (l.currency_id=c.id)
797+ LEFT JOIN res_partner p on (l.partner_id=p.id)
798+ LEFT JOIN account_invoice i on (m.id =i.move_id)
799+ LEFT JOIN account_period per on (per.id=l.period_id)
800+ JOIN account_journal j on (l.journal_id=j.id)
801+ WHERE %s
802+ AND m.state IN %s
803+ AND l.account_id in %%s
804+ ORDER by %s
805+ """ %(self.query, tuple(move_state), sql_sort)
806+ self.cr.execute(sql, (tuple(account_ids),))
807+ res = self.cr.dictfetchall()
808+ for l in res:
809+ l['move'] = l['move_name'] != '/' and l['move_name'] or ('*'+str(l['mmove_id']))
810+ l['partner'] = l['partner_name'] or ''
811+ # Modification of amount Currency
812+ if l['credit'] > 0:
813+ if l['amount_currency'] != None:
814+ l['amount_currency'] = abs(l['amount_currency']) * -1
815+ if l['amount_currency'] != None:
816+ self.tot_currency = self.tot_currency + l['amount_currency']
817+ return res
818+
819+ def _sum_total_debit(self, account):
820+ move_state = ['draft','posted']
821+
822+ account_ids = self.get_children_accounts(main_account)
823+
824+ if self.target_move == 'posted':
825+ move_state = ['posted','']
826+ self.cr.execute('SELECT sum(debit) \
827+ FROM account_move_line l \
828+ JOIN account_move am ON (am.id = l.move_id) \
829+ WHERE (l.account_id = %s) \
830+ AND (am.state IN %s) \
831+ AND '+ self.query +' '
832+ ,(account.id, tuple(move_state)))
833+ sum_debit = self.cr.fetchone()[0] or 0.0
834+ if self.init_balance:
835+ self.cr.execute('SELECT sum(debit) \
836+ FROM account_move_line l \
837+ JOIN account_move am ON (am.id = l.move_id) \
838+ WHERE (l.account_id = %s) \
839+ AND (am.state IN %s) \
840+ AND '+ self.init_query +' '
841+ ,(account.id, tuple(move_state)))
842+ # Add initial balance to the result
843+ sum_debit += self.cr.fetchone()[0] or 0.0
844+ return sum_debit
845+
846+ def _sum_debit_account(self, account):
847+ if account.type == 'view':
848+ return account.debit
849+ move_state = ['draft','posted']
850+ if self.target_move == 'posted':
851+ move_state = ['posted','']
852+ self.cr.execute('SELECT sum(debit) \
853+ FROM account_move_line l \
854+ JOIN account_move am ON (am.id = l.move_id) \
855+ WHERE (l.account_id = %s) \
856+ AND (am.state IN %s) \
857+ AND '+ self.query +' '
858+ ,(account.id, tuple(move_state)))
859+ sum_debit = self.cr.fetchone()[0] or 0.0
860+ if self.init_balance:
861+ self.cr.execute('SELECT sum(debit) \
862+ FROM account_move_line l \
863+ JOIN account_move am ON (am.id = l.move_id) \
864+ WHERE (l.account_id = %s) \
865+ AND (am.state IN %s) \
866+ AND '+ self.init_query +' '
867+ ,(account.id, tuple(move_state)))
868+ # Add initial balance to the result
869+ sum_debit += self.cr.fetchone()[0] or 0.0
870+ return sum_debit
871+
872+ def _sum_credit_account(self, account):
873+ if account.type == 'view':
874+ return account.credit
875+ move_state = ['draft','posted']
876+ if self.target_move == 'posted':
877+ move_state = ['posted','']
878+ self.cr.execute('SELECT sum(credit) \
879+ FROM account_move_line l \
880+ JOIN account_move am ON (am.id = l.move_id) \
881+ WHERE (l.account_id = %s) \
882+ AND (am.state IN %s) \
883+ AND '+ self.query +' '
884+ ,(account.id, tuple(move_state)))
885+ sum_credit = self.cr.fetchone()[0] or 0.0
886+ if self.init_balance:
887+ self.cr.execute('SELECT sum(credit) \
888+ FROM account_move_line l \
889+ JOIN account_move am ON (am.id = l.move_id) \
890+ WHERE (l.account_id = %s) \
891+ AND (am.state IN %s) \
892+ AND '+ self.init_query +' '
893+ ,(account.id, tuple(move_state)))
894+ # Add initial balance to the result
895+ sum_credit += self.cr.fetchone()[0] or 0.0
896+ return sum_credit
897+
898+ def _sum_balance_account(self, account):
899+ if account.type == 'view':
900+ return account.balance
901+ move_state = ['draft','posted']
902+ if self.target_move == 'posted':
903+ move_state = ['posted','']
904+ self.cr.execute('SELECT (sum(debit) - sum(credit)) as tot_balance \
905+ FROM account_move_line l \
906+ JOIN account_move am ON (am.id = l.move_id) \
907+ WHERE (l.account_id = %s) \
908+ AND (am.state IN %s) \
909+ AND '+ self.query +' '
910+ ,(account.id, tuple(move_state)))
911+ sum_balance = self.cr.fetchone()[0] or 0.0
912+ if self.init_balance:
913+ self.cr.execute('SELECT (sum(debit) - sum(credit)) as tot_balance \
914+ FROM account_move_line l \
915+ JOIN account_move am ON (am.id = l.move_id) \
916+ WHERE (l.account_id = %s) \
917+ AND (am.state IN %s) \
918+ AND '+ self.init_query +' '
919+ ,(account.id, tuple(move_state)))
920+ # Add initial balance to the result
921+ sum_balance += self.cr.fetchone()[0] or 0.0
922+ return sum_balance
923+
924+ def _get_account(self, data):
925+ if data['model'] == 'account.account':
926+ return self.pool.get('account.account').browse(self.cr, self.uid, data['form']['id']).company_id.name
927+ return super(print_prima_nota_cassa ,self)._get_account(data)
928+
929+ def _get_sortby(self, data):
930+ if self.sortby == 'sort_date':
931+ return 'Date'
932+ elif self.sortby == 'sort_journal_partner':
933+ return 'Journal & Partner'
934+ return 'Date'
935+
936+report_sxw.report_sxw('report.account.print.prima_nota_cassa',
937+ 'account.account',
938+ 'addons/l10n_it_prima_nota_cassa/report/prima_nota_cassa.mako',
939+ parser=print_prima_nota_cassa)
940+
941+
942+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
943
944=== added file 'l10n_it_prima_nota_cassa/reports.xml'
945--- l10n_it_prima_nota_cassa/reports.xml 1970-01-01 00:00:00 +0000
946+++ l10n_it_prima_nota_cassa/reports.xml 2012-03-17 17:27:18 +0000
947@@ -0,0 +1,16 @@
948+<?xml version="1.0"?>
949+<openerp>
950+ <data>
951+
952+ <report
953+ auto="False"
954+ id="prima_nota_cassa"
955+ model="account.account"
956+ name="account.print.prima_nota_cassa"
957+ file="l10n_it_prima_nota_cassa/report/prima_nota_cassa.mako"
958+ string="Prima Nota Cassa"
959+ report_type="webkit" />
960+
961+ </data>
962+</openerp>
963+
964
965=== added directory 'l10n_it_prima_nota_cassa/wizard'
966=== added file 'l10n_it_prima_nota_cassa/wizard/__init__.py'
967--- l10n_it_prima_nota_cassa/wizard/__init__.py 1970-01-01 00:00:00 +0000
968+++ l10n_it_prima_nota_cassa/wizard/__init__.py 2012-03-17 17:27:18 +0000
969@@ -0,0 +1,22 @@
970+# -*- coding: utf-8 -*-
971+##############################################################################
972+#
973+# Copyright (C) 2011-2012 Associazione OpenERP Italia
974+# (<http://www.openerp-italia.org>).
975+# All Rights Reserved
976+#
977+# This program is free software: you can redistribute it and/or modify
978+# it under the terms of the GNU Affero General Public License as published by
979+# the Free Software Foundation, either version 3 of the License, or
980+# (at your option) any later version.
981+#
982+# This program is distributed in the hope that it will be useful,
983+# but WITHOUT ANY WARRANTY; without even the implied warranty of
984+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
985+# GNU General Public License for more details.
986+#
987+# You should have received a copy of the GNU Affero General Public License
988+# along with this program. If not, see <http://www.gnu.org/licenses/>.
989+#
990+##############################################################################
991+import wizard_print_prima_nota_cassa
992
993=== added file 'l10n_it_prima_nota_cassa/wizard/wizard_print_prima_nota_cassa.py'
994--- l10n_it_prima_nota_cassa/wizard/wizard_print_prima_nota_cassa.py 1970-01-01 00:00:00 +0000
995+++ l10n_it_prima_nota_cassa/wizard/wizard_print_prima_nota_cassa.py 2012-03-17 17:27:18 +0000
996@@ -0,0 +1,54 @@
997+# -*- coding: utf-8 -*-
998+##############################################################################
999+#
1000+# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
1001+# Copyright (C) 2011-2012 Associazione OpenERP Italia
1002+# (<http://www.openerp-italia.org>).
1003+# All Rights Reserved
1004+#
1005+# This program is free software: you can redistribute it and/or modify
1006+# it under the terms of the GNU Affero General Public License as published by
1007+# the Free Software Foundation, either version 3 of the License, or
1008+# (at your option) any later version.
1009+#
1010+# This program is distributed in the hope that it will be useful,
1011+# but WITHOUT ANY WARRANTY; without even the implied warranty of
1012+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1013+# GNU General Public License for more details.
1014+#
1015+# You should have received a copy of the GNU Affero General Public License
1016+# along with this program. If not, see <http://www.gnu.org/licenses/>.
1017+#
1018+##############################################################################
1019+
1020+from osv import fields, osv
1021+
1022+class account_report_prima_nota_cassa(osv.osv_memory):
1023+ _inherit = "account.common.account.report"
1024+ _name = 'account.report.prima_nota_cassa'
1025+ _description = "Print Prima Nota Cassa"
1026+
1027+
1028+ def _get_all_journal(self, cr, uid, context=None):
1029+ return self.pool.get('account.journal').search(cr, uid , [('type','in',['cash','bank'])] )
1030+
1031+ def _print_report(self, cr, uid, ids, data, context=None):
1032+ if context is None:
1033+ context = {}
1034+ data = self.pre_print_report(cr, uid, ids, data, context=context)
1035+ data['form'].update(self.read(cr, uid, ids, ['landscape', 'initial_balance', 'amount_currency', 'sortby'])[0])
1036+ if not data['form']['fiscalyear_id']:# GTK client problem onchange does not consider in save record
1037+ data['form'].update({'initial_balance': False})
1038+ return { 'type': 'ir.actions.report.xml', 'report_name': 'account.print.prima_nota_cassa', 'datas': data}
1039+
1040+ _columns = {
1041+
1042+ }
1043+ _defaults = {
1044+ 'journal_ids': _get_all_journal,
1045+ }
1046+
1047+
1048+account_report_prima_nota_cassa()
1049+
1050+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
1051
1052=== added file 'l10n_it_prima_nota_cassa/wizard/wizard_print_prima_nota_cassa.xml'
1053--- l10n_it_prima_nota_cassa/wizard/wizard_print_prima_nota_cassa.xml 1970-01-01 00:00:00 +0000
1054+++ l10n_it_prima_nota_cassa/wizard/wizard_print_prima_nota_cassa.xml 2012-03-17 17:27:18 +0000
1055@@ -0,0 +1,43 @@
1056+<?xml version="1.0" encoding="utf-8"?>
1057+<openerp>
1058+ <data>
1059+
1060+ <record id="account_report_prima_nota_cassa" model="ir.ui.view">
1061+ <field name="name">Print Prima Nota Cassa</field>
1062+ <field name="model">account.report.prima_nota_cassa</field>
1063+ <field name="type">form</field>
1064+ <field name="inherit_id" ref="account.account_common_report_view" />
1065+ <field name="arch" type="xml">
1066+ <data>
1067+ <xpath expr="/form/label[@string='']" position="replace">
1068+ <separator string="Prima Nota Cassa" colspan="4"/>
1069+ <label nolabel="1" colspan="4" string="This report prints a summary of all cash and bank moves in a given date or period range. It is possible to restrict analysis to single cash or bank accounts on the second tab."/>
1070+ </xpath>
1071+
1072+ <field name="journal_ids" position="replace">
1073+ <field name="journal_ids" domain="[('type','in',['cash'])]" />
1074+ </field>
1075+ </data>
1076+ </field>
1077+ </record>
1078+
1079+ <record id="action_account_prima_nota_cassa" model="ir.actions.act_window">
1080+ <field name="name">Prima Nota Cassa</field>
1081+ <field name="type">ir.actions.act_window</field>
1082+ <field name="res_model">account.report.prima_nota_cassa</field>
1083+ <field name="view_type">form</field>
1084+ <field name="view_mode">form</field>
1085+ <field name="view_id" ref="account_report_prima_nota_cassa"/>
1086+ <field name="target">new</field>
1087+ </record>
1088+
1089+ <menuitem
1090+ icon="STOCK_PRINT"
1091+ name="Prima Nota Cassa"
1092+ parent="account.menu_journals_report"
1093+ action="action_account_prima_nota_cassa"
1094+ groups="account.group_account_manager,account.group_account_user"
1095+ id="menu_print_prima_nota_cassa"
1096+ />
1097+</data>
1098+</openerp>