Merge lp:~l-turchetti/openobject-italia/add_account_central_journal into lp:~openobject-italia-core-devs/openobject-italia/italian-addons-6.0

Proposed by Lorenzo Battistini
Status: Rejected
Rejected by: Lorenzo Battistini
Proposed branch: lp:~l-turchetti/openobject-italia/add_account_central_journal
Merge into: lp:~openobject-italia-core-devs/openobject-italia/italian-addons-6.0
Diff against target: 3618 lines (+3219/-79) (has conflicts)
39 files modified
account_central_journal/AUTHORS.txt (+1/-0)
account_central_journal/__init__.py (+25/-0)
account_central_journal/__openerp__.py (+47/-0)
account_central_journal/account.py (+44/-0)
account_central_journal/account_view.xml (+27/-0)
account_central_journal/i18n/account_central_journal.pot (+235/-0)
account_central_journal/i18n/it.po (+233/-0)
account_central_journal/report/__init__.py (+22/-0)
account_central_journal/report/central_journal_report.mako (+186/-0)
account_central_journal/report/central_journal_report.py (+88/-0)
account_central_journal/report/report.xml (+14/-0)
account_central_journal/report/webkit_model.xml (+107/-0)
account_central_journal/wizard/__init__.py (+22/-0)
account_central_journal/wizard/central_journal_report.py (+135/-0)
account_central_journal/wizard/central_journal_report.xml (+59/-0)
account_fiscal_year_closing/hide_account_wizards.xml (+4/-4)
account_fiscal_year_closing/i18n/de.po (+802/-0)
account_invoice_tax_by_column/test/account_tax.xml (+40/-0)
account_invoice_tax_by_column/test/tax_computation.yml (+37/-36)
l10n_it_account/__init__.py (+4/-4)
l10n_it_account/__openerp__.py (+7/-7)
l10n_it_account/account/__init__.py (+5/-5)
l10n_it_account/account/account.py (+22/-0)
l10n_it_account/account/invoice.py (+5/-5)
l10n_it_base/partner/data/res.partner.title.csv (+17/-17)
l10n_it_corrispettivi/__openerp__.py (+1/-1)
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)
Conflict adding file account_fiscal_year_closing/i18n/de.po.  Moved existing file to account_fiscal_year_closing/i18n/de.po.moved.
To merge this branch: bzr merge lp:~l-turchetti/openobject-italia/add_account_central_journal
Reviewer Review Type Date Requested Status
OpenERP Italia core devs Pending
Review via email: mp+112321@code.launchpad.net
To post a comment you must log in.

Unmerged revisions

174. By Loris Turchetti

[fix]corretta dipendenze,aggiunto report_webkit

173. By Loris Turchetti

[add]aggiunto modulo account_central_journal

172. By Lorenzo Battistini

[FIX] account_fiscal_year_closing - hiding old menu items

171. By Lorenzo Battistini

[ADD] l10n_it_prima_nota_cassa
merging lp:~openobject-italia-core-devs/openobject-italia/adding_l10n_it_prima_nota_cassa
moving not working revisions to lp:~openobject-italia-core-devs/openobject-italia/adding_l10n_it_prima_nota_cassa_trunk

170. By Lorenzo Battistini

[FIX] removing from test a non implemented scenario

169. By Lorenzo Battistini

[FIX] configuration for automated tests

168. By Lorenzo Battistini

[FIX] copyright

167. By Lorenzo Battistini

Removing dependency from account_sequence:
https://bugs.launchpad.net/openobject-italia/+bug/949900
https://bugs.launchpad.net/openobject-addons/+bug/950629
account_sequence will probably be a dependency of the 'libro giornale' module

166. By Lorenzo Battistini

[IMP] account_fiscal_year_closing error messages

165. By Lorenzo Battistini

[FIX] il module l10n_it_base da errore nell installazione sulla 6.1

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added directory 'account_central_journal'
2=== added file 'account_central_journal/AUTHORS.txt'
3--- account_central_journal/AUTHORS.txt 1970-01-01 00:00:00 +0000
4+++ account_central_journal/AUTHORS.txt 2012-06-27 10:42:57 +0000
5@@ -0,0 +1,1 @@
6+Daniele Arcangeli <d.arcangeli@isa.it>
7
8=== added file 'account_central_journal/__init__.py'
9--- account_central_journal/__init__.py 1970-01-01 00:00:00 +0000
10+++ account_central_journal/__init__.py 2012-06-27 10:42:57 +0000
11@@ -0,0 +1,25 @@
12+# -*- coding: utf-8 -*-
13+##############################################################################
14+#
15+# OpenERP, Open Source Management Solution
16+# Copyright (C) 2012 ISA s.r.l. (<http://www.isa.it>).
17+#
18+# This program is free software: you can redistribute it and/or modify
19+# it under the terms of the GNU Affero General Public License as
20+# published by the Free Software Foundation, either version 3 of the
21+# License, or (at your option) any later version.
22+#
23+# This program is distributed in the hope that it will be useful,
24+# but WITHOUT ANY WARRANTY; without even the implied warranty of
25+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26+# GNU Affero General Public License for more details.
27+#
28+# You should have received a copy of the GNU Affero General Public License
29+# along with this program. If not, see <http://www.gnu.org/licenses/>.
30+#
31+##############################################################################
32+
33+import account
34+import wizard
35+import report
36+
37
38=== added file 'account_central_journal/__openerp__.py'
39--- account_central_journal/__openerp__.py 1970-01-01 00:00:00 +0000
40+++ account_central_journal/__openerp__.py 2012-06-27 10:42:57 +0000
41@@ -0,0 +1,47 @@
42+# -*- coding: utf-8 -*-
43+##############################################################################
44+#
45+# OpenERP, Open Source Management Solution
46+# Copyright (C) 2011 ISA s.r.l. (<http://www.isa.it>).
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
50+# published by the Free Software Foundation, either version 3 of the
51+# License, or (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+{
64+ 'name': 'Account Central Journal',
65+ 'version': '3',
66+ 'author': "ISA S.r.l.",
67+ 'website': 'http://www.isa.it',
68+ 'category': 'Generic Modules/Accounting',
69+ 'description': """
70+Managing the printing of the "Central Journal" """,
71+ 'depends' : [
72+ 'base',
73+ 'account',
74+ 'report_webkit',
75+ ],
76+ 'init_xml' : [],
77+ 'update_xml': [
78+ 'report/report.xml',
79+ 'report/webkit_model.xml',
80+ 'wizard/central_journal_report.xml',
81+ 'account_view.xml',
82+ ],
83+ 'demo_xml': [],
84+ 'test':[],
85+ 'installable': True,
86+ 'active': False,
87+ 'certificate': '',
88+}
89
90=== added file 'account_central_journal/account.py'
91--- account_central_journal/account.py 1970-01-01 00:00:00 +0000
92+++ account_central_journal/account.py 2012-06-27 10:42:57 +0000
93@@ -0,0 +1,44 @@
94+# -*- coding: utf-8 -*-
95+##############################################################################
96+#
97+# OpenERP, Open Source Management Solution
98+# Copyright (C) 2012 ISA s.r.l. (<http://www.isa.it>).
99+#
100+# This program is free software: you can redistribute it and/or modify
101+# it under the terms of the GNU Affero General Public License as
102+# published by the Free Software Foundation, either version 3 of the
103+# License, or (at your option) any later version.
104+#
105+# This program is distributed in the hope that it will be useful,
106+# but WITHOUT ANY WARRANTY; without even the implied warranty of
107+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
108+# GNU Affero General Public License for more details.
109+#
110+# You should have received a copy of the GNU Affero General Public License
111+# along with this program. If not, see <http://www.gnu.org/licenses/>.
112+#
113+##############################################################################
114+
115+from osv import fields, osv
116+from tools.translate import _
117+import decimal_precision as dp
118+
119+class account_fiscalyear(osv.osv):
120+ _inherit = "account.fiscalyear"
121+ _description = "Fiscal Year"
122+ _columns = {
123+ 'date_last_print': fields.date('Last printed date', readonly=True),
124+ 'progressive_page_number': fields.integer('Progressive of the page', required=True, readonly=True),
125+ 'progressive_line_number': fields.integer('Progressive line', required=True, readonly=True),
126+ 'progressive_credit': fields.float('Progressive Credit', digits_compute=dp.get_precision('Account'), required=True, readonly=True),
127+ 'progressive_debit': fields.float('Progressive Debit', digits_compute=dp.get_precision('Account'), required=True, readonly=True),
128+ }
129+
130+ _defaults = {
131+ 'progressive_page_number': 0,
132+ 'progressive_line_number': 0,
133+ 'progressive_credit': lambda *a: float(),
134+ 'progressive_debit': lambda *a: float(),
135+ }
136+
137+account_fiscalyear()
138
139=== added file 'account_central_journal/account_view.xml'
140--- account_central_journal/account_view.xml 1970-01-01 00:00:00 +0000
141+++ account_central_journal/account_view.xml 2012-06-27 10:42:57 +0000
142@@ -0,0 +1,27 @@
143+<?xml version="1.0" encoding="utf-8"?>
144+<openerp>
145+ <data>
146+
147+ <!--
148+ Account Fiscal Year inheritancy
149+ -->
150+
151+ <record id="account_central_journal_form_view" model="ir.ui.view">
152+ <field name="name">account.central.journal.form</field>
153+ <field name="model">account.fiscalyear</field>
154+ <field name="inherit_id" ref="account.view_account_fiscalyear_form"/>
155+ <field name="arch" type="xml">
156+ <field name="end_journal_period_id" position="after">
157+ <separator colspan="4" string="Central journal info"/>
158+ <field name="date_last_print"/>
159+ <newline/>
160+ <field name="progressive_page_number"/>
161+ <field name="progressive_line_number"/>
162+ <field name="progressive_credit"/>
163+ <field name="progressive_debit"/>
164+ </field>
165+ </field>
166+ </record>
167+
168+ </data>
169+</openerp>
170
171=== added directory 'account_central_journal/i18n'
172=== added file 'account_central_journal/i18n/account_central_journal.pot'
173--- account_central_journal/i18n/account_central_journal.pot 1970-01-01 00:00:00 +0000
174+++ account_central_journal/i18n/account_central_journal.pot 2012-06-27 10:42:57 +0000
175@@ -0,0 +1,235 @@
176+# Translation of OpenERP Server.
177+# This file contains the translation of the following modules:
178+# * account_central_journal
179+#
180+msgid ""
181+msgstr ""
182+"Project-Id-Version: OpenERP Server 6.0.3\n"
183+"Report-Msgid-Bugs-To: support@openerp.com\n"
184+"POT-Creation-Date: 2012-03-16 14:39+0000\n"
185+"PO-Revision-Date: 2012-03-16 14:39+0000\n"
186+"Last-Translator: <>\n"
187+"Language-Team: \n"
188+"MIME-Version: 1.0\n"
189+"Content-Type: text/plain; charset=UTF-8\n"
190+"Content-Transfer-Encoding: \n"
191+"Plural-Forms: \n"
192+
193+#. module: account_central_journal
194+#: model:ir.actions.act_window,name:account_central_journal.central_journal_report_action
195+#: model:ir.ui.menu,name:account_central_journal.menu_central_journal_report_action
196+msgid "Print Central Journal"
197+msgstr ""
198+
199+#. module: account_central_journal
200+#: report:report.central_journal_report:135
201+msgid "Account code"
202+msgstr ""
203+
204+#. module: account_central_journal
205+#: report:report.central_journal_report:144
206+#: report:report.central_journal_report:170
207+msgid "Progressives =>"
208+msgstr ""
209+
210+#. module: account_central_journal
211+#: model:ir.model,name:account_central_journal.model_central_journal_report
212+#: model:ir.model,name:account_central_journal.model_wizard_central_journal_report
213+#: view:wizard.central.journal.report:0
214+msgid "Printing parameters of the Center Journal"
215+msgstr ""
216+
217+#. module: account_central_journal
218+#: field:wizard.central.journal.report,print_state:0
219+msgid "State"
220+msgstr ""
221+
222+#. module: account_central_journal
223+#: selection:wizard.central.journal.report,print_state:0
224+msgid "Draft"
225+msgstr ""
226+
227+#. module: account_central_journal
228+#: report:report.central_journal_report:134
229+msgid "Account move"
230+msgstr ""
231+
232+#. module: account_central_journal
233+#: report:report.central_journal_report:138
234+msgid "Debit"
235+msgstr ""
236+
237+#. module: account_central_journal
238+#: view:wizard.central.journal.report:0
239+msgid "Print"
240+msgstr ""
241+
242+#. module: account_central_journal
243+#: field:account.fiscalyear,progressive_credit:0
244+msgid "Progressive Credit"
245+msgstr ""
246+
247+#. module: account_central_journal
248+#: model:ir.module.module,description:account_central_journal.module_meta_information
249+msgid "\n"
250+"Managing the printing of the \"Central Journal\" "
251+msgstr ""
252+
253+#. module: account_central_journal
254+#: constraint:account.fiscalyear:0
255+msgid "Error! You cannot define overlapping fiscal years"
256+msgstr ""
257+
258+#. module: account_central_journal
259+#: report:report.central_journal_report:133
260+msgid "Ref"
261+msgstr ""
262+
263+#. module: account_central_journal
264+#: field:account.fiscalyear,date_last_print:0
265+msgid "Last printed date"
266+msgstr ""
267+
268+#. module: account_central_journal
269+#: selection:wizard.central.journal.report,print_state:0
270+msgid "Printed"
271+msgstr ""
272+
273+#. module: account_central_journal
274+#: report:report.central_journal_report:136
275+msgid "Account name"
276+msgstr ""
277+
278+#. module: account_central_journal
279+#: report:report.central_journal_report:132
280+msgid "Date"
281+msgstr ""
282+
283+#. module: account_central_journal
284+#: code:addons/account_central_journal/wizard/central_journal_report.py:51
285+#: code:addons/account_central_journal/wizard/central_journal_report.py:54
286+#, python-format
287+msgid "Wrong dates !"
288+msgstr ""
289+
290+#. module: account_central_journal
291+#: view:wizard.central.journal.report:0
292+msgid "Dates movements"
293+msgstr ""
294+
295+#. module: account_central_journal
296+#: field:account.fiscalyear,progressive_debit:0
297+msgid "Progressive Debit"
298+msgstr ""
299+
300+#. module: account_central_journal
301+#: report:report.central_journal_report:124
302+#: field:wizard.central.journal.report,date_move_line_to:0
303+msgid "to date"
304+msgstr ""
305+
306+#. module: account_central_journal
307+#: report:report.central_journal_report:137
308+msgid "Name"
309+msgstr ""
310+
311+#. module: account_central_journal
312+#: model:ir.module.module,shortdesc:account_central_journal.module_meta_information
313+msgid "Account Central Journal"
314+msgstr ""
315+
316+#. module: account_central_journal
317+#: field:account.fiscalyear,progressive_line_number:0
318+msgid "Progressive line"
319+msgstr ""
320+
321+#. module: account_central_journal
322+#: code:addons/account_central_journal/wizard/central_journal_report.py:54
323+#, python-format
324+msgid "The end date can not be greater than today's date."
325+msgstr ""
326+
327+#. module: account_central_journal
328+#: report:report.central_journal_report:139
329+msgid "Credit"
330+msgstr ""
331+
332+#. module: account_central_journal
333+#: model:ir.model,name:account_central_journal.model_account_fiscalyear
334+#: field:wizard.central.journal.report,fiscalyear:0
335+msgid "Fiscal Year"
336+msgstr ""
337+
338+#. module: account_central_journal
339+#: constraint:account.fiscalyear:0
340+msgid "Error! The duration of the Fiscal Year is invalid. "
341+msgstr ""
342+
343+#. module: account_central_journal
344+#: code:addons/account_central_journal/wizard/central_journal_report.py:51
345+#, python-format
346+msgid "The end date must be greater than the initial date."
347+msgstr ""
348+
349+#. module: account_central_journal
350+#: view:wizard.central.journal.report:0
351+msgid "Reference"
352+msgstr ""
353+
354+#. module: account_central_journal
355+#: model:ir.actions.report.xml,name:account_central_journal.central_journal_report_id
356+msgid "central_journal"
357+msgstr ""
358+
359+#. module: account_central_journal
360+#: field:account.fiscalyear,progressive_page_number:0
361+msgid "Progressive of the page"
362+msgstr ""
363+
364+#. module: account_central_journal
365+#: report:report.central_journal_report:124
366+msgid "TEST PRINTING"
367+msgstr ""
368+
369+#. module: account_central_journal
370+#: view:account.fiscalyear:0
371+msgid "Central journal info"
372+msgstr ""
373+
374+#. module: account_central_journal
375+#: report:report.central_journal_report:127
376+msgid "Page:"
377+msgstr ""
378+
379+#. module: account_central_journal
380+#: report:report.central_journal_report:124
381+#: field:wizard.central.journal.report,date_move_line_from:0
382+#: field:wizard.central.journal.report,date_move_line_from_view:0
383+msgid "From date"
384+msgstr ""
385+
386+#. module: account_central_journal
387+#: selection:wizard.central.journal.report,print_state:0
388+msgid "Ready for printing"
389+msgstr ""
390+
391+#. module: account_central_journal
392+#: view:wizard.central.journal.report:0
393+msgid "Cancel"
394+msgstr ""
395+
396+#. module: account_central_journal
397+#: report:report.central_journal_report:131
398+msgid "Row"
399+msgstr ""
400+
401+#. module: account_central_journal
402+#: view:wizard.central.journal.report:0
403+msgid "Final print"
404+msgstr ""
405+
406+#. module: account_central_journal
407+#: report:report.central_journal_report:116
408+msgid "ACCOUNT JOURNAL"
409+msgstr ""
410+
411
412=== added file 'account_central_journal/i18n/it.mo'
413Binary files account_central_journal/i18n/it.mo 1970-01-01 00:00:00 +0000 and account_central_journal/i18n/it.mo 2012-06-27 10:42:57 +0000 differ
414=== added file 'account_central_journal/i18n/it.po'
415--- account_central_journal/i18n/it.po 1970-01-01 00:00:00 +0000
416+++ account_central_journal/i18n/it.po 2012-06-27 10:42:57 +0000
417@@ -0,0 +1,233 @@
418+msgid ""
419+msgstr ""
420+"Project-Id-Version: Account Central Journal\n"
421+"Report-Msgid-Bugs-To: support@openerp.com\n"
422+"POT-Creation-Date: 2012-03-16 14:39+0000\n"
423+"PO-Revision-Date: \n"
424+"Last-Translator: Daniele Arcangeli <d.arcangeli@isa.it>\n"
425+"Language-Team: \n"
426+"MIME-Version: 1.0\n"
427+"Content-Type: text/plain; charset=UTF-8\n"
428+"Content-Transfer-Encoding: 8bit\n"
429+
430+#. module: account_central_journal
431+#: model:ir.actions.act_window,name:account_central_journal.central_journal_report_action
432+#: model:ir.ui.menu,name:account_central_journal.menu_central_journal_report_action
433+msgid "Print Central Journal"
434+msgstr "Giornale Centralizzato"
435+
436+#. module: account_central_journal
437+#: report:report.central_journal_report:135
438+msgid "Account code"
439+msgstr "Codice Conto"
440+
441+#. module: account_central_journal
442+#: report:report.central_journal_report:144
443+#: report:report.central_journal_report:170
444+msgid "Progressives =>"
445+msgstr "Progressivi =>"
446+
447+#. module: account_central_journal
448+#: model:ir.model,name:account_central_journal.model_central_journal_report
449+#: model:ir.model,name:account_central_journal.model_wizard_central_journal_report
450+#: view:wizard.central.journal.report:0
451+msgid "Printing parameters of the Center Journal"
452+msgstr "Parametri di stampa del Giornale Centralizzato"
453+
454+#. module: account_central_journal
455+#: field:wizard.central.journal.report,print_state:0
456+msgid "State"
457+msgstr "Stato"
458+
459+#. module: account_central_journal
460+#: selection:wizard.central.journal.report,print_state:0
461+msgid "Draft"
462+msgstr "Bozza"
463+
464+#. module: account_central_journal
465+#: report:report.central_journal_report:134
466+msgid "Account move"
467+msgstr "Movimento"
468+
469+#. module: account_central_journal
470+#: report:report.central_journal_report:138
471+msgid "Debit"
472+msgstr "Dare"
473+
474+#. module: account_central_journal
475+#: view:wizard.central.journal.report:0
476+msgid "Print"
477+msgstr "Stampa"
478+
479+#. module: account_central_journal
480+#: field:account.fiscalyear,progressive_credit:0
481+msgid "Progressive Credit"
482+msgstr "Progressivo Avere"
483+
484+#. module: account_central_journal
485+#: model:ir.module.module,description:account_central_journal.module_meta_information
486+msgid ""
487+"\n"
488+"Managing the printing of the \"Central Journal\" "
489+msgstr ""
490+"\n"
491+"Gestione della stampa del \"Giornale Centralizzato\""
492+
493+#. module: account_central_journal
494+#: constraint:account.fiscalyear:0
495+msgid "Error! You cannot define overlapping fiscal years"
496+msgstr "Errore! Non è possibile definire una sovrapposizione degli anni fiscali."
497+
498+#. module: account_central_journal
499+#: report:report.central_journal_report:133
500+msgid "Ref"
501+msgstr "Rif."
502+
503+#. module: account_central_journal
504+#: field:account.fiscalyear,date_last_print:0
505+msgid "Last printed date"
506+msgstr "Data ultima stampa"
507+
508+#. module: account_central_journal
509+#: selection:wizard.central.journal.report,print_state:0
510+msgid "Printed"
511+msgstr "Stampato"
512+
513+#. module: account_central_journal
514+#: report:report.central_journal_report:136
515+msgid "Account name"
516+msgstr "Conto"
517+
518+#. module: account_central_journal
519+#: report:report.central_journal_report:132
520+msgid "Date"
521+msgstr "Data"
522+
523+#. module: account_central_journal
524+#: code:addons/account_central_journal/wizard/central_journal_report.py:51
525+#: code:addons/account_central_journal/wizard/central_journal_report.py:54
526+#, python-format
527+msgid "Wrong dates !"
528+msgstr "Date errate !"
529+
530+#. module: account_central_journal
531+#: view:wizard.central.journal.report:0
532+msgid "Dates movements"
533+msgstr "Date dei movimenti"
534+
535+#. module: account_central_journal
536+#: field:account.fiscalyear,progressive_debit:0
537+msgid "Progressive Debit"
538+msgstr "Progressivo Dare"
539+
540+#. module: account_central_journal
541+#: report:report.central_journal_report:124
542+#: field:wizard.central.journal.report,date_move_line_to:0
543+msgid "to date"
544+msgstr "alla data"
545+
546+#. module: account_central_journal
547+#: report:report.central_journal_report:137
548+msgid "Name"
549+msgstr "Descrizione movimento"
550+
551+#. module: account_central_journal
552+#: model:ir.module.module,shortdesc:account_central_journal.module_meta_information
553+msgid "Account Central Journal"
554+msgstr "Giornale Centralizzato"
555+
556+#. module: account_central_journal
557+#: field:account.fiscalyear,progressive_line_number:0
558+msgid "Progressive line"
559+msgstr "Progressivo della riga"
560+
561+#. module: account_central_journal
562+#: code:addons/account_central_journal/wizard/central_journal_report.py:54
563+#, python-format
564+msgid "The end date can not be greater than today's date."
565+msgstr "La data finale non può essere maggiore della data odierna"
566+
567+#. module: account_central_journal
568+#: report:report.central_journal_report:139
569+msgid "Credit"
570+msgstr "Avere"
571+
572+#. module: account_central_journal
573+#: model:ir.model,name:account_central_journal.model_account_fiscalyear
574+#: field:wizard.central.journal.report,fiscalyear:0
575+msgid "Fiscal Year"
576+msgstr "Anno Fiscale"
577+
578+#. module: account_central_journal
579+#: constraint:account.fiscalyear:0
580+msgid "Error! The duration of the Fiscal Year is invalid. "
581+msgstr "Errore! La durata dell'anno fiscale non è valida."
582+
583+#. module: account_central_journal
584+#: code:addons/account_central_journal/wizard/central_journal_report.py:51
585+#, python-format
586+msgid "The end date must be greater than the initial date."
587+msgstr "La data finale deve essere maggiore della data iniziale"
588+
589+#. module: account_central_journal
590+#: view:wizard.central.journal.report:0
591+msgid "Reference"
592+msgstr "Riferimento"
593+
594+#. module: account_central_journal
595+#: model:ir.actions.report.xml,name:account_central_journal.central_journal_report_id
596+msgid "central_journal"
597+msgstr "Giornale Centralizzato Report Webkit"
598+
599+#. module: account_central_journal
600+#: field:account.fiscalyear,progressive_page_number:0
601+msgid "Progressive of the page"
602+msgstr "Progressivo della pagina"
603+
604+#. module: account_central_journal
605+#: report:report.central_journal_report:124
606+msgid "TEST PRINTING"
607+msgstr "STAMPA DI PROVA"
608+
609+#. module: account_central_journal
610+#: view:account.fiscalyear:0
611+msgid "Central journal info"
612+msgstr "Informazione del Giornale Centralizzato"
613+
614+#. module: account_central_journal
615+#: report:report.central_journal_report:127
616+msgid "Page:"
617+msgstr "Pagina:"
618+
619+#. module: account_central_journal
620+#: report:report.central_journal_report:124
621+#: field:wizard.central.journal.report,date_move_line_from:0
622+#: field:wizard.central.journal.report,date_move_line_from_view:0
623+msgid "From date"
624+msgstr "Dalla data"
625+
626+#. module: account_central_journal
627+#: selection:wizard.central.journal.report,print_state:0
628+msgid "Ready for printing"
629+msgstr "Pronto per la stampa"
630+
631+#. module: account_central_journal
632+#: view:wizard.central.journal.report:0
633+msgid "Cancel"
634+msgstr "Annulla"
635+
636+#. module: account_central_journal
637+#: report:report.central_journal_report:131
638+msgid "Row"
639+msgstr "N.riga"
640+
641+#. module: account_central_journal
642+#: view:wizard.central.journal.report:0
643+msgid "Final print"
644+msgstr "Stampa definitiva"
645+
646+#. module: account_central_journal
647+#: report:report.central_journal_report:116
648+msgid "ACCOUNT JOURNAL"
649+msgstr "Giornale di Contabilità"
650+
651
652=== added directory 'account_central_journal/report'
653=== added file 'account_central_journal/report/__init__.py'
654--- account_central_journal/report/__init__.py 1970-01-01 00:00:00 +0000
655+++ account_central_journal/report/__init__.py 2012-06-27 10:42:57 +0000
656@@ -0,0 +1,22 @@
657+# -*- coding: utf-8 -*-
658+##############################################################################
659+#
660+# OpenERP, Open Source Management Solution
661+# Copyright (C) 2012 ISA s.r.l. (<http://www.isa.it>).
662+#
663+# This program is free software: you can redistribute it and/or modify
664+# it under the terms of the GNU Affero General Public License as
665+# published by the Free Software Foundation, either version 3 of the
666+# License, or (at your option) any later version.
667+#
668+# This program is distributed in the hope that it will be useful,
669+# but WITHOUT ANY WARRANTY; without even the implied warranty of
670+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
671+# GNU Affero General Public License for more details.
672+#
673+# You should have received a copy of the GNU Affero General Public License
674+# along with this program. If not, see <http://www.gnu.org/licenses/>.
675+#
676+##############################################################################
677+
678+import central_journal_report
679
680=== added file 'account_central_journal/report/central_journal_report.mako'
681--- account_central_journal/report/central_journal_report.mako 1970-01-01 00:00:00 +0000
682+++ account_central_journal/report/central_journal_report.mako 2012-06-27 10:42:57 +0000
683@@ -0,0 +1,186 @@
684+<html>
685+<head>
686+ <meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
687+ <style type="text/css">
688+ ${css}
689+
690+ .page_block {
691+ /*border: 1px solid red;*/
692+ page-break-after: always;
693+ /*page-break-inside: avoid;*/
694+ }
695+ .p_row {
696+ page-break-inside: avoid;
697+ vertical-align:text-top;
698+ }
699+ .p_cell {
700+ overflow: hidden;
701+ padding: 1px 5px;
702+ }
703+ .p_text {
704+ color: black;
705+ font-size: 9px;
706+ font-family: "Courier New", Courier, monospace;
707+ }
708+ .p_cell_progr_row, .p_cell_debit, .p_cell_credit {
709+ text-align: right;
710+ }
711+
712+ .p_row_head {
713+ border: 1px solid black;
714+ border-width: 1px 0px;
715+ }
716+ .p_cell_head {
717+ font-weight: bold;
718+ padding: 3px 5px;
719+ }
720+
721+ .p_row_page {
722+ font-weight: bold;
723+ }
724+ .p_cell_test {
725+ padding: 5px 5px;
726+ }
727+ .p_cell_page {
728+ padding: 5px 5px;
729+ text-align: right;
730+ }
731+
732+ .p_row_total {
733+ font-weight: bold;
734+ border: 1px solid gray;
735+ }
736+ .p_row_total_up {
737+ border-width: 0px 0px 1px 0px;
738+ }
739+ .p_row_total_down {
740+ border-width: 1px 0px 0px 0px;
741+ }
742+ .p_cell_progressive {
743+ padding: 3px 5px;
744+ text-align: right;
745+ }
746+
747+ /* COLUMNS WIDTH */
748+ .p_cell_progr_row { width: 40px;}
749+ .p_cell_date { width: 65px;}
750+ .p_cell_ref { width: 70px;}
751+ .p_cell_move_id_name { width: 70px;}
752+ .p_cell_account_id_code { width: 50px;}
753+ .p_cell_account_id_name { width: 200px;}
754+ .p_cell_name { width: 250px;}
755+ .p_cell_debit { width: 70px;}
756+ .p_cell_credit { width: 70px;}
757+ </style>
758+</head>
759+
760+<body>
761+ <% setLang(user.context_lang) %>
762+ <%
763+ flag_print_final = data["print_final"]
764+ fiscalyear_id = data["form"]["fiscalyear"]
765+ date_from = data["form"]["date_move_line_from"]
766+ date_to = data["form"]["date_move_line_to"]
767+ %>
768+ <%
769+ print_info = get_print_info(fiscalyear_id)
770+ result_wizard = set_wizard_params(data["form"])
771+ result_rows = get_movements()
772+ %>
773+ <%
774+ page_rows = 50
775+
776+ num_rows = len(result_rows)
777+ num_row = 0
778+ new_page = True
779+
780+ progr_page = print_info['start_page']
781+ progr_row = print_info['start_row']
782+ %>
783+ <%
784+ debit_tot = print_info['start_debit']
785+ credit_tot = print_info['start_credit']
786+ %>
787+
788+ %for line in result_rows :
789+ <% num_row = num_row + 1 %>
790+ <% progr_row = progr_row + 1 %>
791+ % if new_page == True:
792+ <%
793+ new_page = False
794+ progr_page = progr_page + 1
795+ %>
796+ <div class="page_block">
797+ <table class="header" style="border-bottom: 0px solid black; width: 100%">
798+ <tr>
799+ <td style="text-align:center;"><span style="font-weight: bold; font-size: 14px;">${_("ACCOUNT JOURNAL")}</span></td>
800+ </tr>
801+ </table>
802+
803+ <table>
804+ <tr class="p_row p_row_page">
805+ <td colspan="7" class="p_cell p_cell_test">
806+ % if flag_print_final == False:
807+ <span class="p_text">${ _("TEST PRINTING") }&nbsp;${ _("From date") }&nbsp;${ formatLang(date_from, date=True) or ''|entity }&nbsp;${ _("to date") }&nbsp;${ formatLang(date_to, date=True) or ''|entity }</span>
808+ % endif
809+ </td>
810+ <td colspan="2" class="p_cell p_cell_page"><span class="p_text p_page">${ _("Page:") }&nbsp;&nbsp;${progr_page}</span></td>
811+ </tr>
812+
813+ <tr class="p_row p_row_head">
814+ <td class="p_cell p_cell_head"><span class="p_text">${ _("Row") }</span></td>
815+ <td class="p_cell p_cell_head"><span class="p_text">${ _("Date") }</span></td>
816+ <td class="p_cell p_cell_head"><span class="p_text">${ _("Ref") }</span></td>
817+ <td class="p_cell p_cell_head"><span class="p_text">${ _("Account move") }</span></td>
818+ <td class="p_cell p_cell_head"><span class="p_text">${ _("Account code") }</span></td>
819+ <td class="p_cell p_cell_head"><span class="p_text">${ _("Account name") }</span></td>
820+ <td class="p_cell p_cell_head"><span class="p_text">${ _("Name") }</span></td>
821+ <td class="p_cell p_cell_head p_cell_debit"><span class="p_text">${ _("Debit") }</span></td>
822+ <td class="p_cell p_cell_head p_cell_credit"><span class="p_text">${ _("Credit") }</span></td>
823+ </tr>
824+
825+ <tr class="p_row p_row_total p_row_total_up">
826+ <td colspan="6"></td>
827+ <td class="p_cell p_cell_progressive"><span class="p_text">${ _("Progressives =>") }</span></td>
828+ <td class="p_cell p_cell_debit"><span class="p_text p_debit">${ formatLang(debit_tot, digits=get_digits(dp='Account')) |entity }</span></td>
829+ <td class="p_cell p_cell_credit"><span class="p_text p_credit">${ formatLang(credit_tot, digits=get_digits(dp='Account')) |entity }</span></td>
830+ </tr>
831+ % endif
832+ <tr class="p_row">
833+ <td class="p_cell p_cell_progr_row"><span class="p_text p_progr_row">${progr_row}</span></td>
834+ <td class="p_cell p_cell_date"><span class="p_text p_date">${ formatLang(line.date, date=True) or ''|entity }</span></td>
835+ <td class="p_cell p_cell_ref"><span class="p_text p_ref">${ line.ref or ''|entity }</span></td>
836+ <td class="p_cell p_cell_move_id_name"><span class="p_text p_move_id_name">${ line.move_id.name or ''|entity }</span></td>
837+ <td class="p_cell p_cell_account_id_code"><span class="p_text p_account_id_code">${ line.account_id.code or ''|entity }</span></td>
838+ <td class="p_cell p_cell_account_id_name"><span class="p_text p_account_id_name">${ line.account_id.name or ''|entity }</span></td>
839+ <td class="p_cell p_cell_name"><span class="p_text p_name">${ line.name or ''|entity }</span></td>
840+ <td class="p_cell p_cell_debit"><span class="p_text p_debit">${ formatLang(line.debit, digits=get_digits(dp='Account')) |entity }</span></td>
841+ <td class="p_cell p_cell_credit"><span class="p_text p_credit">${ formatLang(line.credit, digits=get_digits(dp='Account')) |entity }</span></td>
842+ </tr>
843+ <%
844+ debit_tot = debit_tot + line.debit
845+ credit_tot = credit_tot + line.credit
846+ %>
847+ % if (num_row % page_rows) == 0 or num_row == num_rows :
848+ <%
849+ new_page = True
850+ %>
851+ <tr class="p_row p_row_total p_row_total_down">
852+ <td colspan="6"></td>
853+ <td class="p_cell p_cell_progressive"><span class="p_text">${ _("Progressives =>") }</span></td>
854+ <td class="p_cell p_cell_debit"><span class="p_text p_debit">${ formatLang(debit_tot, digits=get_digits(dp='Account')) |entity }</span></td>
855+ <td class="p_cell p_cell_credit"><span class="p_text p_credit">${ formatLang(credit_tot, digits=get_digits(dp='Account')) |entity }</span></td>
856+ </tr>
857+ </table>
858+ </div>
859+ % endif
860+ %endfor
861+
862+ <%
863+ if flag_print_final == True:
864+ print_info = set_print_info(fiscalyear_id, date_to, progr_row, progr_page, debit_tot, credit_tot)
865+ %>
866+
867+</body>
868+</html>
869+
870
871=== added file 'account_central_journal/report/central_journal_report.py'
872--- account_central_journal/report/central_journal_report.py 1970-01-01 00:00:00 +0000
873+++ account_central_journal/report/central_journal_report.py 2012-06-27 10:42:57 +0000
874@@ -0,0 +1,88 @@
875+# -*- coding: utf-8 -*-
876+##############################################################################
877+#
878+# OpenERP, Open Source Management Solution
879+# Copyright (C) 2012 ISA s.r.l. (<http://www.isa.it>).
880+#
881+# This program is free software: you can redistribute it and/or modify
882+# it under the terms of the GNU Affero General Public License as
883+# published by the Free Software Foundation, either version 3 of the
884+# License, or (at your option) any later version.
885+#
886+# This program is distributed in the hope that it will be useful,
887+# but WITHOUT ANY WARRANTY; without even the implied warranty of
888+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
889+# GNU Affero General Public License for more details.
890+#
891+# You should have received a copy of the GNU Affero General Public License
892+# along with this program. If not, see <http://www.gnu.org/licenses/>.
893+#
894+##############################################################################
895+
896+import time
897+from report import report_sxw
898+from osv import osv
899+from tools.translate import _
900+
901+class central_journal_report(report_sxw.rml_parse):
902+
903+ def _set_wizard_params(self,form_values):
904+ if form_values['date_move_line_from'] :
905+ date_move_line_from=form_values['date_move_line_from']
906+ filter=("date",">=",date_move_line_from)
907+ self.filters.append(filter)
908+ if form_values['date_move_line_to'] :
909+ date_move_line_to=form_values['date_move_line_to']
910+ filter=("date","<=",date_move_line_to)
911+ self.filters.append(filter)
912+ return True
913+
914+ def _get_print_info(self, fiscalyear_id):
915+ fiscalyear_obj = self.pool.get('account.fiscalyear')
916+ fiscalyear_ids=fiscalyear_obj.search(self.cr,self.uid,[('id','=',fiscalyear_id),])
917+ fiscalyear_data=fiscalyear_obj.browse(self.cr,self.uid,fiscalyear_ids)[0]
918+ print_info = {
919+ 'start_row': fiscalyear_data.progressive_line_number,
920+ 'start_page': fiscalyear_data.progressive_page_number,
921+ 'start_debit': fiscalyear_data.progressive_debit,
922+ 'start_credit': fiscalyear_data.progressive_credit,
923+ }
924+ return print_info
925+
926+ def _set_print_info(self, fiscalyear_id, end_date_print, end_row, end_page, end_debit, end_credit):
927+ fiscalyear_obj = self.pool.get('account.fiscalyear')
928+ fiscalyear_ids=fiscalyear_obj.search(self.cr,self.uid,[('id','=',fiscalyear_id),])
929+ fiscalyear_data=fiscalyear_obj.browse(self.cr,self.uid,fiscalyear_ids)[0]
930+ print_info = {
931+ 'date_last_print': end_date_print,
932+ 'progressive_line_number': end_row,
933+ 'progressive_page_number': end_page,
934+ 'progressive_debit': end_debit,
935+ 'progressive_credit': end_credit,
936+ }
937+ res = fiscalyear_obj.write(self.cr, self.uid, fiscalyear_ids, print_info)
938+ return res
939+
940+ def _get_movements(self):
941+ move_line_obj = self.pool.get('account.move.line')
942+ line_ids=move_line_obj.search(self.cr,self.uid,self.filters,order="id asc")
943+ report_lines=move_line_obj.browse(self.cr,self.uid,line_ids)
944+ return report_lines
945+
946+ def __init__(self, cr, uid, name, context):
947+ self.filters=[]
948+ super(central_journal_report, self).__init__(cr, uid, name, context)
949+ self.localcontext.update({
950+ 'time': time,
951+ 'cr':cr,
952+ 'uid': uid,
953+ 'get_print_info': self._get_print_info,
954+ 'set_print_info': self._set_print_info,
955+ 'set_wizard_params': self._set_wizard_params,
956+ 'get_movements': self._get_movements,
957+ })
958+
959+report_sxw.report_sxw('report.central_journal_report',
960+ 'account.move.line',
961+ 'addons/account_central_journal/report/central_journal_report.mako',
962+ parser=central_journal_report)
963
964=== added file 'account_central_journal/report/report.xml'
965--- account_central_journal/report/report.xml 1970-01-01 00:00:00 +0000
966+++ account_central_journal/report/report.xml 2012-06-27 10:42:57 +0000
967@@ -0,0 +1,14 @@
968+<?xml version="1.0"?>
969+<openerp>
970+ <data>
971+ <record id="central_journal_report_id" model="ir.actions.report.xml">
972+ <field name="name">central_journal</field>
973+ <field name="type">ir.actions.report.xml</field>
974+ <field name="model">account.move.line</field>
975+ <field name="report_name">central_journal_report</field>
976+ <field name="report_rml">account_central_journal/report/central_journal_report.mako</field>
977+ <field name="report_type">webkit</field>
978+ </record>
979+ </data>
980+</openerp>
981+
982
983=== added file 'account_central_journal/report/webkit_model.xml'
984--- account_central_journal/report/webkit_model.xml 1970-01-01 00:00:00 +0000
985+++ account_central_journal/report/webkit_model.xml 2012-06-27 10:42:57 +0000
986@@ -0,0 +1,107 @@
987+<?xml version="1.0" ?>
988+<openerp>
989+ <data noupdate="1">
990+ <record id="ir_header_central_journal_report" model="ir.header_webkit">
991+ <field name="footer_html"></field>
992+ <field eval="&quot;&quot;&quot;Landscape&quot;&quot;&quot;" name="orientation"/>
993+ <field eval="&quot;&quot;&quot;A4&quot;&quot;&quot;" name="format"/>
994+ <field name="html"><![CDATA[<html>
995+ <head>
996+ <meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
997+ <script>
998+ function subst() {
999+ var vars={};
1000+ var x=document.location.search.substring(1).split('&');
1001+ for(var i in x) {var z=x[i].split('=',2);vars[z[0]] = unescape(z[1]);}
1002+ var x=['frompage','topage','page','webpage','section','subsection','subsubsection'];
1003+ for(var i in x) {
1004+ var y = document.getElementsByClassName(x[i]);
1005+ for(var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
1006+ }
1007+ }
1008+ </script>
1009+ <style type="text/css">
1010+ ${css}
1011+ </style>
1012+ </head>
1013+ <body style="border:0; margin:0;" onload="subst()">
1014+ <table class="header" style="border-bottom: 0px solid black; width: 100%">
1015+ <tr>
1016+ <td style="text-align:left; padding: 5px 0px;">
1017+ <span style="font-weight: bold;">
1018+ ${company.partner_id.name |entity}&nbsp;
1019+ ${company.partner_id.vat or '' |entity}&nbsp;
1020+ ${company.partner_id.address and company.partner_id.address[0].street or '' |entity}&nbsp;
1021+ ${company.partner_id.address and company.partner_id.address[0].street2 or '' |entity}&nbsp;
1022+ ${company.partner_id.address and company.partner_id.address[0].zip or '' |entity}&nbsp;
1023+ ${company.partner_id.address and company.partner_id.address[0].city or '' |entity}&nbsp;</span>
1024+ </td>
1025+ </tr>
1026+ </table> ${_debug or ''|n}
1027+ </body>
1028+</html>]]>
1029+</field>
1030+ <field eval="20.0" name="margin_top"/>
1031+ <field eval="15.0" name="margin_bottom"/>
1032+ <field eval="15.0" name="margin_left"/>
1033+ <field eval="15.0" name="margin_right"/>
1034+ <field name="css" ><![CDATA[
1035+ /* http://meyerweb.com/eric/tools/css/reset/
1036+ v2.0 | 20110126
1037+ License: none (public domain)
1038+ */
1039+ /* START OF RESET CSS */
1040+ html, body, div, span, applet, object, iframe,
1041+ h1, h2, h3, h4, h5, h6, p, blockquote, pre,
1042+ a, abbr, acronym, address, big, cite, code,
1043+ del, dfn, em, img, ins, kbd, q, s, samp,
1044+ small, strike, strong, sub, sup, tt, var,
1045+ b, u, i, center,
1046+ dl, dt, dd, ol, ul, li,
1047+ fieldset, form, label, legend,
1048+ table, caption, tbody, tfoot, thead, tr, th, td,
1049+ article, aside, canvas, details, embed,
1050+ figure, figcaption, footer, header, hgroup,
1051+ menu, nav, output, ruby, section, summary,
1052+ time, mark, audio, video {
1053+ margin: 0;
1054+ padding: 0;
1055+ border: 0;
1056+ font-size: 100%;
1057+ font: inherit;
1058+ vertical-align: baseline;
1059+ }
1060+ /* HTML5 display-role reset for older browsers */
1061+ article, aside, details, figcaption, figure,
1062+ footer, header, hgroup, menu, nav, section {
1063+ display: block;
1064+ }
1065+ body {
1066+ line-height: 1;
1067+ }
1068+ ol, ul {
1069+ list-style: none;
1070+ }
1071+ blockquote, q {
1072+ quotes: none;
1073+ }
1074+ blockquote:before, blockquote:after,
1075+ q:before, q:after {
1076+ content: '';
1077+ content: none;
1078+ }
1079+ table {
1080+ border-collapse: collapse;
1081+ border-spacing: 0;
1082+ }
1083+ /* END OF RESET CSS */
1084+
1085+ body {
1086+ font-family: font-family: Verdana, Arial, Helvetica, sans-serif;
1087+ font-size: 12px;
1088+ }
1089+]]> </field>
1090+ <field eval="&quot;&quot;&quot;Central Journal Report&quot;&quot;&quot;" name="name"/>
1091+ </record>
1092+ </data>
1093+</openerp>
1094
1095=== added directory 'account_central_journal/wizard'
1096=== added file 'account_central_journal/wizard/__init__.py'
1097--- account_central_journal/wizard/__init__.py 1970-01-01 00:00:00 +0000
1098+++ account_central_journal/wizard/__init__.py 2012-06-27 10:42:57 +0000
1099@@ -0,0 +1,22 @@
1100+# -*- coding: utf-8 -*-
1101+##############################################################################
1102+#
1103+# OpenERP, Open Source Management Solution
1104+# Copyright (C) 2012 ISA s.r.l. (<http://www.isa.it>).
1105+#
1106+# This program is free software: you can redistribute it and/or modify
1107+# it under the terms of the GNU Affero General Public License as
1108+# published by the Free Software Foundation, either version 3 of the
1109+# License, or (at your option) any later version.
1110+#
1111+# This program is distributed in the hope that it will be useful,
1112+# but WITHOUT ANY WARRANTY; without even the implied warranty of
1113+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1114+# GNU Affero General Public License for more details.
1115+#
1116+# You should have received a copy of the GNU Affero General Public License
1117+# along with this program. If not, see <http://www.gnu.org/licenses/>.
1118+#
1119+##############################################################################
1120+
1121+import central_journal_report
1122
1123=== added file 'account_central_journal/wizard/central_journal_report.py'
1124--- account_central_journal/wizard/central_journal_report.py 1970-01-01 00:00:00 +0000
1125+++ account_central_journal/wizard/central_journal_report.py 2012-06-27 10:42:57 +0000
1126@@ -0,0 +1,135 @@
1127+# -*- coding: utf-8 -*-
1128+##############################################################################
1129+#
1130+# OpenERP, Open Source Management Solution
1131+# Copyright (C) 2012 ISA s.r.l. (<http://www.isa.it>).
1132+#
1133+# This program is free software: you can redistribute it and/or modify
1134+# it under the terms of the GNU Affero General Public License as
1135+# published by the Free Software Foundation, either version 3 of the
1136+# License, or (at your option) any later version.
1137+#
1138+# This program is distributed in the hope that it will be useful,
1139+# but WITHOUT ANY WARRANTY; without even the implied warranty of
1140+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1141+# GNU Affero General Public License for more details.
1142+#
1143+# You should have received a copy of the GNU Affero General Public License
1144+# along with this program. If not, see <http://www.gnu.org/licenses/>.
1145+#
1146+##############################################################################
1147+
1148+import time
1149+from datetime import datetime, date, timedelta
1150+from osv import osv, fields
1151+from tools.translate import _
1152+
1153+class central_journal_report(osv.osv_memory):
1154+
1155+ _name = 'wizard.central.journal.report'
1156+ _description = 'Printing parameters of the Center Journal'
1157+
1158+ def _get_fiscal_years(self, cr, uid, context=None):
1159+ fiscalyear_obj = self.pool.get('account.fiscalyear')
1160+ fiscalyear_ids = fiscalyear_obj.search(cr, uid, [], order="id desc")
1161+ fiscalyears = []
1162+ for account_fiscalyear in fiscalyear_obj.browse(cr,uid,fiscalyear_ids) :
1163+ fiscalyears.append((account_fiscalyear.id, account_fiscalyear.name))
1164+ return fiscalyears
1165+
1166+ def _get_account_fiscalyear_data(self, cr, uid, ids, fiscalyear_id):
1167+ fiscalyear_obj = self.pool.get('account.fiscalyear')
1168+ fiscalyear_ids=fiscalyear_obj.search(cr,uid,[('id','=',fiscalyear_id),])
1169+ fiscalyear_data=fiscalyear_obj.browse(cr,uid,fiscalyear_ids)[0]
1170+ return fiscalyear_data
1171+
1172+ def _dates_control(self, str_date_start, str_date_end):
1173+ today_date = date.today()
1174+ date_start = datetime.strptime(str_date_start,"%Y-%m-%d").date()
1175+ date_stop = datetime.strptime(str_date_end,"%Y-%m-%d").date()
1176+ if date_start > date_stop:
1177+ raise osv.except_osv(_('Wrong dates !'), _("The end date must be greater than the initial date."))
1178+ return False
1179+ if date_stop > today_date:
1180+ raise osv.except_osv(_('Wrong dates !'), _("The end date can not be greater than today's date."))
1181+ return False
1182+ return True
1183+
1184+ def _get_report_datas(self, cr, uid, ids, context={}):
1185+ wizard_form_datas = self.read(cr, uid, ids)[0]
1186+ datas = {
1187+ 'ids': [],
1188+ 'model': 'account.move.line',
1189+ 'form': wizard_form_datas,
1190+ }
1191+ return datas
1192+
1193+ _columns = {
1194+ 'date_move_line_from': fields.date('From date', required=True,),
1195+ 'date_move_line_from_view': fields.date('From date'),
1196+ 'date_move_line_to': fields.date('to date', required=True),
1197+ 'fiscalyear': fields.selection(_get_fiscal_years, 'Fiscal Year', required=True),
1198+ 'print_state': fields.selection([('draft','Draft'),('print','Ready for printing'),('printed','Printed')],'State',readonly=True),
1199+ }
1200+
1201+ def onchange_fiscalyear(self, cr, uid, ids, fiscalyear_id=False, context=None):
1202+ print_state = 'draft'
1203+ date_move_line_from = date_move_line_from_view = False
1204+ date_move_line_to = False
1205+ if fiscalyear_id:
1206+ print_state = 'print'
1207+ fiscalyear_data = self._get_account_fiscalyear_data(cr, uid, ids, fiscalyear_id)
1208+ #set values
1209+ today_date = date.today()
1210+ date_start = datetime.strptime(fiscalyear_data.date_start,"%Y-%m-%d").date()
1211+ date_stop = datetime.strptime(fiscalyear_data.date_stop,"%Y-%m-%d").date()
1212+ #set date_move_line_from
1213+ if fiscalyear_data.date_last_print:
1214+ date_last_print = datetime.strptime(fiscalyear_data.date_last_print,"%Y-%m-%d").date()
1215+ date_move_line_from = date_move_line_from_view = (date_last_print+timedelta(days=1)).__str__()
1216+ if date_last_print == date_stop:
1217+ date_move_line_from = date_move_line_from_view = date_start.__str__()
1218+ print_state = 'printed'
1219+ else:
1220+ date_move_line_from = date_move_line_from_view = date_start.__str__()
1221+ #set date_move_line_to
1222+ if today_date > date_stop:
1223+ date_move_line_to = date_stop.__str__()
1224+ else:
1225+ date_move_line_to = (today_date-timedelta(days=1)).__str__()
1226+
1227+ return {'value': {
1228+ 'date_move_line_from': date_move_line_from,
1229+ 'date_move_line_from_view': date_move_line_from_view,
1230+ 'date_move_line_to': date_move_line_to,
1231+ 'print_state': print_state,
1232+ }
1233+ }
1234+
1235+ def print_report(self, cr, uid, ids, context={}):
1236+ datas = self._get_report_datas(cr, uid, ids, context)
1237+ if self._dates_control(datas['form']['date_move_line_from'],datas['form']['date_move_line_to']) == False:
1238+ return False
1239+ datas['print_final'] = False
1240+ return {
1241+ 'type': 'ir.actions.report.xml',
1242+ 'report_name': 'central_journal_report',
1243+ 'datas': datas,
1244+ }
1245+
1246+ def print_report_final(self, cr, uid, ids, context={}):
1247+ datas = self._get_report_datas(cr, uid, ids, context)
1248+ if self._dates_control(datas['form']['date_move_line_from'],datas['form']['date_move_line_to']) == False:
1249+ return False
1250+ datas['print_final'] = True
1251+ return {
1252+ 'type': 'ir.actions.report.xml',
1253+ 'report_name': 'central_journal_report',
1254+ 'datas': datas,
1255+ }
1256+
1257+ _defaults = {
1258+ 'print_state': 'draft',
1259+ }
1260+
1261+central_journal_report()
1262
1263=== added file 'account_central_journal/wizard/central_journal_report.xml'
1264--- account_central_journal/wizard/central_journal_report.xml 1970-01-01 00:00:00 +0000
1265+++ account_central_journal/wizard/central_journal_report.xml 2012-06-27 10:42:57 +0000
1266@@ -0,0 +1,59 @@
1267+<?xml version="1.0" encoding="utf-8"?>
1268+<openerp>
1269+ <data>
1270+
1271+ <!--
1272+ Central Journal Report Filter View
1273+ -->
1274+
1275+ <record model="ir.ui.view" id="central_journal_report_form_view">
1276+ <field name="name">wizard.central.journal.report.form</field>
1277+ <field name="model">wizard.central.journal.report</field>
1278+ <field name="type">form</field>
1279+ <field name="arch" type="xml">
1280+ <form string="Printing parameters of the Center Journal">
1281+ <group colspan="4" col="4">
1282+ <separator colspan="4" string="Reference"/>
1283+ <field name="fiscalyear" on_change="onchange_fiscalyear(fiscalyear)"/>
1284+ <separator colspan="4" string="Dates movements"/>
1285+ <field name="date_move_line_from" invisible="1"/>
1286+ <field name="date_move_line_from_view" readonly="1"/>
1287+ <field name="date_move_line_to" attrs="{'readonly':[('print_state','!=','print')]}"/>
1288+ </group>
1289+ <newline/>
1290+ <separator colspan="4"/>
1291+ <group colspan="4" col="6">
1292+ <field name="print_state"/>
1293+ <button special="cancel" string="Cancel" icon='gtk-cancel'/>
1294+ <button name="print_report" string="Print" type="object" icon="gtk-print" attrs="{'invisible':[('print_state','=','printed')]}"/>
1295+ <button name="print_report_final" string="Final print" type="object" icon="gtk-print" attrs="{'invisible':[('print_state','=','printed')]}"/>
1296+ </group>
1297+ </form>
1298+ </field>
1299+ </record>
1300+
1301+ <!--action -->
1302+ <record model="ir.actions.act_window" id="central_journal_report_action">
1303+ <field name="name">Print Central Journal</field>
1304+ <field name="type">ir.actions.act_window</field>
1305+ <field name="res_model">wizard.central.journal.report</field>
1306+ <field name="view_type">form</field>
1307+ <field name="view_mode">form</field>
1308+ <field name="target">new</field>
1309+ </record>
1310+
1311+ <!--this feature works only in this file. Don't move-->
1312+ <record model="ir.values" id="central_journal_report_webkit">
1313+ <field name="model_id" ref="account.model_account_move_line" />
1314+ <field name="object" eval="1" />
1315+ <field name="name">central_journal</field>
1316+ <field name="key2">client_print_multi</field>
1317+ <field name="value" eval="'ir.actions.act_window,' + str(ref('central_journal_report_action'))" />
1318+ <field name="key">action</field>
1319+ <field name="model">account.move.line</field>
1320+ </record>
1321+
1322+ <menuitem id="menu_central_journal_report_action" parent="account.menu_finance_legal_statement" action="central_journal_report_action"/>
1323+
1324+ </data>
1325+</openerp>
1326
1327=== modified file 'account_fiscal_year_closing/hide_account_wizards.xml'
1328--- account_fiscal_year_closing/hide_account_wizards.xml 2011-09-28 07:31:37 +0000
1329+++ account_fiscal_year_closing/hide_account_wizards.xml 2012-06-27 10:42:57 +0000
1330@@ -28,16 +28,16 @@
1331 <menuitem id="menu_account_end_year_treatments_old"
1332 name="Other operations"
1333 parent="account.menu_account_end_year_treatments"
1334- sequence="100"/>
1335+ sequence="100" groups="base.group_erp_manager"/>
1336
1337 <menuitem id="account.menu_wizard_fy_close"
1338- parent="menu_account_end_year_treatments_old"/>
1339+ parent="menu_account_end_year_treatments_old" groups="base.group_erp_manager"/>
1340
1341 <menuitem id="account.menu_wizard_fy_close_state"
1342- parent="menu_account_end_year_treatments_old"/>
1343+ parent="menu_account_end_year_treatments_old" groups="base.group_erp_manager"/>
1344
1345 <menuitem id="account.menu_wizard_account_open_closed_fiscalyear"
1346- parent="menu_account_end_year_treatments_old"/>
1347+ parent="menu_account_end_year_treatments_old" groups="base.group_erp_manager"/>
1348
1349 </data>
1350 </openerp>
1351
1352=== added file 'account_fiscal_year_closing/i18n/de.po'
1353--- account_fiscal_year_closing/i18n/de.po 1970-01-01 00:00:00 +0000
1354+++ account_fiscal_year_closing/i18n/de.po 2012-06-27 10:42:57 +0000
1355@@ -0,0 +1,802 @@
1356+# Translation of OpenERP Server.
1357+# This file contains the translation of the following modules:
1358+# * account_fiscal_year_closing
1359+#
1360+msgid ""
1361+msgstr ""
1362+"Project-Id-Version: OpenERP Server 6.0.3\n"
1363+"Report-Msgid-Bugs-To: support@openerp.com\n"
1364+"POT-Creation-Date: 2011-10-09 10:49+0000\n"
1365+"PO-Revision-Date: 2012-02-24 14:22+0100\n"
1366+"Last-Translator: Thomas Winteler <info@win-soft.ch>\n"
1367+"Language-Team: \n"
1368+"MIME-Version: 1.0\n"
1369+"Content-Type: text/plain; charset=UTF-8\n"
1370+"Content-Transfer-Encoding: 8bit\n"
1371+"Plural-Forms: \n"
1372+
1373+#. module: account_fiscal_year_closing
1374+#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:316
1375+#, python-format
1376+msgid "The Net L&P period must be defined"
1377+msgstr "Die Netto Gewinn&Verlust Periode muss definiert werden"
1378+
1379+#. module: account_fiscal_year_closing
1380+#: code:addons/account_fiscal_year_closing/fyc.py:633
1381+#, python-format
1382+msgid "You have to review and confirm each of the moves before continuing"
1383+msgstr "Bitte überprüfen Sie jede Bewegung, bevor Sie fortfahern"
1384+
1385+#. module: account_fiscal_year_closing
1386+#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:347
1387+#, python-format
1388+msgid "The closing journal must be defined"
1389+msgstr "Das Jahresende Journal muss definiert werden"
1390+
1391+#. module: account_fiscal_year_closing
1392+#: model:ir.ui.menu,name:account_fiscal_year_closing.menu_account_end_year_treatments_old
1393+msgid "Other operations"
1394+msgstr "Andere Funktionen"
1395+
1396+#. module: account_fiscal_year_closing
1397+#: view:account_fiscal_year_closing.fyc:0
1398+#: field:account_fiscal_year_closing.fyc_c_account_map,fyc_id:0
1399+#: field:account_fiscal_year_closing.fyc_lp_account_map,fyc_id:0
1400+#: field:account_fiscal_year_closing.fyc_nlp_account_map,fyc_id:0
1401+#: wizard_view:account_fiscal_year_closing.wizard_cancel,init_cancel:0
1402+#: wizard_view:account_fiscal_year_closing.wizard_cancel,init_run:0
1403+#: wizard_view:account_fiscal_year_closing.wizard_run,init_cancel:0
1404+#: wizard_view:account_fiscal_year_closing.wizard_run,init_run:0
1405+#: code:addons/account_fiscal_year_closing/fyc.py:560
1406+#: model:ir.module.module,shortdesc:account_fiscal_year_closing.module_meta_information
1407+#, python-format
1408+msgid "Fiscal Year Closing"
1409+msgstr "Geschäftsjahr schliessen"
1410+
1411+#. module: account_fiscal_year_closing
1412+#: code:addons/account_fiscal_year_closing/fyc.py:641
1413+#, python-format
1414+msgid "All the moves should be balanced before continuing"
1415+msgstr "Alle Bewegungen müssen ausgeglichen sein, bevor Sie fortfahren"
1416+
1417+#. module: account_fiscal_year_closing
1418+#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:306
1419+#, python-format
1420+msgid "The Net L&P account mappings are not properly configured: %s"
1421+msgstr "Die Konto-Zuordnungen für den Netto Gewinn&Verlust sind nicht richtig konfiguriert: %s"
1422+
1423+#. module: account_fiscal_year_closing
1424+#: model:ir.model,name:account_fiscal_year_closing.model_account_fiscal_year_closing_fyc_c_account_map
1425+msgid "SFYC Closing Account Mapping"
1426+msgstr ""
1427+
1428+#. module: account_fiscal_year_closing
1429+#: field:account_fiscal_year_closing.fyc,check_invalid_period_moves:0
1430+msgid "Check invalid period or date moves"
1431+msgstr "Überprüfung Bewegungen mit ungültiger Periode oder Datum"
1432+
1433+#. module: account_fiscal_year_closing
1434+#: field:account_fiscal_year_closing.fyc,company_id:0
1435+msgid "Company"
1436+msgstr "Firma"
1437+
1438+#. module: account_fiscal_year_closing
1439+#: view:account_fiscal_year_closing.fyc:0
1440+msgid "Operation to perform"
1441+msgstr "Auszuführende Funktionen"
1442+
1443+#. module: account_fiscal_year_closing
1444+#: view:account_fiscal_year_closing.fyc:0
1445+msgid "Fiscal Year Closings"
1446+msgstr "Geschäftsjahres Abschlüsse"
1447+
1448+#. module: account_fiscal_year_closing
1449+#: wizard_view:account_fiscal_year_closing.wizard_cancel,show_exception:0
1450+#: wizard_view:account_fiscal_year_closing.wizard_run,show_exception:0
1451+msgid "Fiscal Year Closing - Error!"
1452+msgstr "Abschluss Geschäftsjahr - Fehler!"
1453+
1454+#. module: account_fiscal_year_closing
1455+#: code:addons/account_fiscal_year_closing/fyc.py:330
1456+#, python-format
1457+msgid "%s Fiscal Year Closing"
1458+msgstr "%s Geschäftsjahr Abschluss"
1459+
1460+#. module: account_fiscal_year_closing
1461+#: field:account_fiscal_year_closing.fyc,create_closing:0
1462+msgid "Close fiscal year"
1463+msgstr "Schliesse Geschäftsjahr"
1464+
1465+#. module: account_fiscal_year_closing
1466+#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:271
1467+#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:277
1468+#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:279
1469+#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:281
1470+#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:283
1471+#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:306
1472+#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:312
1473+#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:314
1474+#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:316
1475+#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:318
1476+#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:326
1477+#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:341
1478+#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:343
1479+#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:345
1480+#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:347
1481+#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:474
1482+#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:476
1483+#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:481
1484+#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:483
1485+#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:485
1486+#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:487
1487+#, python-format
1488+msgid "UserError"
1489+msgstr "Benutzer Fehler"
1490+
1491+#. module: account_fiscal_year_closing
1492+#: field:account_fiscal_year_closing.fyc_c_account_map,source_account_id:0
1493+msgid "Account"
1494+msgstr "Konto"
1495+
1496+#. module: account_fiscal_year_closing
1497+#: wizard_view:account_fiscal_year_closing.wizard_cancel,progress:0
1498+#: wizard_view:account_fiscal_year_closing.wizard_run,progress:0
1499+msgid "The process may take a while."
1500+msgstr "Der Vorgang kann eine Weile dauern."
1501+
1502+#. module: account_fiscal_year_closing
1503+#: wizard_view:account_fiscal_year_closing.wizard_cancel,show_exception:0
1504+#: wizard_view:account_fiscal_year_closing.wizard_run,show_exception:0
1505+msgid "Error: One of the selected operations has failed!"
1506+msgstr "Fehler: Eine der ausgewählten Funktionen ist fehlgeschlagen!"
1507+
1508+#. module: account_fiscal_year_closing
1509+#: view:account_fiscal_year_closing.fyc:0
1510+msgid "Closing"
1511+msgstr "Abschluss"
1512+
1513+#. module: account_fiscal_year_closing
1514+#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:283
1515+#, python-format
1516+msgid "The L&P journal must be defined"
1517+msgstr "Das Gewinn&Verlust Journal muss definiert werden"
1518+
1519+#. module: account_fiscal_year_closing
1520+#: view:account_fiscal_year_closing.fyc:0
1521+msgid "Operations"
1522+msgstr "Funktionen"
1523+
1524+#. module: account_fiscal_year_closing
1525+#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:341
1526+#, python-format
1527+msgid "The closing description must be defined"
1528+msgstr "Die Abschluss Beschreibung muss definiert werden"
1529+
1530+#. module: account_fiscal_year_closing
1531+#: model:ir.model,name:account_fiscal_year_closing.model_account_fiscal_year_closing_fyc
1532+msgid "Fiscal Year Closing Wizard"
1533+msgstr "Assistent Abschluss Geschäftsjahr"
1534+
1535+#. module: account_fiscal_year_closing
1536+#: field:account_fiscal_year_closing.fyc,c_account_mapping_ids:0
1537+msgid "Accounts"
1538+msgstr "Kontos"
1539+
1540+#. module: account_fiscal_year_closing
1541+#: model:ir.model,name:account_fiscal_year_closing.model_account_fiscal_year_closing_fyc_nlp_account_map
1542+msgid "SFYC Net Loss & Profit Account Mapping"
1543+msgstr ""
1544+
1545+#. module: account_fiscal_year_closing
1546+#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:326
1547+#, python-format
1548+msgid "The L&P move must exist before creating the closing one"
1549+msgstr "Die Gewinn&Verlust Bewegung muss vor der abschliessenden Bewegung existieren"
1550+
1551+#. module: account_fiscal_year_closing
1552+#: view:account_fiscal_year_closing.fyc:0
1553+msgid "Confirm"
1554+msgstr "Bestätigen"
1555+
1556+#. module: account_fiscal_year_closing
1557+#: code:addons/account_fiscal_year_closing/fyc.py:476
1558+#, python-format
1559+msgid "No destination account %s found for account %s."
1560+msgstr "Kein Ziel Konto %s gefunden für Konto %s"
1561+
1562+#. module: account_fiscal_year_closing
1563+#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:312
1564+#, python-format
1565+msgid "The Net L&P description must be defined"
1566+msgstr "Die Netto Gewin&Verlust Beschreibung muss definiert werden"
1567+
1568+#. module: account_fiscal_year_closing
1569+#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:281
1570+#, python-format
1571+msgid "The L&P period must be defined"
1572+msgstr "Die Gewinn&Verlust periode muss definiert werden"
1573+
1574+#. module: account_fiscal_year_closing
1575+#: selection:account_fiscal_year_closing.fyc,state:0
1576+msgid "New"
1577+msgstr "Neu"
1578+
1579+#. module: account_fiscal_year_closing
1580+#: field:account_fiscal_year_closing.fyc,opening_fiscalyear_id:0
1581+msgid "Fiscal year to open"
1582+msgstr "Zu öffnendes Geschäftsjahr"
1583+
1584+#. module: account_fiscal_year_closing
1585+#: code:addons/account_fiscal_year_closing/fyc.py:612
1586+#, python-format
1587+msgid "The Opening move is required"
1588+msgstr "The Eröffnungs Bewegung wird benötigt"
1589+
1590+#. module: account_fiscal_year_closing
1591+#: view:account_fiscal_year_closing.fyc:0
1592+msgid "Account mapping"
1593+msgstr "Konto Zuordnung"
1594+
1595+#. module: account_fiscal_year_closing
1596+#: field:account_fiscal_year_closing.fyc,check_unbalanced_moves:0
1597+msgid "Check unbalanced moves"
1598+msgstr "Überprüfe unausgeglichene Bewegungen"
1599+
1600+#. module: account_fiscal_year_closing
1601+#: wizard_button:account_fiscal_year_closing.wizard_cancel,init_cancel,run:0
1602+#: wizard_button:account_fiscal_year_closing.wizard_cancel,init_run,run:0
1603+#: wizard_button:account_fiscal_year_closing.wizard_run,init_cancel,run:0
1604+#: wizard_button:account_fiscal_year_closing.wizard_run,init_run,run:0
1605+#: model:ir.actions.wizard,name:account_fiscal_year_closing.wiz_account_fiscal_year_closing_run
1606+msgid "Run"
1607+msgstr "Start"
1608+
1609+#. module: account_fiscal_year_closing
1610+#: field:account_fiscal_year_closing.fyc,net_loss_and_profit_move_id:0
1611+msgid "Net L&P Move"
1612+msgstr "Netto Gewinn&Verlust Bewegung"
1613+
1614+#. module: account_fiscal_year_closing
1615+#: field:account_fiscal_year_closing.fyc,closing_move_id:0
1616+msgid "Closing Move"
1617+msgstr "Abschluss Bewegung"
1618+
1619+#. module: account_fiscal_year_closing
1620+#: model:ir.module.module,description:account_fiscal_year_closing.module_meta_information
1621+msgid ""
1622+"\n"
1623+"Fiscal Year Closing Wizard\n"
1624+" \n"
1625+"Replaces the default OpenERP end of year wizards (from account module)\n"
1626+"with a more advanced all-in-one wizard that will let the users:\n"
1627+" - Check for unbalanced moves, moves with invalid dates\n"
1628+" or period or draft moves on the fiscal year to be closed.\n"
1629+" - Create the Loss and Profit entry.\n"
1630+" - Create the Net Loss and Profit entry.\n"
1631+" - Create the Closing entry.\n"
1632+" - Create the Opening entry.\n"
1633+"\n"
1634+"It is stateful, saving all the info about the fiscal year closing, so the\n"
1635+"user can cancel and undo the operations easily.\n"
1636+" "
1637+msgstr ""
1638+"\n"
1639+"Geschäftsjahr Schliessungs-Assistent\n"
1640+" \n"
1641+"Ersetzt den Standard-OpenERP Jahres-Ende Assistenten (Modul Account/Finanzen)\n"
1642+"mit einem weiter fortgeschrittenen All-in-One-Assistent, der die Benutzer lassen:\n"
1643+" - Überprüfung unausgeglicherenr Bewegungen, Bewegung mit ungültigem Datum\n"
1644+" oder Periode oder Entwurf Bewegungen die sich im zu schliessenden Geschäftsjahr befinden.\n"
1645+" - Erstellen Sie den Gewinn&Verlust Eintrag\n"
1646+" - Erstellen Sie den Netto Gewinn und Verlust Eintrag\n"
1647+" - Erstellen Sie die Abschluss Bewegung\n"
1648+" - Erstellen Sie die Eröffnungs Bewegung\n"
1649+"\n"
1650+"Die Info's für die Geschäftsjahr Schliessung werde abgeschpeichert und können jederzeit storniert und rückgängig gemacht werden.\n"
1651+" "
1652+
1653+#. module: account_fiscal_year_closing
1654+#: wizard_button:account_fiscal_year_closing.wizard_cancel,progress,end:0
1655+#: wizard_button:account_fiscal_year_closing.wizard_run,progress,end:0
1656+msgid "Close (continues in background)"
1657+msgstr "Schliessen (wird im Hintergrund ausgeführt)"
1658+
1659+#. module: account_fiscal_year_closing
1660+#: view:account_fiscal_year_closing.fyc:0
1661+msgid "Configuration"
1662+msgstr "Konfiguration"
1663+
1664+#. module: account_fiscal_year_closing
1665+#: model:ir.actions.act_window,name:account_fiscal_year_closing.action_view_fyc_form
1666+#: model:ir.ui.menu,name:account_fiscal_year_closing.menu_fyc_new
1667+msgid "Close Fiscal Year"
1668+msgstr "Schliesse Geschäftsjahr"
1669+
1670+#. module: account_fiscal_year_closing
1671+#: field:account_fiscal_year_closing.fyc_c_account_map,dest_account_id:0
1672+#: field:account_fiscal_year_closing.fyc_lp_account_map,dest_account_id:0
1673+#: field:account_fiscal_year_closing.fyc_nlp_account_map,dest_account_id:0
1674+msgid "Dest account"
1675+msgstr "Ziel Konto"
1676+
1677+#. module: account_fiscal_year_closing
1678+#: wizard_view:account_fiscal_year_closing.wizard_cancel,init_cancel:0
1679+#: wizard_view:account_fiscal_year_closing.wizard_run,init_cancel:0
1680+msgid "It will remove the previously generated account moves."
1681+msgstr "Dies entfernt die vorgängig erstellten Konto Bewegungen."
1682+
1683+#. module: account_fiscal_year_closing
1684+#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:271
1685+#, python-format
1686+msgid "The L&P account mappings are not properly configured: %s"
1687+msgstr "Die Konto-Zuordnungen für den Gewinn&Verlust sind nicht richtig konfiguriert: %s"
1688+
1689+#. module: account_fiscal_year_closing
1690+#: wizard_view:account_fiscal_year_closing.wizard_cancel,done:0
1691+#: wizard_view:account_fiscal_year_closing.wizard_run,done:0
1692+msgid "The selected operations have been performed sucessfuly."
1693+msgstr "Die ausgewählten Funktionen wurden erfolgreich durchgeführt."
1694+
1695+#. module: account_fiscal_year_closing
1696+#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:314
1697+#, python-format
1698+msgid "The Net L&P date must be defined"
1699+msgstr "Das Netto Gewinn&Verlust Datum muss definiert werden"
1700+
1701+#. module: account_fiscal_year_closing
1702+#: wizard_view:account_fiscal_year_closing.wizard_cancel,init_cancel:0
1703+#: wizard_view:account_fiscal_year_closing.wizard_run,init_cancel:0
1704+msgid "This wizard will cancel the selected operations."
1705+msgstr "Dieser Assistent bricht die ausgewählten Funktionen ab."
1706+
1707+#. module: account_fiscal_year_closing
1708+#: wizard_field:account_fiscal_year_closing.wizard_cancel,progress,task_progress:0
1709+#: wizard_field:account_fiscal_year_closing.wizard_run,progress,task_progress:0
1710+msgid "Task Progress"
1711+msgstr "Aufgabe Vortschritt"
1712+
1713+#. module: account_fiscal_year_closing
1714+#: view:account_fiscal_year_closing.fyc:0
1715+msgid "Move created by the operation"
1716+msgstr "Bewegungen erstellt durch die Funktionen"
1717+
1718+#. module: account_fiscal_year_closing
1719+#: field:account_fiscal_year_closing.fyc,create_opening:0
1720+msgid "Open next fiscal year"
1721+msgstr "Öffne nächstes Geschäftsjahr"
1722+
1723+#. module: account_fiscal_year_closing
1724+#: view:account_fiscal_year_closing.fyc:0
1725+msgid "Please, select the company, fiscal year to close and fiscal year to open."
1726+msgstr "Bitte wähle die Firma, das Abschluss Geschäftsjahr und das Eröffnungs Geschäftsjahr."
1727+
1728+#. module: account_fiscal_year_closing
1729+#: selection:account_fiscal_year_closing.fyc,state:0
1730+msgid "Canceled"
1731+msgstr "Abgebrochen"
1732+
1733+#. module: account_fiscal_year_closing
1734+#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:277
1735+#, python-format
1736+msgid "The L&P description must be defined"
1737+msgstr "Die Gewinn&Verlust Beschreibung muss definiert werden"
1738+
1739+#. module: account_fiscal_year_closing
1740+#: wizard_view:account_fiscal_year_closing.wizard_cancel,init_cancel:0
1741+#: wizard_view:account_fiscal_year_closing.wizard_run,init_cancel:0
1742+msgid "Closed periods, and the fiscal year, will be reopened."
1743+msgstr "Geschossene Perioden und das Geschöftsjahr werden wieder geöffnet"
1744+
1745+#. module: account_fiscal_year_closing
1746+#: wizard_view:account_fiscal_year_closing.wizard_cancel,init_run:0
1747+#: wizard_view:account_fiscal_year_closing.wizard_run,init_run:0
1748+msgid "This wizard will perform the selected operations."
1749+msgstr "Der Assistent wird ausgewählte Funktionen ausführen."
1750+
1751+#. module: account_fiscal_year_closing
1752+#: field:account_fiscal_year_closing.fyc_lp_account_map,source_account_id:0
1753+#: field:account_fiscal_year_closing.fyc_nlp_account_map,source_account_id:0
1754+msgid "Source account"
1755+msgstr "Quell-Konto"
1756+
1757+#. module: account_fiscal_year_closing
1758+#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:343
1759+#, python-format
1760+msgid "The closing date must be defined"
1761+msgstr "Die Abschluss Datum muss definiert werden"
1762+
1763+#. module: account_fiscal_year_closing
1764+#: code:addons/account_fiscal_year_closing/fyc.py:551
1765+#, python-format
1766+msgid "Net Loss & Profit"
1767+msgstr "Netto Gewinn&Verlust"
1768+
1769+#. module: account_fiscal_year_closing
1770+#: view:account_fiscal_year_closing.fyc:0
1771+#: selection:account_fiscal_year_closing.fyc,state:0
1772+msgid "Draft"
1773+msgstr "Entwurf"
1774+
1775+#. module: account_fiscal_year_closing
1776+#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:481
1777+#, python-format
1778+msgid "The opening description must be defined"
1779+msgstr "Die Eröffnungs Beschreibung muss definiert werden"
1780+
1781+#. module: account_fiscal_year_closing
1782+#: code:addons/account_fiscal_year_closing/fyc.py:503
1783+#, python-format
1784+msgid "There is already a fiscal year closing with this name."
1785+msgstr "Ein Geschäftsjahr Abschluss mit selben Namen besteht bereits."
1786+
1787+#. module: account_fiscal_year_closing
1788+#: view:account_fiscal_year_closing.fyc:0
1789+msgid "Checks"
1790+msgstr "Überprüfungen"
1791+
1792+#. module: account_fiscal_year_closing
1793+#: view:account_fiscal_year_closing.fyc:0
1794+msgid "Loss and Profit"
1795+msgstr "Gewinn&Verlust"
1796+
1797+#. module: account_fiscal_year_closing
1798+#: field:account_fiscal_year_closing.fyc,state:0
1799+msgid "Status"
1800+msgstr ""
1801+
1802+#. module: account_fiscal_year_closing
1803+#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:220
1804+#, python-format
1805+msgid ""
1806+"One or more unbalanced moves found: \n"
1807+"%s"
1808+msgstr ""
1809+"Ein oder mehrere unausgeglichene Bewegungen gefunden: \n"
1810+"%s"
1811+
1812+#. module: account_fiscal_year_closing
1813+#: code:addons/account_fiscal_year_closing/fyc.py:608
1814+#: code:addons/account_fiscal_year_closing/fyc.py:610
1815+#: code:addons/account_fiscal_year_closing/fyc.py:612
1816+#, python-format
1817+msgid "Not all the operations have been performed!"
1818+msgstr "Nicht alleFunktionen wurde durchgeführt!"
1819+
1820+#. module: account_fiscal_year_closing
1821+#: field:account_fiscal_year_closing.fyc,c_date:0
1822+#: field:account_fiscal_year_closing.fyc,lp_date:0
1823+#: field:account_fiscal_year_closing.fyc,nlp_date:0
1824+#: field:account_fiscal_year_closing.fyc,o_date:0
1825+msgid "Date"
1826+msgstr "Datum"
1827+
1828+#. module: account_fiscal_year_closing
1829+#: wizard_view:account_fiscal_year_closing.wizard_cancel,done:0
1830+#: wizard_view:account_fiscal_year_closing.wizard_run,done:0
1831+msgid "Fiscal Year Closing - Done"
1832+msgstr "Abschluss Geschäftsjahr - Fertig"
1833+
1834+#. module: account_fiscal_year_closing
1835+#: wizard_view:account_fiscal_year_closing.wizard_cancel,init_run:0
1836+#: wizard_view:account_fiscal_year_closing.wizard_run,init_run:0
1837+msgid "Non-selected operations will be canceled."
1838+msgstr "Nicht ausgewählte Funktionen werden abgebrochen."
1839+
1840+#. module: account_fiscal_year_closing
1841+#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:345
1842+#, python-format
1843+msgid "The closing period must be defined"
1844+msgstr "Die Abschluss Periode muss definiert werden"
1845+
1846+#. module: account_fiscal_year_closing
1847+#: wizard_field:account_fiscal_year_closing.wizard_cancel,show_exception,exception_text:0
1848+#: wizard_field:account_fiscal_year_closing.wizard_run,show_exception,exception_text:0
1849+msgid "Exception"
1850+msgstr "Ausnahme"
1851+
1852+#. module: account_fiscal_year_closing
1853+#: code:addons/account_fiscal_year_closing/fyc.py:508
1854+#, python-format
1855+msgid "There is already a fiscal year closing for the fiscal year to close."
1856+msgstr "Es besteht bereits ein Geschäftjahren Abschluss für das ausgewählte Geschäftsjahr."
1857+
1858+#. module: account_fiscal_year_closing
1859+#: help:account_fiscal_year_closing.fyc,check_draft_moves:0
1860+msgid "Checks that there are no draft moves on the fiscal year that is being closed. Non-confirmed moves won't be taken in account on the closing operations."
1861+msgstr "Überprüfung ob Bewegungen im Entwurf für das Abschluss Geschäftsjahr bestehen. Nicht bestätigte Bewegungen werden im Abshcluss Prozess nicht beachtet."
1862+
1863+#. module: account_fiscal_year_closing
1864+#: model:ir.model,name:account_fiscal_year_closing.model_account_fiscal_year_closing_fyc_lp_account_map
1865+msgid "SFYC Loss & Profit Account Mapping"
1866+msgstr ""
1867+
1868+#. module: account_fiscal_year_closing
1869+#: code:addons/account_fiscal_year_closing/fyc.py:503
1870+#: code:addons/account_fiscal_year_closing/fyc.py:508
1871+#: code:addons/account_fiscal_year_closing/fyc.py:513
1872+#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:134
1873+#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:169
1874+#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:220
1875+#, python-format
1876+msgid "Error"
1877+msgstr "Fehler"
1878+
1879+#. module: account_fiscal_year_closing
1880+#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:476
1881+#, python-format
1882+msgid "The closing move shouldn't be empty"
1883+msgstr "Die Abschluss Bewegungen dürfen nicht leer sein"
1884+
1885+#. module: account_fiscal_year_closing
1886+#: code:addons/account_fiscal_year_closing/fyc.py:513
1887+#, python-format
1888+msgid "There is already a fiscal year closing for the fiscal year to open."
1889+msgstr "Es besteht bereits ein Geschäftsjahres Abschluss für das ausgewählte Eröffnungs Geschäftsjahr."
1890+
1891+#. module: account_fiscal_year_closing
1892+#: code:addons/account_fiscal_year_closing/fyc.py:608
1893+#, python-format
1894+msgid "The Loss & Profit move is required"
1895+msgstr "Die Gewinn&Verlust Bewegung ist nötig"
1896+
1897+#. module: account_fiscal_year_closing
1898+#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:279
1899+#, python-format
1900+msgid "The L&P date must be defined"
1901+msgstr "Das Gewinn&Verlust Datum muss definiert werden"
1902+
1903+#. module: account_fiscal_year_closing
1904+#: field:account_fiscal_year_closing.fyc,c_period_id:0
1905+#: field:account_fiscal_year_closing.fyc,lp_period_id:0
1906+#: field:account_fiscal_year_closing.fyc,nlp_period_id:0
1907+#: field:account_fiscal_year_closing.fyc,o_period_id:0
1908+msgid "Period"
1909+msgstr "Periode"
1910+
1911+#. module: account_fiscal_year_closing
1912+#: code:addons/account_fiscal_year_closing/fyc.py:633
1913+#, python-format
1914+msgid "Some moves are in draft state!"
1915+msgstr "Einige Bewegungen sind im Entwurf Status!"
1916+
1917+#. module: account_fiscal_year_closing
1918+#: view:account_fiscal_year_closing.fyc:0
1919+msgid "General"
1920+msgstr ""
1921+
1922+#. module: account_fiscal_year_closing
1923+#: view:account_fiscal_year_closing.fyc:0
1924+msgid "Net Loss and Profit"
1925+msgstr "Netto Gewinn&Verlust"
1926+
1927+#. module: account_fiscal_year_closing
1928+#: selection:account_fiscal_year_closing.fyc,state:0
1929+#: wizard_button:account_fiscal_year_closing.wizard_cancel,done,end:0
1930+#: wizard_button:account_fiscal_year_closing.wizard_cancel,show_exception,end:0
1931+#: wizard_button:account_fiscal_year_closing.wizard_run,done,end:0
1932+#: wizard_button:account_fiscal_year_closing.wizard_run,show_exception,end:0
1933+msgid "Done"
1934+msgstr "Fertig"
1935+
1936+#. module: account_fiscal_year_closing
1937+#: help:account_fiscal_year_closing.fyc,check_invalid_period_moves:0
1938+msgid "Checks that there are no moves, on the fiscal year that is being closed, with dates or periods outside that fiscal year."
1939+msgstr "Überprüfungen ob Bewegungen existieren im Abschluss Geschäftsjahr, mit Datum oder Periode ausserhalb des Geschäftjahres."
1940+
1941+#. module: account_fiscal_year_closing
1942+#: view:account_fiscal_year_closing.fyc:0
1943+#: wizard_button:account_fiscal_year_closing.wizard_cancel,init_cancel,end:0
1944+#: wizard_button:account_fiscal_year_closing.wizard_cancel,init_run,end:0
1945+#: wizard_button:account_fiscal_year_closing.wizard_run,init_cancel,end:0
1946+#: wizard_button:account_fiscal_year_closing.wizard_run,init_run,end:0
1947+#: model:ir.actions.wizard,name:account_fiscal_year_closing.wiz_account_fiscal_year_closing_cancel
1948+msgid "Cancel"
1949+msgstr "Abbrechen"
1950+
1951+#. module: account_fiscal_year_closing
1952+#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:487
1953+#, python-format
1954+msgid "The opening journal must be defined"
1955+msgstr "Das Eröffnungs Journal muss definiert werden"
1956+
1957+#. module: account_fiscal_year_closing
1958+#: wizard_button:account_fiscal_year_closing.wizard_cancel,progress,run:0
1959+#: wizard_button:account_fiscal_year_closing.wizard_run,progress,run:0
1960+msgid "Keep waiting"
1961+msgstr "Bitte warten"
1962+
1963+#. module: account_fiscal_year_closing
1964+#: selection:account_fiscal_year_closing.fyc,state:0
1965+msgid "In Progress"
1966+msgstr "In Bearbeitung"
1967+
1968+#. module: account_fiscal_year_closing
1969+#: code:addons/account_fiscal_year_closing/fyc.py:641
1970+#, python-format
1971+msgid "Some moves are unbalanced!"
1972+msgstr "Einige Bewegungen sind nicht ausgeglichen!"
1973+
1974+#. module: account_fiscal_year_closing
1975+#: wizard_view:account_fiscal_year_closing.wizard_cancel,show_exception:0
1976+#: wizard_view:account_fiscal_year_closing.wizard_run,show_exception:0
1977+msgid "Details"
1978+msgstr ""
1979+
1980+#. module: account_fiscal_year_closing
1981+#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:483
1982+#, python-format
1983+msgid "The opening date must be defined"
1984+msgstr "Das eröffnungs Datum muss definiert werden"
1985+
1986+#. module: account_fiscal_year_closing
1987+#: wizard_view:account_fiscal_year_closing.wizard_cancel,init_run:0
1988+#: wizard_view:account_fiscal_year_closing.wizard_run,init_run:0
1989+msgid "It will create account moves for the operations you selected, skipping those already created."
1990+msgstr "Dies erstellt Konto Bewegungen für die ausgewählten Funktionen und überspringt bereits ausgeführte Funktionen."
1991+
1992+#. module: account_fiscal_year_closing
1993+#: model:ir.actions.act_window,name:account_fiscal_year_closing.action_view_fyc_tree
1994+#: model:ir.ui.menu,name:account_fiscal_year_closing.menu_fyc_list
1995+msgid "Fiscal Years Closings"
1996+msgstr "Geschäftsjahres Abschlüsse"
1997+
1998+#. module: account_fiscal_year_closing
1999+#: code:addons/account_fiscal_year_closing/fyc.py:610
2000+#, python-format
2001+msgid "The Closing move is required"
2002+msgstr "Die Abschluss Bewegung ist nötig"
2003+
2004+#. module: account_fiscal_year_closing
2005+#: field:account_fiscal_year_closing.fyc,opening_move_id:0
2006+msgid "Opening Move"
2007+msgstr "Eröffnungs Bewegung"
2008+
2009+#. module: account_fiscal_year_closing
2010+#: field:account_fiscal_year_closing.fyc,c_description:0
2011+#: field:account_fiscal_year_closing.fyc,lp_description:0
2012+#: field:account_fiscal_year_closing.fyc,name:0
2013+#: field:account_fiscal_year_closing.fyc,nlp_description:0
2014+#: field:account_fiscal_year_closing.fyc,o_description:0
2015+#: field:account_fiscal_year_closing.fyc_c_account_map,name:0
2016+#: field:account_fiscal_year_closing.fyc_lp_account_map,name:0
2017+#: field:account_fiscal_year_closing.fyc_nlp_account_map,name:0
2018+msgid "Description"
2019+msgstr "Beschreibung"
2020+
2021+#. module: account_fiscal_year_closing
2022+#: view:account_fiscal_year_closing.fyc:0
2023+msgid "Opening"
2024+msgstr "Eröffnung"
2025+
2026+#. module: account_fiscal_year_closing
2027+#: view:account_fiscal_year_closing.fyc:0
2028+msgid "Account to close"
2029+msgstr "Kontos zum abschliessen"
2030+
2031+#. module: account_fiscal_year_closing
2032+#: field:account_fiscal_year_closing.fyc,c_journal_id:0
2033+#: field:account_fiscal_year_closing.fyc,lp_journal_id:0
2034+#: field:account_fiscal_year_closing.fyc,nlp_journal_id:0
2035+#: field:account_fiscal_year_closing.fyc,o_journal_id:0
2036+msgid "Journal"
2037+msgstr ""
2038+
2039+#. module: account_fiscal_year_closing
2040+#: view:account_fiscal_year_closing.fyc:0
2041+#: field:account_fiscal_year_closing.fyc,lp_account_mapping_ids:0
2042+#: field:account_fiscal_year_closing.fyc,nlp_account_mapping_ids:0
2043+msgid "Account mappings"
2044+msgstr "Konto Zuordnungen"
2045+
2046+#. module: account_fiscal_year_closing
2047+#: field:account_fiscal_year_closing.fyc,check_draft_moves:0
2048+msgid "Check draft moves"
2049+msgstr "Überprüfe Bewegungen im Entwurf"
2050+
2051+#. module: account_fiscal_year_closing
2052+#: field:account_fiscal_year_closing.fyc,create_loss_and_profit:0
2053+msgid "Create Loss & Profit move"
2054+msgstr "Erstelle Gewinn&Verlust Bewegungn"
2055+
2056+#. module: account_fiscal_year_closing
2057+#: view:account_fiscal_year_closing.fyc:0
2058+msgid "Fiscal Years"
2059+msgstr "Geschäftsjahre"
2060+
2061+#. module: account_fiscal_year_closing
2062+#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:318
2063+#, python-format
2064+msgid "The Net L&P journal must be defined"
2065+msgstr "Das Netto Gewinn&Verlust Journal muss definiert werden"
2066+
2067+#. module: account_fiscal_year_closing
2068+#: field:account_fiscal_year_closing.fyc,closing_fiscalyear_id:0
2069+msgid "Fiscal year to close"
2070+msgstr "Abschluss Geschäftsjahr"
2071+
2072+#. module: account_fiscal_year_closing
2073+#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:474
2074+#, python-format
2075+msgid "The closing move must exist to create the opening one"
2076+msgstr "Die Abschluss Bewegung muss existieren damit die Eröffnungs Bewegung erstellt werden kann"
2077+
2078+#. module: account_fiscal_year_closing
2079+#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:134
2080+#, python-format
2081+msgid ""
2082+"One or more moves with invalid period or date found on the fiscal year: \n"
2083+"%s"
2084+msgstr ""
2085+"Eine der mehrere Bewegungen mit ungültiger Periode oder Datum im Geschäftsjahr gefunden: \n"
2086+"%s"
2087+
2088+#. module: account_fiscal_year_closing
2089+#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:169
2090+#, python-format
2091+msgid ""
2092+"One or more draft moves found: \n"
2093+"%s"
2094+msgstr ""
2095+"Eine oder Mehrere Bewegungen im Entwurf gefunden: \n"
2096+"%s"
2097+
2098+#. module: account_fiscal_year_closing
2099+#: wizard_view:account_fiscal_year_closing.wizard_cancel,progress:0
2100+#: wizard_view:account_fiscal_year_closing.wizard_run,progress:0
2101+msgid "Fiscal Year Closing - Working"
2102+msgstr "Abschlus Geschäftsjahr - Verarbeitung"
2103+
2104+#. module: account_fiscal_year_closing
2105+#: view:account_fiscal_year_closing.fyc:0
2106+msgid "Perform the operations"
2107+msgstr "Funktionen ausführen"
2108+
2109+#. module: account_fiscal_year_closing
2110+#: view:account_fiscal_year_closing.fyc:0
2111+msgid "Continue"
2112+msgstr "Weiter"
2113+
2114+#. module: account_fiscal_year_closing
2115+#: wizard_field:account_fiscal_year_closing.wizard_cancel,progress,progress:0
2116+#: wizard_field:account_fiscal_year_closing.wizard_run,progress,progress:0
2117+msgid "Total Progress"
2118+msgstr "Total Vortschritt"
2119+
2120+#. module: account_fiscal_year_closing
2121+#: view:account_fiscal_year_closing.fyc:0
2122+msgid "Accounts to close"
2123+msgstr "Kontos zum schliessen"
2124+
2125+#. module: account_fiscal_year_closing
2126+#: field:account_fiscal_year_closing.fyc,loss_and_profit_move_id:0
2127+msgid "L&P Move"
2128+msgstr "Gewinn&Verlust Bewegung"
2129+
2130+#. module: account_fiscal_year_closing
2131+#: field:account_fiscal_year_closing.fyc,create_net_loss_and_profit:0
2132+msgid "Create Net Loss & Profit"
2133+msgstr "Erstelle Netto Gewinn&Verlust"
2134+
2135+#. module: account_fiscal_year_closing
2136+#: help:account_fiscal_year_closing.fyc,check_unbalanced_moves:0
2137+msgid "Checks that there are no unbalanced moves on the fiscal year that is being closed."
2138+msgstr "Überprüfe ob keine unausgeglichenen Bewegungn für dasn Abschluss Geschäftsjahr bestehen."
2139+
2140+#. module: account_fiscal_year_closing
2141+#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:485
2142+#, python-format
2143+msgid "The opening period must be defined"
2144+msgstr "Die Eröffnungs Periode muss definiert werden"
2145+
2146+#. module: account_fiscal_year_closing
2147+#: code:addons/account_fiscal_year_closing/fyc.py:569
2148+#, python-format
2149+msgid "Fiscal Year Opening"
2150+msgstr "Eröffnung Geschäftsjahr"
2151+
2152+#. module: account_fiscal_year_closing
2153+#: code:addons/account_fiscal_year_closing/fyc.py:542
2154+#, python-format
2155+msgid "Loss & Profit"
2156+msgstr "Gewinn & Verlust"
2157+
2158
2159=== renamed file 'account_fiscal_year_closing/i18n/de.po' => 'account_fiscal_year_closing/i18n/de.po.moved'
2160=== modified file 'account_invoice_tax_by_column/test/account_tax.xml'
2161--- account_invoice_tax_by_column/test/account_tax.xml 2011-11-07 22:47:22 +0000
2162+++ account_invoice_tax_by_column/test/account_tax.xml 2012-06-27 10:42:57 +0000
2163@@ -2,26 +2,66 @@
2164 <openerp>
2165 <data noupdate="1">
2166
2167+ <!-- Tax codes -->
2168+
2169+ <record id="account_tax_code_10" model="account.tax.code">
2170+ <field name="name">10 %</field>
2171+ </record>
2172+ <record id="account_tax_code_10_imp" model="account.tax.code">
2173+ <field name="name">10 % IMP</field>
2174+ </record>
2175+
2176+ <record id="account_tax_code_21" model="account.tax.code">
2177+ <field name="name">21 %</field>
2178+ </record>
2179+ <record id="account_tax_code_21_imp" model="account.tax.code">
2180+ <field name="name">21 % IMP</field>
2181+ </record>
2182+
2183+ <record id="account_tax_code_21_inc" model="account.tax.code">
2184+ <field name="name">21 % INC</field>
2185+ </record>
2186+ <record id="account_tax_code_21_inc_imp" model="account.tax.code">
2187+ <field name="name">21 % INC IMP</field>
2188+ </record>
2189+
2190+ <record id="account_tax_code_20_inc" model="account.tax.code">
2191+ <field name="name">20 % INC</field>
2192+ </record>
2193+ <record id="account_tax_code_20_inc_imp" model="account.tax.code">
2194+ <field name="name">20 % INC IMP</field>
2195+ </record>
2196+
2197+ <!-- taxes -->
2198+
2199 <record id="account_tax_10" model="account.tax">
2200 <field name="name">10 %</field>
2201 <field name="amount">0.1</field>
2202+ <field name="tax_code_id" ref="account_tax_code_10"></field>
2203+ <field name="base_code_id" ref="account_tax_code_10_imp"></field>
2204 </record>
2205
2206 <record id="account_tax_21" model="account.tax">
2207 <field name="name">21 %</field>
2208 <field name="amount">0.21</field>
2209+ <field name="tax_code_id" ref="account_tax_code_21"></field>
2210+ <field name="base_code_id" ref="account_tax_code_21_imp"></field>
2211 </record>
2212
2213 <record id="account_tax_21_inc" model="account.tax">
2214 <field name="name">21 % INC</field>
2215 <field name="amount">0.21</field>
2216 <field name="price_include">1</field>
2217+ <field name="tax_code_id" ref="account_tax_code_21_inc"></field>
2218+ <field name="base_code_id" ref="account_tax_code_21_inc_imp"></field>
2219 </record>
2220
2221 <record id="account_tax_20_inc" model="account.tax">
2222 <field name="name">20 % INC</field>
2223 <field name="amount">0.2</field>
2224 <field name="price_include">1</field>
2225+ <field name="tax_code_id" ref="account_tax_code_20_inc"></field>
2226+ <field name="base_code_id" ref="account_tax_code_20_inc_imp"></field>
2227 </record>
2228
2229 </data>
2230
2231=== modified file 'account_invoice_tax_by_column/test/tax_computation.yml'
2232--- account_invoice_tax_by_column/test/tax_computation.yml 2011-11-07 22:47:22 +0000
2233+++ account_invoice_tax_by_column/test/tax_computation.yml 2012-06-27 10:42:57 +0000
2234@@ -186,42 +186,43 @@
2235 - amount_tax == 82.26
2236
2237 -
2238+ TODO
2239 In order to test tax computation I create a new customer invoice
2240 -
2241- !record {model: account.invoice, id: account_invoice_customer4}:
2242- account_id: account.a_recv
2243- address_contact_id: base.res_partner_address_zen
2244- address_invoice_id: base.res_partner_address_zen
2245- company_id: base.main_company
2246- currency_id: base.EUR
2247- date_invoice: !eval time.strftime('%Y-%m-%d')
2248- vertical_comp: 1
2249- invoice_line:
2250- - account_id: account.a_sale
2251- name: '148.28'
2252- price_unit: 148.28
2253- quantity: 1.0
2254- invoice_line_tax_id:
2255- - account_tax_20_inc
2256- - account_id: account.a_sale
2257- name: '148.28'
2258- price_unit: 148.28
2259- quantity: 1.0
2260- invoice_line_tax_id:
2261- - account_tax_20_inc
2262- journal_id: account.sales_journal
2263- partner_id: base.res_partner_3
2264+ #!record {model: account.invoice, id: account_invoice_customer4}:
2265+ #account_id: account.a_recv
2266+ #address_contact_id: base.res_partner_address_zen
2267+ #address_invoice_id: base.res_partner_address_zen
2268+ #company_id: base.main_company
2269+ #currency_id: base.EUR
2270+ #date_invoice: !eval time.strftime('%Y-%m-%d')
2271+ #vertical_comp: 1
2272+ #invoice_line:
2273+ #- account_id: account.a_sale
2274+ #name: '148.28'
2275+ #price_unit: 148.28
2276+ #quantity: 1.0
2277+ #invoice_line_tax_id:
2278+ #- account_tax_20_inc
2279+ #- account_id: account.a_sale
2280+ #name: '148.28'
2281+ #price_unit: 148.28
2282+ #quantity: 1.0
2283+ #invoice_line_tax_id:
2284+ #- account_tax_20_inc
2285+ #journal_id: account.sales_journal
2286+ #partner_id: base.res_partner_3
2287
2288--
2289- Compute the total tax.
2290--
2291- !python {model: account.invoice}: |
2292- self.button_compute(cr, uid, [ref("account_invoice_customer4")])
2293--
2294- Then I verify the amount.
2295- 148.28 + 148.28 = 296.56
2296- 296.56 ÷ 1.2 = 247.133333333 = 247.13
2297- 296.56 - 247.13 = 49.43
2298--
2299- !assert {model: account.invoice, id: account_invoice_customer4}:
2300- - amount_tax == 49.43
2301+#-
2302+ #Compute the total tax.
2303+#-
2304+ #!python {model: account.invoice}: |
2305+ #self.button_compute(cr, uid, [ref("account_invoice_customer4")])
2306+#-
2307+ #Then I verify the amount.
2308+ #148.28 + 148.28 = 296.56
2309+ #296.56 ÷ 1.2 = 247.133333333 = 247.13
2310+ #296.56 - 247.13 = 49.43
2311+#-
2312+ #!assert {model: account.invoice, id: account_invoice_customer4}:
2313+ #- amount_tax == 49.43
2314
2315=== modified file 'l10n_it_account/__init__.py'
2316--- l10n_it_account/__init__.py 2010-11-17 08:04:13 +0000
2317+++ l10n_it_account/__init__.py 2012-06-27 10:42:57 +0000
2318@@ -1,9 +1,9 @@
2319-# -*- encoding: utf-8 -*-
2320+# -*- coding: utf-8 -*-
2321 ##############################################################################
2322 #
2323-# Copyright (C) 2010 OpenERP Italian Community (<http://www.openerp-italia.org>).
2324+# Copyright (C) 2010 Associazione OpenERP Italia
2325+# (<http://www.openerp-italia.org>).
2326 # All Rights Reserved
2327-# $Id$
2328 #
2329 # This program is free software: you can redistribute it and/or modify
2330 # it under the terms of the GNU Affero General Public License as published by
2331@@ -15,7 +15,7 @@
2332 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2333 # GNU General Public License for more details.
2334 #
2335-# You should have received a copy of the GNU General Public License
2336+# You should have received a copy of the GNU Affero General Public License
2337 # along with this program. If not, see <http://www.gnu.org/licenses/>.
2338 #
2339 ##############################################################################
2340
2341=== modified file 'l10n_it_account/__openerp__.py'
2342--- l10n_it_account/__openerp__.py 2011-05-05 16:46:44 +0000
2343+++ l10n_it_account/__openerp__.py 2012-06-27 10:42:57 +0000
2344@@ -1,13 +1,13 @@
2345-# -*- encoding: utf-8 -*-
2346+# -*- coding: utf-8 -*-
2347 ##############################################################################
2348 #
2349-# Copyright (C) 2010 OpenERP Italian Community (<http://www.openerp-italia.org>).
2350+# Copyright (C) 2010-2012 Associazione OpenERP Italia
2351+# (<http://www.openerp-italia.org>).
2352 # All Rights Reserved
2353-# $Id$
2354 #
2355 # This program is free software: you can redistribute it and/or modify
2356-# it under the terms of the GNU Affero General Public License as published by
2357-# the Free Software Foundation, either version 3 of the License, or
2358+# it under the terms of the GNU Affero General Public License as published
2359+# by the Free Software Foundation, either version 3 of the License, or
2360 # (at your option) any later version.
2361 #
2362 # This program is distributed in the hope that it will be useful,
2363@@ -15,7 +15,7 @@
2364 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2365 # GNU General Public License for more details.
2366 #
2367-# You should have received a copy of the GNU General Public License
2368+# You should have received a copy of the GNU Affero General Public License
2369 # along with this program. If not, see <http://www.gnu.org/licenses/>.
2370 #
2371 ##############################################################################
2372@@ -34,7 +34,7 @@
2373 'author': 'OpenERP Italian Community',
2374 'website': 'http://www.openerp-italia.org',
2375 'license': 'AGPL-3',
2376- "depends" : ['account','base_vat','account_chart','base_iban', 'account_sequence', 'l10n_it_base'],
2377+ "depends" : ['account','base_vat','account_chart','base_iban', 'l10n_it_base'],
2378 "init_xml" : ['account/partner_view.xml'],
2379 "update_xml" : [],
2380 "demo_xml" : [],
2381
2382=== modified file 'l10n_it_account/account/__init__.py'
2383--- l10n_it_account/account/__init__.py 2010-09-22 13:43:42 +0000
2384+++ l10n_it_account/account/__init__.py 2012-06-27 10:42:57 +0000
2385@@ -1,12 +1,12 @@
2386-# -*- encoding: utf-8 -*-
2387+# -*- coding: utf-8 -*-
2388 ##############################################################################
2389 #
2390-# Copyright (C) 2010 OpenERP Italian Community (<http://www.openerp-italia.org>).
2391+# Copyright (C) 2010 Associazione OpenERP Italia
2392+# (<http://www.openerp-italia.org>).
2393 # All Rights Reserved
2394-# $Id$
2395 #
2396 # This program is free software: you can redistribute it and/or modify
2397-# it under the terms of the GNU General Public License as published by
2398+# it under the terms of the GNU Affero General Public License as published by
2399 # the Free Software Foundation, either version 3 of the License, or
2400 # (at your option) any later version.
2401 #
2402@@ -15,7 +15,7 @@
2403 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2404 # GNU General Public License for more details.
2405 #
2406-# You should have received a copy of the GNU General Public License
2407+# You should have received a copy of the GNU Affero General Public License
2408 # along with this program. If not, see <http://www.gnu.org/licenses/>.
2409 #
2410 ##############################################################################
2411
2412=== modified file 'l10n_it_account/account/account.py'
2413--- l10n_it_account/account/account.py 2010-11-05 08:13:00 +0000
2414+++ l10n_it_account/account/account.py 2012-06-27 10:42:57 +0000
2415@@ -1,3 +1,25 @@
2416+# -*- coding: utf-8 -*-
2417+##############################################################################
2418+#
2419+# Copyright (C) 2010-2012 Associazione OpenERP Italia
2420+# (<http://www.openerp-italia.org>).
2421+# All Rights Reserved
2422+#
2423+# This program is free software: you can redistribute it and/or modify
2424+# it under the terms of the GNU Affero General Public License as published by
2425+# the Free Software Foundation, either version 3 of the License, or
2426+# (at your option) any later version.
2427+#
2428+# This program is distributed in the hope that it will be useful,
2429+# but WITHOUT ANY WARRANTY; without even the implied warranty of
2430+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2431+# GNU General Public License for more details.
2432+#
2433+# You should have received a copy of the GNU Affero General Public License
2434+# along with this program. If not, see <http://www.gnu.org/licenses/>.
2435+#
2436+##############################################################################
2437+
2438 from osv import fields, osv
2439 import datetime
2440
2441
2442=== modified file 'l10n_it_account/account/invoice.py'
2443--- l10n_it_account/account/invoice.py 2011-11-23 16:40:59 +0000
2444+++ l10n_it_account/account/invoice.py 2012-06-27 10:42:57 +0000
2445@@ -1,12 +1,12 @@
2446-# -*- encoding: utf-8 -*-
2447+# -*- coding: utf-8 -*-
2448 ##############################################################################
2449 #
2450-# Copyright (C) 2010 OpenERP Italian Community (<http://www.openerp-italia.org>).
2451+# Copyright (C) 2010 Associazione OpenERP Italia
2452+# (<http://www.openerp-italia.org>).
2453 # All Rights Reserved
2454-# $Id$
2455 #
2456 # This program is free software: you can redistribute it and/or modify
2457-# it under the terms of the GNU General Public License as published by
2458+# it under the terms of the GNU Affero General Public License as published by
2459 # the Free Software Foundation, either version 3 of the License, or
2460 # (at your option) any later version.
2461 #
2462@@ -15,7 +15,7 @@
2463 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2464 # GNU General Public License for more details.
2465 #
2466-# You should have received a copy of the GNU General Public License
2467+# You should have received a copy of the GNU Affero General Public License
2468 # along with this program. If not, see <http://www.gnu.org/licenses/>.
2469 #
2470 ##############################################################################
2471
2472=== modified file 'l10n_it_base/partner/data/res.partner.title.csv'
2473--- l10n_it_base/partner/data/res.partner.title.csv 2011-01-20 08:16:16 +0000
2474+++ l10n_it_base/partner/data/res.partner.title.csv 2012-06-27 10:42:57 +0000
2475@@ -1,17 +1,17 @@
2476-"id","name","shortcut","domain"
2477-1,"Ditta individuale","DI","partner"
2478-2,"S.n.c.","S.n.c.","partner"
2479-3,"S.a.s.","S.a.s.","partner"
2480-4,"S.p.A.","S.p.A.","partner"
2481-5,"S.r.l.","S.r.l.","partner"
2482-6,"S.a.p.a.","S.a.p.a.","partner"
2483-7,"Impresa Famigliare","IF","partner"
2484-8,"Persona Fisica","PF","partner"
2485-9,"Spett.le","Spett.le","contact"
2486-10,"Ing.","Ing.","contact"
2487-11,"Egr. Sig.ra","Egr. Sig.ra","contact"
2488-12,"Dott.","Dott.","contact"
2489-13,"Notaio","Notaio","contact"
2490-14,"Arch.","Arch.","contact"
2491-15,"Avv.","Avv.","contact"
2492-16,"Egr. Sig.","Egr. Sig.","contact"
2493+id,name,shortcut,domain
2494+di,Ditta individuale,DI,partner
2495+snc,S.n.c.,S.n.c.,partner
2496+sas,S.a.s.,S.a.s.,partner
2497+spa,S.p.A.,S.p.A.,partner
2498+srl,S.r.l.,S.r.l.,partner
2499+sapa,S.a.p.a.,S.a.p.a.,partner
2500+if,Impresa Famigliare,IF,partner
2501+pf,Persona Fisica,PF,partner
2502+spettle,Spett.le,Spett.le,contact
2503+ing,Ing.,Ing.,contact
2504+egrsigra,Egr. Sig.ra,Egr. Sig.ra,contact
2505+dott,Dott.,Dott.,contact
2506+notaio,Notaio,Notaio,contact
2507+arch,Arch.,Arch.,contact
2508+avv,Avv.,Avv.,contact
2509+egrsig,Egr. Sig.,Egr. Sig.,contact
2510
2511=== modified file 'l10n_it_corrispettivi/__openerp__.py'
2512--- l10n_it_corrispettivi/__openerp__.py 2012-01-02 08:02:51 +0000
2513+++ l10n_it_corrispettivi/__openerp__.py 2012-06-27 10:42:57 +0000
2514@@ -1,4 +1,4 @@
2515-# -*- encoding: utf-8 -*-
2516+# -*- coding: utf-8 -*-
2517 ##############################################################################
2518 #
2519 # Copyright (C) 2011 Associazione OpenERP Italia
2520
2521=== added directory 'l10n_it_prima_nota_cassa'
2522=== added file 'l10n_it_prima_nota_cassa/AUTHORS.txt'
2523--- l10n_it_prima_nota_cassa/AUTHORS.txt 1970-01-01 00:00:00 +0000
2524+++ l10n_it_prima_nota_cassa/AUTHORS.txt 2012-06-27 10:42:57 +0000
2525@@ -0,0 +1,2 @@
2526+Leonardo Pistone <leonardo.pistone@domsense.com>
2527+Lorenzo Battistini <lorenzo.battistini@domsense.com>
2528
2529=== added file 'l10n_it_prima_nota_cassa/README.txt'
2530--- l10n_it_prima_nota_cassa/README.txt 1970-01-01 00:00:00 +0000
2531+++ l10n_it_prima_nota_cassa/README.txt 2012-06-27 10:42:57 +0000
2532@@ -0,0 +1,5 @@
2533+Questo modulo usa report_webkit.
2534+E' necessario installare wkhtmltopdf per la stampa dei reports.
2535+
2536+La versione inclusa in Ubuntu necessità di alcune patch, quindi è più agevole scaricare l'eseguibile binario dal sito del progetto:
2537+http://code.google.com/p/wkhtmltopdf/
2538
2539=== added file 'l10n_it_prima_nota_cassa/__init__.py'
2540--- l10n_it_prima_nota_cassa/__init__.py 1970-01-01 00:00:00 +0000
2541+++ l10n_it_prima_nota_cassa/__init__.py 2012-06-27 10:42:57 +0000
2542@@ -0,0 +1,24 @@
2543+# -*- coding: utf-8 -*-
2544+##############################################################################
2545+#
2546+# Copyright (C) 2011-2012 Associazione OpenERP Italia
2547+# (<http://www.openerp-italia.org>).
2548+# All Rights Reserved
2549+#
2550+# This program is free software: you can redistribute it and/or modify
2551+# it under the terms of the GNU Affero General Public License as published by
2552+# the Free Software Foundation, either version 3 of the License, or
2553+# (at your option) any later version.
2554+#
2555+# This program is distributed in the hope that it will be useful,
2556+# but WITHOUT ANY WARRANTY; without even the implied warranty of
2557+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2558+# GNU General Public License for more details.
2559+#
2560+# You should have received a copy of the GNU Affero General Public License
2561+# along with this program. If not, see <http://www.gnu.org/licenses/>.
2562+#
2563+##############################################################################
2564+
2565+import report
2566+import wizard
2567
2568=== added file 'l10n_it_prima_nota_cassa/__openerp__.py'
2569--- l10n_it_prima_nota_cassa/__openerp__.py 1970-01-01 00:00:00 +0000
2570+++ l10n_it_prima_nota_cassa/__openerp__.py 2012-06-27 10:42:57 +0000
2571@@ -0,0 +1,40 @@
2572+# -*- coding: utf-8 -*-
2573+##############################################################################
2574+#
2575+# Copyright (C) 2011-2012 Associazione OpenERP Italia
2576+# (<http://www.openerp-italia.org>).
2577+# All Rights Reserved
2578+#
2579+# This program is free software: you can redistribute it and/or modify
2580+# it under the terms of the GNU Affero General Public License as published by
2581+# the Free Software Foundation, either version 3 of the License, or
2582+# (at your option) any later version.
2583+#
2584+# This program is distributed in the hope that it will be useful,
2585+# but WITHOUT ANY WARRANTY; without even the implied warranty of
2586+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2587+# GNU General Public License for more details.
2588+#
2589+# You should have received a copy of the GNU Affero General Public License
2590+# along with this program. If not, see <http://www.gnu.org/licenses/>.
2591+#
2592+##############################################################################
2593+{
2594+ 'name': 'Italian Localisation - Prima Nota Cassa',
2595+ 'version': '0.1',
2596+ 'category': 'Localisation/Italy',
2597+ 'description': """Accounting reports - Prima Nota Cassa - Webkit""",
2598+ 'author': 'OpenERP Italian Community',
2599+ 'website': 'http://www.openerp-italia.org',
2600+ 'license': 'AGPL-3',
2601+ "depends" : ['account', 'report_webkit'],
2602+ "init_xml" : [
2603+ ],
2604+ "update_xml" : [
2605+ 'reports.xml',
2606+ 'wizard/wizard_print_prima_nota_cassa.xml',
2607+ ],
2608+ "demo_xml" : [],
2609+ "active": False,
2610+ "installable": True
2611+}
2612
2613=== added directory 'l10n_it_prima_nota_cassa/i18n'
2614=== added file 'l10n_it_prima_nota_cassa/i18n/it.po'
2615--- l10n_it_prima_nota_cassa/i18n/it.po 1970-01-01 00:00:00 +0000
2616+++ l10n_it_prima_nota_cassa/i18n/it.po 2012-06-27 10:42:57 +0000
2617@@ -0,0 +1,214 @@
2618+# Translation of OpenERP Server.
2619+# This file contains the translation of the following modules:
2620+# * l10n_it_prima_nota_cassa
2621+#
2622+msgid ""
2623+msgstr ""
2624+"Project-Id-Version: OpenERP Server 6.0.2\n"
2625+"Report-Msgid-Bugs-To: support@openerp.com\n"
2626+"POT-Creation-Date: 2011-08-02 09:42+0000\n"
2627+"PO-Revision-Date: 2011-08-02 12:02+0100\n"
2628+"Last-Translator: Lorenzo Battistini <lorenzo.battistini@agilebg.com>\n"
2629+"Language-Team: \n"
2630+"MIME-Version: 1.0\n"
2631+"Content-Type: text/plain; charset=UTF-8\n"
2632+"Content-Transfer-Encoding: 8bit\n"
2633+"Plural-Forms: \n"
2634+
2635+#. module: l10n_it_prima_nota_cassa
2636+#: report:report.account.print.prima_nota_cassa:8
2637+msgid "Prime entry"
2638+msgstr "Prima nota"
2639+
2640+#. module: l10n_it_prima_nota_cassa
2641+#: model:ir.module.module,shortdesc:l10n_it_prima_nota_cassa.module_meta_information
2642+msgid "Italian Localisation - Prima Nota Cassa"
2643+msgstr "Localizzazione Italiana - Prima Nota Cassa"
2644+
2645+#. module: l10n_it_prima_nota_cassa
2646+#: view:account.report.prima_nota_cassa:0
2647+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."
2648+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."
2649+
2650+#. module: l10n_it_prima_nota_cassa
2651+#: report:report.account.print.prima_nota_cassa:43
2652+#: code:addons/l10n_it_prima_nota_cassa/report/prima_nota_cassa.py:36
2653+#, python-format
2654+msgid "Debit"
2655+msgstr "Entrate"
2656+
2657+#. module: l10n_it_prima_nota_cassa
2658+#: report:report.account.print.prima_nota_cassa:16
2659+msgid "Filter By"
2660+msgstr "Filtro per"
2661+
2662+#. module: l10n_it_prima_nota_cassa
2663+#: report:report.account.print.prima_nota_cassa:42
2664+msgid "Entry Label"
2665+msgstr "Descrizione"
2666+
2667+#. module: l10n_it_prima_nota_cassa
2668+#: report:report.account.print.prima_nota_cassa:40
2669+msgid "Ref"
2670+msgstr "Rif"
2671+
2672+#. module: l10n_it_prima_nota_cassa
2673+#: model:ir.model,name:l10n_it_prima_nota_cassa.model_account_report_prima_nota_cassa
2674+msgid "Print Prima Nota Cassa"
2675+msgstr "Stampa Prima Nota Cassa"
2676+
2677+#. module: l10n_it_prima_nota_cassa
2678+#: selection:account.report.prima_nota_cassa,display_account:0
2679+msgid "With balance is not equal to 0"
2680+msgstr "Con saldo diverso da 0"
2681+
2682+#. module: l10n_it_prima_nota_cassa
2683+#: model:ir.module.module,description:l10n_it_prima_nota_cassa.module_meta_information
2684+msgid "Accounting reports - Prima Nota Cassa - Webkit"
2685+msgstr "Stampe Contabili - Prima Nota Cassa - Webkit"
2686+
2687+#. module: l10n_it_prima_nota_cassa
2688+#: report:report.account.print.prima_nota_cassa:15
2689+msgid "Jounal"
2690+msgstr "Sezionale"
2691+
2692+#. module: l10n_it_prima_nota_cassa
2693+#: selection:account.report.prima_nota_cassa,filter:0
2694+#: report:report.account.print.prima_nota_cassa:37
2695+msgid "Date"
2696+msgstr "Data"
2697+
2698+#. module: l10n_it_prima_nota_cassa
2699+#: report:report.account.print.prima_nota_cassa:13
2700+msgid "Chart of Account"
2701+msgstr "Piano dei conti"
2702+
2703+#. module: l10n_it_prima_nota_cassa
2704+#: field:account.report.prima_nota_cassa,journal_ids:0
2705+msgid "Journals"
2706+msgstr "Sezionali"
2707+
2708+#. module: l10n_it_prima_nota_cassa
2709+#: field:account.report.prima_nota_cassa,target_move:0
2710+#: report:report.account.print.prima_nota_cassa:17
2711+msgid "Target Moves"
2712+msgstr "Registrazioni target"
2713+
2714+#. module: l10n_it_prima_nota_cassa
2715+#: help:account.report.prima_nota_cassa,chart_account_id:0
2716+msgid "Select Charts of Accounts"
2717+msgstr "Seleziona piano dei conti"
2718+
2719+#. module: l10n_it_prima_nota_cassa
2720+#: field:account.report.prima_nota_cassa,date_to:0
2721+msgid "End Date"
2722+msgstr "Data fine"
2723+
2724+#. module: l10n_it_prima_nota_cassa
2725+#: field:account.report.prima_nota_cassa,display_account:0
2726+msgid "Display accounts"
2727+msgstr "Visualizza conti"
2728+
2729+#. module: l10n_it_prima_nota_cassa
2730+#: selection:account.report.prima_nota_cassa,target_move:0
2731+msgid "All Posted Entries"
2732+msgstr "Tutte le registrazioni confermate"
2733+
2734+#. module: l10n_it_prima_nota_cassa
2735+#: help:account.report.prima_nota_cassa,fiscalyear_id:0
2736+msgid "Keep empty for all open fiscal year"
2737+msgstr "Lasciare vuoto per tutti gli anni fiscali aperti"
2738+
2739+#. module: l10n_it_prima_nota_cassa
2740+#: report:report.account.print.prima_nota_cassa:44
2741+msgid "Credit"
2742+msgstr "Uscite"
2743+
2744+#. module: l10n_it_prima_nota_cassa
2745+#: report:report.account.print.prima_nota_cassa:14
2746+msgid "Fiscal Year"
2747+msgstr "Anno fiscale"
2748+
2749+#. module: l10n_it_prima_nota_cassa
2750+#: selection:account.report.prima_nota_cassa,filter:0
2751+msgid "No Filters"
2752+msgstr "Nessun filtro"
2753+
2754+#. module: l10n_it_prima_nota_cassa
2755+#: field:account.report.prima_nota_cassa,chart_account_id:0
2756+msgid "Chart of account"
2757+msgstr "Piano dei conti"
2758+
2759+#. module: l10n_it_prima_nota_cassa
2760+#: report:report.account.print.prima_nota_cassa:45
2761+msgid "Balance"
2762+msgstr "Saldo"
2763+
2764+#. module: l10n_it_prima_nota_cassa
2765+#: view:account.report.prima_nota_cassa:0
2766+#: model:ir.actions.act_window,name:l10n_it_prima_nota_cassa.action_account_prima_nota_cassa
2767+#: model:ir.actions.report.xml,name:l10n_it_prima_nota_cassa.prima_nota_cassa
2768+#: model:ir.ui.menu,name:l10n_it_prima_nota_cassa.menu_print_prima_nota_cassa
2769+msgid "Prima Nota Cassa"
2770+msgstr "Prima Nota Cassa"
2771+
2772+#. module: l10n_it_prima_nota_cassa
2773+#: selection:account.report.prima_nota_cassa,display_account:0
2774+msgid "With movements"
2775+msgstr "Con registrazioni"
2776+
2777+#. module: l10n_it_prima_nota_cassa
2778+#: selection:account.report.prima_nota_cassa,display_account:0
2779+msgid "All"
2780+msgstr "Tutti"
2781+
2782+#. module: l10n_it_prima_nota_cassa
2783+#: field:account.report.prima_nota_cassa,period_from:0
2784+msgid "Start period"
2785+msgstr "Periodo di inizio"
2786+
2787+#. module: l10n_it_prima_nota_cassa
2788+#: report:report.account.print.prima_nota_cassa:41
2789+msgid "Move"
2790+msgstr "Movimento"
2791+
2792+#. module: l10n_it_prima_nota_cassa
2793+#: field:account.report.prima_nota_cassa,period_to:0
2794+msgid "End period"
2795+msgstr "Periodo di fine"
2796+
2797+#. module: l10n_it_prima_nota_cassa
2798+#: field:account.report.prima_nota_cassa,fiscalyear_id:0
2799+msgid "Fiscal year"
2800+msgstr "Anno fiscale"
2801+
2802+#. module: l10n_it_prima_nota_cassa
2803+#: selection:account.report.prima_nota_cassa,filter:0
2804+msgid "Periods"
2805+msgstr "Periodi"
2806+
2807+#. module: l10n_it_prima_nota_cassa
2808+#: report:report.account.print.prima_nota_cassa:38
2809+msgid "JRNL"
2810+msgstr "JRNL"
2811+
2812+#. module: l10n_it_prima_nota_cassa
2813+#: report:report.account.print.prima_nota_cassa:39
2814+msgid "Partner"
2815+msgstr "Partner"
2816+
2817+#. module: l10n_it_prima_nota_cassa
2818+#: field:account.report.prima_nota_cassa,date_from:0
2819+msgid "Start Date"
2820+msgstr "Data inizio"
2821+
2822+#. module: l10n_it_prima_nota_cassa
2823+#: field:account.report.prima_nota_cassa,filter:0
2824+msgid "Filter by"
2825+msgstr "Filtra per"
2826+
2827+#. module: l10n_it_prima_nota_cassa
2828+#: selection:account.report.prima_nota_cassa,target_move:0
2829+msgid "All Entries"
2830+msgstr "Tutte le registrazioni"
2831+
2832
2833=== added file 'l10n_it_prima_nota_cassa/i18n/l10n_it_prima_nota_cassa.pot'
2834--- l10n_it_prima_nota_cassa/i18n/l10n_it_prima_nota_cassa.pot 1970-01-01 00:00:00 +0000
2835+++ l10n_it_prima_nota_cassa/i18n/l10n_it_prima_nota_cassa.pot 2012-06-27 10:42:57 +0000
2836@@ -0,0 +1,214 @@
2837+# Translation of OpenERP Server.
2838+# This file contains the translation of the following modules:
2839+# * l10n_it_prima_nota_cassa
2840+#
2841+msgid ""
2842+msgstr ""
2843+"Project-Id-Version: OpenERP Server 6.0.2\n"
2844+"Report-Msgid-Bugs-To: support@openerp.com\n"
2845+"POT-Creation-Date: 2011-08-02 07:44+0000\n"
2846+"PO-Revision-Date: 2011-08-02 07:44+0000\n"
2847+"Last-Translator: <>\n"
2848+"Language-Team: \n"
2849+"MIME-Version: 1.0\n"
2850+"Content-Type: text/plain; charset=UTF-8\n"
2851+"Content-Transfer-Encoding: \n"
2852+"Plural-Forms: \n"
2853+
2854+#. module: l10n_it_prima_nota_cassa
2855+#: report:addons/l10n_it_prima_nota_cassa/report/prima_nota_cassa.mako:8
2856+msgid "Prime entry"
2857+msgstr ""
2858+
2859+#. module: l10n_it_prima_nota_cassa
2860+#: model:ir.module.module,description:l10n_it_prima_nota_cassa.module_meta_information
2861+msgid "Accounting reports - Prima Nota Cassa - Webkit"
2862+msgstr ""
2863+
2864+#. module: l10n_it_prima_nota_cassa
2865+#: view:account.report.prima_nota_cassa:0
2866+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."
2867+msgstr ""
2868+
2869+#. module: l10n_it_prima_nota_cassa
2870+#: report:addons/l10n_it_prima_nota_cassa/report/prima_nota_cassa.mako:43
2871+#: code:addons/l10n_it_prima_nota_cassa/report/prima_nota_cassa.py:36
2872+#, python-format
2873+msgid "Debit"
2874+msgstr ""
2875+
2876+#. module: l10n_it_prima_nota_cassa
2877+#: report:addons/l10n_it_prima_nota_cassa/report/prima_nota_cassa.mako:16
2878+msgid "Filter By"
2879+msgstr ""
2880+
2881+#. module: l10n_it_prima_nota_cassa
2882+#: report:addons/l10n_it_prima_nota_cassa/report/prima_nota_cassa.mako:42
2883+msgid "Entry Label"
2884+msgstr ""
2885+
2886+#. module: l10n_it_prima_nota_cassa
2887+#: report:addons/l10n_it_prima_nota_cassa/report/prima_nota_cassa.mako:40
2888+msgid "Ref"
2889+msgstr ""
2890+
2891+#. module: l10n_it_prima_nota_cassa
2892+#: model:ir.model,name:l10n_it_prima_nota_cassa.model_account_report_prima_nota_cassa
2893+msgid "Print Prima Nota Cassa"
2894+msgstr ""
2895+
2896+#. module: l10n_it_prima_nota_cassa
2897+#: selection:account.report.prima_nota_cassa,display_account:0
2898+msgid "With balance is not equal to 0"
2899+msgstr ""
2900+
2901+#. module: l10n_it_prima_nota_cassa
2902+#: report:addons/l10n_it_prima_nota_cassa/report/prima_nota_cassa.mako:15
2903+msgid "Jounal"
2904+msgstr ""
2905+
2906+#. module: l10n_it_prima_nota_cassa
2907+#: model:ir.module.module,shortdesc:l10n_it_prima_nota_cassa.module_meta_information
2908+msgid "Italian Localisation - Accounting Webkit reports"
2909+msgstr ""
2910+
2911+#. module: l10n_it_prima_nota_cassa
2912+#: selection:account.report.prima_nota_cassa,filter:0
2913+#: report:addons/l10n_it_prima_nota_cassa/report/prima_nota_cassa.mako:37
2914+msgid "Date"
2915+msgstr ""
2916+
2917+#. module: l10n_it_prima_nota_cassa
2918+#: report:addons/l10n_it_prima_nota_cassa/report/prima_nota_cassa.mako:13
2919+msgid "Chart of Account"
2920+msgstr ""
2921+
2922+#. module: l10n_it_prima_nota_cassa
2923+#: field:account.report.prima_nota_cassa,journal_ids:0
2924+msgid "Journals"
2925+msgstr ""
2926+
2927+#. module: l10n_it_prima_nota_cassa
2928+#: field:account.report.prima_nota_cassa,target_move:0
2929+#: report:addons/l10n_it_prima_nota_cassa/report/prima_nota_cassa.mako:17
2930+msgid "Target Moves"
2931+msgstr ""
2932+
2933+#. module: l10n_it_prima_nota_cassa
2934+#: help:account.report.prima_nota_cassa,chart_account_id:0
2935+msgid "Select Charts of Accounts"
2936+msgstr ""
2937+
2938+#. module: l10n_it_prima_nota_cassa
2939+#: field:account.report.prima_nota_cassa,date_to:0
2940+msgid "End Date"
2941+msgstr ""
2942+
2943+#. module: l10n_it_prima_nota_cassa
2944+#: field:account.report.prima_nota_cassa,display_account:0
2945+msgid "Display accounts"
2946+msgstr ""
2947+
2948+#. module: l10n_it_prima_nota_cassa
2949+#: selection:account.report.prima_nota_cassa,target_move:0
2950+msgid "All Posted Entries"
2951+msgstr ""
2952+
2953+#. module: l10n_it_prima_nota_cassa
2954+#: help:account.report.prima_nota_cassa,fiscalyear_id:0
2955+msgid "Keep empty for all open fiscal year"
2956+msgstr ""
2957+
2958+#. module: l10n_it_prima_nota_cassa
2959+#: report:addons/l10n_it_prima_nota_cassa/report/prima_nota_cassa.mako:44
2960+msgid "Credit"
2961+msgstr ""
2962+
2963+#. module: l10n_it_prima_nota_cassa
2964+#: report:addons/l10n_it_prima_nota_cassa/report/prima_nota_cassa.mako:14
2965+msgid "Fiscal Year"
2966+msgstr ""
2967+
2968+#. module: l10n_it_prima_nota_cassa
2969+#: selection:account.report.prima_nota_cassa,filter:0
2970+msgid "No Filters"
2971+msgstr ""
2972+
2973+#. module: l10n_it_prima_nota_cassa
2974+#: field:account.report.prima_nota_cassa,chart_account_id:0
2975+msgid "Chart of account"
2976+msgstr ""
2977+
2978+#. module: l10n_it_prima_nota_cassa
2979+#: report:addons/l10n_it_prima_nota_cassa/report/prima_nota_cassa.mako:45
2980+msgid "Balance"
2981+msgstr ""
2982+
2983+#. module: l10n_it_prima_nota_cassa
2984+#: view:account.report.prima_nota_cassa:0
2985+#: model:ir.actions.act_window,name:l10n_it_prima_nota_cassa.action_account_prima_nota_cassa
2986+#: model:ir.actions.report.xml,name:l10n_it_prima_nota_cassa.prima_nota_cassa
2987+#: model:ir.ui.menu,name:l10n_it_prima_nota_cassa.menu_print_prima_nota_cassa
2988+msgid "Prima Nota Cassa"
2989+msgstr ""
2990+
2991+#. module: l10n_it_prima_nota_cassa
2992+#: selection:account.report.prima_nota_cassa,display_account:0
2993+msgid "With movements"
2994+msgstr ""
2995+
2996+#. module: l10n_it_prima_nota_cassa
2997+#: selection:account.report.prima_nota_cassa,display_account:0
2998+msgid "All"
2999+msgstr ""
3000+
3001+#. module: l10n_it_prima_nota_cassa
3002+#: field:account.report.prima_nota_cassa,period_from:0
3003+msgid "Start period"
3004+msgstr ""
3005+
3006+#. module: l10n_it_prima_nota_cassa
3007+#: report:addons/l10n_it_prima_nota_cassa/report/prima_nota_cassa.mako:41
3008+msgid "Move"
3009+msgstr ""
3010+
3011+#. module: l10n_it_prima_nota_cassa
3012+#: field:account.report.prima_nota_cassa,period_to:0
3013+msgid "End period"
3014+msgstr ""
3015+
3016+#. module: l10n_it_prima_nota_cassa
3017+#: field:account.report.prima_nota_cassa,fiscalyear_id:0
3018+msgid "Fiscal year"
3019+msgstr ""
3020+
3021+#. module: l10n_it_prima_nota_cassa
3022+#: selection:account.report.prima_nota_cassa,filter:0
3023+msgid "Periods"
3024+msgstr ""
3025+
3026+#. module: l10n_it_prima_nota_cassa
3027+#: report:addons/l10n_it_prima_nota_cassa/report/prima_nota_cassa.mako:38
3028+msgid "JRNL"
3029+msgstr ""
3030+
3031+#. module: l10n_it_prima_nota_cassa
3032+#: report:addons/l10n_it_prima_nota_cassa/report/prima_nota_cassa.mako:39
3033+msgid "Partner"
3034+msgstr ""
3035+
3036+#. module: l10n_it_prima_nota_cassa
3037+#: field:account.report.prima_nota_cassa,date_from:0
3038+msgid "Start Date"
3039+msgstr ""
3040+
3041+#. module: l10n_it_prima_nota_cassa
3042+#: field:account.report.prima_nota_cassa,filter:0
3043+msgid "Filter by"
3044+msgstr ""
3045+
3046+#. module: l10n_it_prima_nota_cassa
3047+#: selection:account.report.prima_nota_cassa,target_move:0
3048+msgid "All Entries"
3049+msgstr ""
3050+
3051
3052=== added directory 'l10n_it_prima_nota_cassa/report'
3053=== added file 'l10n_it_prima_nota_cassa/report/__init__.py'
3054--- l10n_it_prima_nota_cassa/report/__init__.py 1970-01-01 00:00:00 +0000
3055+++ l10n_it_prima_nota_cassa/report/__init__.py 2012-06-27 10:42:57 +0000
3056@@ -0,0 +1,22 @@
3057+# -*- coding: utf-8 -*-
3058+##############################################################################
3059+#
3060+# Copyright (C) 2011-2012 Associazione OpenERP Italia
3061+# (<http://www.openerp-italia.org>).
3062+# All Rights Reserved
3063+#
3064+# This program is free software: you can redistribute it and/or modify
3065+# it under the terms of the GNU Affero General Public License as published by
3066+# the Free Software Foundation, either version 3 of the License, or
3067+# (at your option) any later version.
3068+#
3069+# This program is distributed in the hope that it will be useful,
3070+# but WITHOUT ANY WARRANTY; without even the implied warranty of
3071+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
3072+# GNU General Public License for more details.
3073+#
3074+# You should have received a copy of the GNU Affero General Public License
3075+# along with this program. If not, see <http://www.gnu.org/licenses/>.
3076+#
3077+##############################################################################
3078+import prima_nota_cassa
3079
3080=== added file 'l10n_it_prima_nota_cassa/report/prima_nota_cassa.mako'
3081--- l10n_it_prima_nota_cassa/report/prima_nota_cassa.mako 1970-01-01 00:00:00 +0000
3082+++ l10n_it_prima_nota_cassa/report/prima_nota_cassa.mako 2012-06-27 10:42:57 +0000
3083@@ -0,0 +1,67 @@
3084+<html>
3085+<head>
3086+ <style type="text/css">
3087+ ${css}
3088+ </style>
3089+</head>
3090+<body>
3091+<h1 class="title">${_("Prime entry")} </h1>
3092+## ${ ipdb(data) }
3093+
3094+<table class="basic_table" width="90%">
3095+ <tr>
3096+ <td>${ _("Chart of Account") }</td>
3097+ <td>${ _("Fiscal Year") }</td>
3098+ <td>${ _("Jounal")}</td>
3099+ <td>${ _("Filter By") }</td>
3100+ <td>${ _("Target Moves") }</td>
3101+ </tr>
3102+ <tr>
3103+
3104+ <td>${ get_account(data) or '' }</td>
3105+ <td>${ get_fiscalyear(data) or '' }</td>
3106+ <td>${ ', '.join([ lt or '' for lt in get_journal(data)]) }</td>
3107+ <td>${ get_filter(data) or '' }</td>
3108+ <td>${ get_target_move(data) }</td>
3109+ </tr>
3110+</table>
3111+
3112+<br />
3113+
3114+<div id="results">
3115+ % for a in objects:
3116+## ${ company.partner_id.lang }
3117+ <% setLang(company.partner_id.lang) %>
3118+ <table class="list_table" width="90%">
3119+ <tr>
3120+ <th> ${ _('Date') }</th>
3121+ <th> ${ _('JRNL') }</th>
3122+ <th> ${ _('Partner') }</th>
3123+ <th> ${ _('Ref') }</th>
3124+ <th> ${ _('Move') }</th>
3125+ <th> ${ _('Entry Label') }</th>
3126+ <th> ${ _('Debit') }</th>
3127+ <th> ${ _('Credit') }</th>
3128+ <th> ${ _('Balance') }</th>
3129+ </tr>
3130+
3131+
3132+ %for line in lines(a) :
3133+ <tr style="page-break-inside: avoid; vertical-align:text-top;">
3134+ <td>${ formatLang(line['ldate'], date=True) or ''|entity }</td>
3135+ <td>${ line['jname'] or ''|entity }</td>
3136+ <td>${ line['partner_name'] or ''|entity }</td>
3137+ <td>${ line['lref'] or ''|entity }</td>
3138+ <td>${ line['move'] or ''|entity }</td>
3139+ <td>${ line['lname'] or ''|entity }</td>
3140+ <td>${ formatLang(line['debit'], digits=get_digits(dp='Account')) |entity}</td>
3141+ <td>${ formatLang(line['credit'], digits=get_digits(dp='Account')) |entity}</td>
3142+ <td>${ line['debit'] - line['credit'] |entity}</td>
3143+ </tr>
3144+ %endfor
3145+ </table>
3146+ %endfor
3147+ ## ${ ipdb(data) }
3148+</div>
3149+</body>
3150+</html>
3151
3152=== added file 'l10n_it_prima_nota_cassa/report/prima_nota_cassa.py'
3153--- l10n_it_prima_nota_cassa/report/prima_nota_cassa.py 1970-01-01 00:00:00 +0000
3154+++ l10n_it_prima_nota_cassa/report/prima_nota_cassa.py 2012-06-27 10:42:57 +0000
3155@@ -0,0 +1,307 @@
3156+# -*- coding: utf-8 -*-
3157+##############################################################################
3158+#
3159+# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
3160+# Copyright (C) 2011-2012 Associazione OpenERP Italia
3161+# (<http://www.openerp-italia.org>).
3162+# All Rights Reserved
3163+#
3164+# This program is free software: you can redistribute it and/or modify
3165+# it under the terms of the GNU Affero General Public License as published by
3166+# the Free Software Foundation, either version 3 of the License, or
3167+# (at your option) any later version.
3168+#
3169+# This program is distributed in the hope that it will be useful,
3170+# but WITHOUT ANY WARRANTY; without even the implied warranty of
3171+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
3172+# GNU General Public License for more details.
3173+#
3174+# You should have received a copy of the GNU Affero General Public License
3175+# along with this program. If not, see <http://www.gnu.org/licenses/>.
3176+#
3177+##############################################################################
3178+
3179+import time
3180+from report import report_sxw
3181+from account.report.common_report_header import common_report_header
3182+from tools.translate import _
3183+
3184+class print_prima_nota_cassa(report_sxw.rml_parse, common_report_header):
3185+ _name = 'report.account.prima_nota_cassa'
3186+
3187+ def set_context(self, objects, data, ids, report_type=None):
3188+ new_ids = ids
3189+ obj_move = self.pool.get('account.move.line')
3190+ self.sortby = data['form'].get('sortby', 'sort_date')
3191+ self.query = obj_move._query_get(self.cr, self.uid, obj='l', context=data['form'].get('used_context',{}))
3192+ ctx2 = data['form'].get('used_context',{}).copy()
3193+ print _('Debit')
3194+ self.init_balance = data['form']['initial_balance']
3195+ self.display_account = data['form']['display_account']
3196+ self.target_move = data['form'].get('target_move', 'all')
3197+ self.journal_ids = data['form'].get('journal_ids', [])
3198+ ctx = self.context.copy()
3199+ ctx['fiscalyear'] = data['form']['fiscalyear_id']
3200+ if data['form']['filter'] == 'filter_period':
3201+ ctx['periods'] = data['form']['periods']
3202+ elif data['form']['filter'] == 'filter_date':
3203+ ctx['date_from'] = data['form']['date_from']
3204+ ctx['date_to'] = data['form']['date_to']
3205+ ctx['state'] = data['form']['target_move']
3206+ self.context.update(ctx)
3207+ if (data['model'] == 'ir.ui.menu'):
3208+ new_ids = [data['form']['chart_account_id']]
3209+ objects = self.pool.get('account.account').browse(self.cr, self.uid, new_ids)
3210+ return super(print_prima_nota_cassa, self).set_context(objects, data, new_ids, report_type=report_type)
3211+
3212+ def __init__(self, cr, uid, name, context=None):
3213+ if context is None:
3214+ context = {}
3215+ super(print_prima_nota_cassa, self).__init__(cr, uid, name, context=context)
3216+ self.query = ""
3217+ self.tot_currency = 0.0
3218+ self.period_sql = ""
3219+ self.sold_accounts = {}
3220+ self.sortby = 'sort_date'
3221+ self.localcontext.update( {
3222+ 'time': time,
3223+ 'lines': self.lines,
3224+ 'sum_debit_account': self._sum_debit_account,
3225+ 'sum_credit_account': self._sum_credit_account,
3226+ 'sum_balance_account': self._sum_balance_account,
3227+ 'sum_currency_amount_account': self._sum_currency_amount_account,
3228+# 'get_children_accounts': self.get_children_accounts,
3229+ 'get_fiscalyear': self._get_fiscalyear,
3230+ 'get_journal': self._get_journal,
3231+ 'get_account': self._get_account,
3232+ 'get_start_period': self.get_start_period,
3233+ 'get_end_period': self.get_end_period,
3234+ 'get_filter': self._get_filter,
3235+ 'get_sortby': self._get_sortby,
3236+ 'get_start_date':self._get_start_date,
3237+ 'get_end_date':self._get_end_date,
3238+ 'get_target_move': self._get_target_move,
3239+ 'ipdb': self.ipdb
3240+ })
3241+ self.context = context
3242+
3243+ def ipdb(self, data):
3244+ import ipdb;ipdb.set_trace()
3245+ return 'LEP WAS HERE'
3246+
3247+ def _sum_currency_amount_account(self, account):
3248+ self.cr.execute('SELECT sum(l.amount_currency) AS tot_currency \
3249+ FROM account_move_line l \
3250+ WHERE l.account_id = %s AND %s' %(account.id, self.query))
3251+ sum_currency = self.cr.fetchone()[0] or 0.0
3252+ if self.init_balance:
3253+ self.cr.execute('SELECT sum(l.amount_currency) AS tot_currency \
3254+ FROM account_move_line l \
3255+ WHERE l.account_id = %s AND %s '%(account.id, self.init_query))
3256+ sum_currency += self.cr.fetchone()[0] or 0.0
3257+ return sum_currency
3258+
3259+ def get_children_accounts(self, account):
3260+ """ Return all the accounts that are children of the chosen main one
3261+ and are set as default for the selected cash and bank accounts"""
3262+
3263+ currency_obj = self.pool.get('res.currency')
3264+ journal_obj = self.pool.get('account.journal')
3265+
3266+ cash_bank_journals = journal_obj.search(self.cr, self.uid, [ ('type','in',('bank','cash')) ] )
3267+
3268+ cash_bank_accounts = [journal_obj.browse(self.cr, self.uid, j).default_credit_account_id.id for j in cash_bank_journals] + \
3269+ [journal_obj.browse(self.cr, self.uid, j).default_debit_account_id.id for j in cash_bank_journals]
3270+
3271+ ids_acc = [acc for acc in self.pool.get('account.account')._get_children_and_consol(self.cr, self.uid, account.id) \
3272+ if acc in cash_bank_accounts]
3273+
3274+ currency = account.currency_id and account.currency_id or account.company_id.currency_id
3275+
3276+ return ids_acc
3277+
3278+ def lines(self, main_account):
3279+ """ Return all the account_move_line of account with their account code counterparts """
3280+ #import ipdb;ipdb.set_trace()
3281+ account_ids = self.get_children_accounts(main_account)
3282+
3283+ move_state = ['draft','posted']
3284+ if self.target_move == 'posted':
3285+ move_state = ['posted', '']
3286+
3287+ # Then select all account_move_line of this account
3288+ if self.sortby == 'sort_journal_partner':
3289+ sql_sort='j.code, p.name, l.move_id'
3290+ else:
3291+ sql_sort='l.date, l.move_id'
3292+ sql = """
3293+ SELECT
3294+ l.id AS lid,
3295+ l.date AS ldate,
3296+ j.code AS lcode,
3297+ j.name AS jname,
3298+ l.currency_id,
3299+ l.amount_currency,
3300+ l.ref AS lref,
3301+ l.name AS lname,
3302+ COALESCE(l.debit,0) AS debit,
3303+ COALESCE(l.credit,0) AS credit,
3304+ l.period_id AS lperiod_id,
3305+ l.partner_id AS lpartner_id,
3306+ m.name AS move_name,
3307+ m.id AS mmove_id,
3308+ per.code as period_code,
3309+ c.symbol AS currency_code,
3310+ i.id AS invoice_id,
3311+ i.type AS invoice_type,
3312+ i.number AS invoice_number,
3313+ p.name AS partner_name
3314+ FROM account_move_line l
3315+ JOIN account_move m on (l.move_id=m.id)
3316+ LEFT JOIN res_currency c on (l.currency_id=c.id)
3317+ LEFT JOIN res_partner p on (l.partner_id=p.id)
3318+ LEFT JOIN account_invoice i on (m.id =i.move_id)
3319+ LEFT JOIN account_period per on (per.id=l.period_id)
3320+ JOIN account_journal j on (l.journal_id=j.id)
3321+ WHERE %s
3322+ AND m.state IN %s
3323+ AND l.account_id in %%s
3324+ ORDER by %s
3325+ """ %(self.query, tuple(move_state), sql_sort)
3326+ self.cr.execute(sql, (tuple(account_ids),))
3327+ res = self.cr.dictfetchall()
3328+ for l in res:
3329+ l['move'] = l['move_name'] != '/' and l['move_name'] or ('*'+str(l['mmove_id']))
3330+ l['partner'] = l['partner_name'] or ''
3331+ # Modification of amount Currency
3332+ if l['credit'] > 0:
3333+ if l['amount_currency'] != None:
3334+ l['amount_currency'] = abs(l['amount_currency']) * -1
3335+ if l['amount_currency'] != None:
3336+ self.tot_currency = self.tot_currency + l['amount_currency']
3337+ return res
3338+
3339+ def _sum_total_debit(self, account):
3340+ move_state = ['draft','posted']
3341+
3342+ account_ids = self.get_children_accounts(main_account)
3343+
3344+ if self.target_move == 'posted':
3345+ move_state = ['posted','']
3346+ self.cr.execute('SELECT sum(debit) \
3347+ FROM account_move_line l \
3348+ JOIN account_move am ON (am.id = l.move_id) \
3349+ WHERE (l.account_id = %s) \
3350+ AND (am.state IN %s) \
3351+ AND '+ self.query +' '
3352+ ,(account.id, tuple(move_state)))
3353+ sum_debit = self.cr.fetchone()[0] or 0.0
3354+ if self.init_balance:
3355+ self.cr.execute('SELECT sum(debit) \
3356+ FROM account_move_line l \
3357+ JOIN account_move am ON (am.id = l.move_id) \
3358+ WHERE (l.account_id = %s) \
3359+ AND (am.state IN %s) \
3360+ AND '+ self.init_query +' '
3361+ ,(account.id, tuple(move_state)))
3362+ # Add initial balance to the result
3363+ sum_debit += self.cr.fetchone()[0] or 0.0
3364+ return sum_debit
3365+
3366+ def _sum_debit_account(self, account):
3367+ if account.type == 'view':
3368+ return account.debit
3369+ move_state = ['draft','posted']
3370+ if self.target_move == 'posted':
3371+ move_state = ['posted','']
3372+ self.cr.execute('SELECT sum(debit) \
3373+ FROM account_move_line l \
3374+ JOIN account_move am ON (am.id = l.move_id) \
3375+ WHERE (l.account_id = %s) \
3376+ AND (am.state IN %s) \
3377+ AND '+ self.query +' '
3378+ ,(account.id, tuple(move_state)))
3379+ sum_debit = self.cr.fetchone()[0] or 0.0
3380+ if self.init_balance:
3381+ self.cr.execute('SELECT sum(debit) \
3382+ FROM account_move_line l \
3383+ JOIN account_move am ON (am.id = l.move_id) \
3384+ WHERE (l.account_id = %s) \
3385+ AND (am.state IN %s) \
3386+ AND '+ self.init_query +' '
3387+ ,(account.id, tuple(move_state)))
3388+ # Add initial balance to the result
3389+ sum_debit += self.cr.fetchone()[0] or 0.0
3390+ return sum_debit
3391+
3392+ def _sum_credit_account(self, account):
3393+ if account.type == 'view':
3394+ return account.credit
3395+ move_state = ['draft','posted']
3396+ if self.target_move == 'posted':
3397+ move_state = ['posted','']
3398+ self.cr.execute('SELECT sum(credit) \
3399+ FROM account_move_line l \
3400+ JOIN account_move am ON (am.id = l.move_id) \
3401+ WHERE (l.account_id = %s) \
3402+ AND (am.state IN %s) \
3403+ AND '+ self.query +' '
3404+ ,(account.id, tuple(move_state)))
3405+ sum_credit = self.cr.fetchone()[0] or 0.0
3406+ if self.init_balance:
3407+ self.cr.execute('SELECT sum(credit) \
3408+ FROM account_move_line l \
3409+ JOIN account_move am ON (am.id = l.move_id) \
3410+ WHERE (l.account_id = %s) \
3411+ AND (am.state IN %s) \
3412+ AND '+ self.init_query +' '
3413+ ,(account.id, tuple(move_state)))
3414+ # Add initial balance to the result
3415+ sum_credit += self.cr.fetchone()[0] or 0.0
3416+ return sum_credit
3417+
3418+ def _sum_balance_account(self, account):
3419+ if account.type == 'view':
3420+ return account.balance
3421+ move_state = ['draft','posted']
3422+ if self.target_move == 'posted':
3423+ move_state = ['posted','']
3424+ self.cr.execute('SELECT (sum(debit) - sum(credit)) as tot_balance \
3425+ FROM account_move_line l \
3426+ JOIN account_move am ON (am.id = l.move_id) \
3427+ WHERE (l.account_id = %s) \
3428+ AND (am.state IN %s) \
3429+ AND '+ self.query +' '
3430+ ,(account.id, tuple(move_state)))
3431+ sum_balance = self.cr.fetchone()[0] or 0.0
3432+ if self.init_balance:
3433+ self.cr.execute('SELECT (sum(debit) - sum(credit)) as tot_balance \
3434+ FROM account_move_line l \
3435+ JOIN account_move am ON (am.id = l.move_id) \
3436+ WHERE (l.account_id = %s) \
3437+ AND (am.state IN %s) \
3438+ AND '+ self.init_query +' '
3439+ ,(account.id, tuple(move_state)))
3440+ # Add initial balance to the result
3441+ sum_balance += self.cr.fetchone()[0] or 0.0
3442+ return sum_balance
3443+
3444+ def _get_account(self, data):
3445+ if data['model'] == 'account.account':
3446+ return self.pool.get('account.account').browse(self.cr, self.uid, data['form']['id']).company_id.name
3447+ return super(print_prima_nota_cassa ,self)._get_account(data)
3448+
3449+ def _get_sortby(self, data):
3450+ if self.sortby == 'sort_date':
3451+ return 'Date'
3452+ elif self.sortby == 'sort_journal_partner':
3453+ return 'Journal & Partner'
3454+ return 'Date'
3455+
3456+report_sxw.report_sxw('report.account.print.prima_nota_cassa',
3457+ 'account.account',
3458+ 'addons/l10n_it_prima_nota_cassa/report/prima_nota_cassa.mako',
3459+ parser=print_prima_nota_cassa)
3460+
3461+
3462+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
3463
3464=== added file 'l10n_it_prima_nota_cassa/reports.xml'
3465--- l10n_it_prima_nota_cassa/reports.xml 1970-01-01 00:00:00 +0000
3466+++ l10n_it_prima_nota_cassa/reports.xml 2012-06-27 10:42:57 +0000
3467@@ -0,0 +1,16 @@
3468+<?xml version="1.0"?>
3469+<openerp>
3470+ <data>
3471+
3472+ <report
3473+ auto="False"
3474+ id="prima_nota_cassa"
3475+ model="account.account"
3476+ name="account.print.prima_nota_cassa"
3477+ file="l10n_it_prima_nota_cassa/report/prima_nota_cassa.mako"
3478+ string="Prima Nota Cassa"
3479+ report_type="webkit" />
3480+
3481+ </data>
3482+</openerp>
3483+
3484
3485=== added directory 'l10n_it_prima_nota_cassa/wizard'
3486=== added file 'l10n_it_prima_nota_cassa/wizard/__init__.py'
3487--- l10n_it_prima_nota_cassa/wizard/__init__.py 1970-01-01 00:00:00 +0000
3488+++ l10n_it_prima_nota_cassa/wizard/__init__.py 2012-06-27 10:42:57 +0000
3489@@ -0,0 +1,22 @@
3490+# -*- coding: utf-8 -*-
3491+##############################################################################
3492+#
3493+# Copyright (C) 2011-2012 Associazione OpenERP Italia
3494+# (<http://www.openerp-italia.org>).
3495+# All Rights Reserved
3496+#
3497+# This program is free software: you can redistribute it and/or modify
3498+# it under the terms of the GNU Affero General Public License as published by
3499+# the Free Software Foundation, either version 3 of the License, or
3500+# (at your option) any later version.
3501+#
3502+# This program is distributed in the hope that it will be useful,
3503+# but WITHOUT ANY WARRANTY; without even the implied warranty of
3504+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
3505+# GNU General Public License for more details.
3506+#
3507+# You should have received a copy of the GNU Affero General Public License
3508+# along with this program. If not, see <http://www.gnu.org/licenses/>.
3509+#
3510+##############################################################################
3511+import wizard_print_prima_nota_cassa
3512
3513=== added file 'l10n_it_prima_nota_cassa/wizard/wizard_print_prima_nota_cassa.py'
3514--- l10n_it_prima_nota_cassa/wizard/wizard_print_prima_nota_cassa.py 1970-01-01 00:00:00 +0000
3515+++ l10n_it_prima_nota_cassa/wizard/wizard_print_prima_nota_cassa.py 2012-06-27 10:42:57 +0000
3516@@ -0,0 +1,54 @@
3517+# -*- coding: utf-8 -*-
3518+##############################################################################
3519+#
3520+# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
3521+# Copyright (C) 2011-2012 Associazione OpenERP Italia
3522+# (<http://www.openerp-italia.org>).
3523+# All Rights Reserved
3524+#
3525+# This program is free software: you can redistribute it and/or modify
3526+# it under the terms of the GNU Affero General Public License as published by
3527+# the Free Software Foundation, either version 3 of the License, or
3528+# (at your option) any later version.
3529+#
3530+# This program is distributed in the hope that it will be useful,
3531+# but WITHOUT ANY WARRANTY; without even the implied warranty of
3532+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
3533+# GNU General Public License for more details.
3534+#
3535+# You should have received a copy of the GNU Affero General Public License
3536+# along with this program. If not, see <http://www.gnu.org/licenses/>.
3537+#
3538+##############################################################################
3539+
3540+from osv import fields, osv
3541+
3542+class account_report_prima_nota_cassa(osv.osv_memory):
3543+ _inherit = "account.common.account.report"
3544+ _name = 'account.report.prima_nota_cassa'
3545+ _description = "Print Prima Nota Cassa"
3546+
3547+
3548+ def _get_all_journal(self, cr, uid, context=None):
3549+ return self.pool.get('account.journal').search(cr, uid , [('type','in',['cash','bank'])] )
3550+
3551+ def _print_report(self, cr, uid, ids, data, context=None):
3552+ if context is None:
3553+ context = {}
3554+ data = self.pre_print_report(cr, uid, ids, data, context=context)
3555+ data['form'].update(self.read(cr, uid, ids, ['landscape', 'initial_balance', 'amount_currency', 'sortby'])[0])
3556+ if not data['form']['fiscalyear_id']:# GTK client problem onchange does not consider in save record
3557+ data['form'].update({'initial_balance': False})
3558+ return { 'type': 'ir.actions.report.xml', 'report_name': 'account.print.prima_nota_cassa', 'datas': data}
3559+
3560+ _columns = {
3561+
3562+ }
3563+ _defaults = {
3564+ 'journal_ids': _get_all_journal,
3565+ }
3566+
3567+
3568+account_report_prima_nota_cassa()
3569+
3570+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
3571
3572=== added file 'l10n_it_prima_nota_cassa/wizard/wizard_print_prima_nota_cassa.xml'
3573--- l10n_it_prima_nota_cassa/wizard/wizard_print_prima_nota_cassa.xml 1970-01-01 00:00:00 +0000
3574+++ l10n_it_prima_nota_cassa/wizard/wizard_print_prima_nota_cassa.xml 2012-06-27 10:42:57 +0000
3575@@ -0,0 +1,43 @@
3576+<?xml version="1.0" encoding="utf-8"?>
3577+<openerp>
3578+ <data>
3579+
3580+ <record id="account_report_prima_nota_cassa" model="ir.ui.view">
3581+ <field name="name">Print Prima Nota Cassa</field>
3582+ <field name="model">account.report.prima_nota_cassa</field>
3583+ <field name="type">form</field>
3584+ <field name="inherit_id" ref="account.account_common_report_view" />
3585+ <field name="arch" type="xml">
3586+ <data>
3587+ <xpath expr="/form/label[@string='']" position="replace">
3588+ <separator string="Prima Nota Cassa" colspan="4"/>
3589+ <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."/>
3590+ </xpath>
3591+
3592+ <field name="journal_ids" position="replace">
3593+ <field name="journal_ids" domain="[('type','in',['cash'])]" />
3594+ </field>
3595+ </data>
3596+ </field>
3597+ </record>
3598+
3599+ <record id="action_account_prima_nota_cassa" model="ir.actions.act_window">
3600+ <field name="name">Prima Nota Cassa</field>
3601+ <field name="type">ir.actions.act_window</field>
3602+ <field name="res_model">account.report.prima_nota_cassa</field>
3603+ <field name="view_type">form</field>
3604+ <field name="view_mode">form</field>
3605+ <field name="view_id" ref="account_report_prima_nota_cassa"/>
3606+ <field name="target">new</field>
3607+ </record>
3608+
3609+ <menuitem
3610+ icon="STOCK_PRINT"
3611+ name="Prima Nota Cassa"
3612+ parent="account.menu_journals_report"
3613+ action="action_account_prima_nota_cassa"
3614+ groups="account.group_account_manager,account.group_account_user"
3615+ id="menu_print_prima_nota_cassa"
3616+ />
3617+</data>
3618+</openerp>

Subscribers

People subscribed via source and target branches