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
=== added directory 'account_central_journal'
=== added file 'account_central_journal/AUTHORS.txt'
--- account_central_journal/AUTHORS.txt 1970-01-01 00:00:00 +0000
+++ account_central_journal/AUTHORS.txt 2012-06-27 10:42:57 +0000
@@ -0,0 +1,1 @@
1Daniele Arcangeli <d.arcangeli@isa.it>
02
=== added file 'account_central_journal/__init__.py'
--- account_central_journal/__init__.py 1970-01-01 00:00:00 +0000
+++ account_central_journal/__init__.py 2012-06-27 10:42:57 +0000
@@ -0,0 +1,25 @@
1# -*- coding: utf-8 -*-
2##############################################################################
3#
4# OpenERP, Open Source Management Solution
5# Copyright (C) 2012 ISA s.r.l. (<http://www.isa.it>).
6#
7# This program is free software: you can redistribute it and/or modify
8# it under the terms of the GNU Affero General Public License as
9# published by the Free Software Foundation, either version 3 of the
10# License, or (at your option) any later version.
11#
12# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU Affero General Public License for more details.
16#
17# You should have received a copy of the GNU Affero General Public License
18# along with this program. If not, see <http://www.gnu.org/licenses/>.
19#
20##############################################################################
21
22import account
23import wizard
24import report
25
026
=== added file 'account_central_journal/__openerp__.py'
--- account_central_journal/__openerp__.py 1970-01-01 00:00:00 +0000
+++ account_central_journal/__openerp__.py 2012-06-27 10:42:57 +0000
@@ -0,0 +1,47 @@
1# -*- coding: utf-8 -*-
2##############################################################################
3#
4# OpenERP, Open Source Management Solution
5# Copyright (C) 2011 ISA s.r.l. (<http://www.isa.it>).
6#
7# This program is free software: you can redistribute it and/or modify
8# it under the terms of the GNU Affero General Public License as
9# published by the Free Software Foundation, either version 3 of the
10# License, or (at your option) any later version.
11#
12# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU Affero General Public License for more details.
16#
17# You should have received a copy of the GNU Affero General Public License
18# along with this program. If not, see <http://www.gnu.org/licenses/>.
19#
20##############################################################################
21
22{
23 'name': 'Account Central Journal',
24 'version': '3',
25 'author': "ISA S.r.l.",
26 'website': 'http://www.isa.it',
27 'category': 'Generic Modules/Accounting',
28 'description': """
29Managing the printing of the "Central Journal" """,
30 'depends' : [
31 'base',
32 'account',
33 'report_webkit',
34 ],
35 'init_xml' : [],
36 'update_xml': [
37 'report/report.xml',
38 'report/webkit_model.xml',
39 'wizard/central_journal_report.xml',
40 'account_view.xml',
41 ],
42 'demo_xml': [],
43 'test':[],
44 'installable': True,
45 'active': False,
46 'certificate': '',
47}
048
=== added file 'account_central_journal/account.py'
--- account_central_journal/account.py 1970-01-01 00:00:00 +0000
+++ account_central_journal/account.py 2012-06-27 10:42:57 +0000
@@ -0,0 +1,44 @@
1# -*- coding: utf-8 -*-
2##############################################################################
3#
4# OpenERP, Open Source Management Solution
5# Copyright (C) 2012 ISA s.r.l. (<http://www.isa.it>).
6#
7# This program is free software: you can redistribute it and/or modify
8# it under the terms of the GNU Affero General Public License as
9# published by the Free Software Foundation, either version 3 of the
10# License, or (at your option) any later version.
11#
12# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU Affero General Public License for more details.
16#
17# You should have received a copy of the GNU Affero General Public License
18# along with this program. If not, see <http://www.gnu.org/licenses/>.
19#
20##############################################################################
21
22from osv import fields, osv
23from tools.translate import _
24import decimal_precision as dp
25
26class account_fiscalyear(osv.osv):
27 _inherit = "account.fiscalyear"
28 _description = "Fiscal Year"
29 _columns = {
30 'date_last_print': fields.date('Last printed date', readonly=True),
31 'progressive_page_number': fields.integer('Progressive of the page', required=True, readonly=True),
32 'progressive_line_number': fields.integer('Progressive line', required=True, readonly=True),
33 'progressive_credit': fields.float('Progressive Credit', digits_compute=dp.get_precision('Account'), required=True, readonly=True),
34 'progressive_debit': fields.float('Progressive Debit', digits_compute=dp.get_precision('Account'), required=True, readonly=True),
35 }
36
37 _defaults = {
38 'progressive_page_number': 0,
39 'progressive_line_number': 0,
40 'progressive_credit': lambda *a: float(),
41 'progressive_debit': lambda *a: float(),
42 }
43
44account_fiscalyear()
045
=== added file 'account_central_journal/account_view.xml'
--- account_central_journal/account_view.xml 1970-01-01 00:00:00 +0000
+++ account_central_journal/account_view.xml 2012-06-27 10:42:57 +0000
@@ -0,0 +1,27 @@
1<?xml version="1.0" encoding="utf-8"?>
2<openerp>
3 <data>
4
5 <!--
6 Account Fiscal Year inheritancy
7 -->
8
9 <record id="account_central_journal_form_view" model="ir.ui.view">
10 <field name="name">account.central.journal.form</field>
11 <field name="model">account.fiscalyear</field>
12 <field name="inherit_id" ref="account.view_account_fiscalyear_form"/>
13 <field name="arch" type="xml">
14 <field name="end_journal_period_id" position="after">
15 <separator colspan="4" string="Central journal info"/>
16 <field name="date_last_print"/>
17 <newline/>
18 <field name="progressive_page_number"/>
19 <field name="progressive_line_number"/>
20 <field name="progressive_credit"/>
21 <field name="progressive_debit"/>
22 </field>
23 </field>
24 </record>
25
26 </data>
27</openerp>
028
=== added directory 'account_central_journal/i18n'
=== added file 'account_central_journal/i18n/account_central_journal.pot'
--- account_central_journal/i18n/account_central_journal.pot 1970-01-01 00:00:00 +0000
+++ account_central_journal/i18n/account_central_journal.pot 2012-06-27 10:42:57 +0000
@@ -0,0 +1,235 @@
1# Translation of OpenERP Server.
2# This file contains the translation of the following modules:
3# * account_central_journal
4#
5msgid ""
6msgstr ""
7"Project-Id-Version: OpenERP Server 6.0.3\n"
8"Report-Msgid-Bugs-To: support@openerp.com\n"
9"POT-Creation-Date: 2012-03-16 14:39+0000\n"
10"PO-Revision-Date: 2012-03-16 14:39+0000\n"
11"Last-Translator: <>\n"
12"Language-Team: \n"
13"MIME-Version: 1.0\n"
14"Content-Type: text/plain; charset=UTF-8\n"
15"Content-Transfer-Encoding: \n"
16"Plural-Forms: \n"
17
18#. module: account_central_journal
19#: model:ir.actions.act_window,name:account_central_journal.central_journal_report_action
20#: model:ir.ui.menu,name:account_central_journal.menu_central_journal_report_action
21msgid "Print Central Journal"
22msgstr ""
23
24#. module: account_central_journal
25#: report:report.central_journal_report:135
26msgid "Account code"
27msgstr ""
28
29#. module: account_central_journal
30#: report:report.central_journal_report:144
31#: report:report.central_journal_report:170
32msgid "Progressives =>"
33msgstr ""
34
35#. module: account_central_journal
36#: model:ir.model,name:account_central_journal.model_central_journal_report
37#: model:ir.model,name:account_central_journal.model_wizard_central_journal_report
38#: view:wizard.central.journal.report:0
39msgid "Printing parameters of the Center Journal"
40msgstr ""
41
42#. module: account_central_journal
43#: field:wizard.central.journal.report,print_state:0
44msgid "State"
45msgstr ""
46
47#. module: account_central_journal
48#: selection:wizard.central.journal.report,print_state:0
49msgid "Draft"
50msgstr ""
51
52#. module: account_central_journal
53#: report:report.central_journal_report:134
54msgid "Account move"
55msgstr ""
56
57#. module: account_central_journal
58#: report:report.central_journal_report:138
59msgid "Debit"
60msgstr ""
61
62#. module: account_central_journal
63#: view:wizard.central.journal.report:0
64msgid "Print"
65msgstr ""
66
67#. module: account_central_journal
68#: field:account.fiscalyear,progressive_credit:0
69msgid "Progressive Credit"
70msgstr ""
71
72#. module: account_central_journal
73#: model:ir.module.module,description:account_central_journal.module_meta_information
74msgid "\n"
75"Managing the printing of the \"Central Journal\" "
76msgstr ""
77
78#. module: account_central_journal
79#: constraint:account.fiscalyear:0
80msgid "Error! You cannot define overlapping fiscal years"
81msgstr ""
82
83#. module: account_central_journal
84#: report:report.central_journal_report:133
85msgid "Ref"
86msgstr ""
87
88#. module: account_central_journal
89#: field:account.fiscalyear,date_last_print:0
90msgid "Last printed date"
91msgstr ""
92
93#. module: account_central_journal
94#: selection:wizard.central.journal.report,print_state:0
95msgid "Printed"
96msgstr ""
97
98#. module: account_central_journal
99#: report:report.central_journal_report:136
100msgid "Account name"
101msgstr ""
102
103#. module: account_central_journal
104#: report:report.central_journal_report:132
105msgid "Date"
106msgstr ""
107
108#. module: account_central_journal
109#: code:addons/account_central_journal/wizard/central_journal_report.py:51
110#: code:addons/account_central_journal/wizard/central_journal_report.py:54
111#, python-format
112msgid "Wrong dates !"
113msgstr ""
114
115#. module: account_central_journal
116#: view:wizard.central.journal.report:0
117msgid "Dates movements"
118msgstr ""
119
120#. module: account_central_journal
121#: field:account.fiscalyear,progressive_debit:0
122msgid "Progressive Debit"
123msgstr ""
124
125#. module: account_central_journal
126#: report:report.central_journal_report:124
127#: field:wizard.central.journal.report,date_move_line_to:0
128msgid "to date"
129msgstr ""
130
131#. module: account_central_journal
132#: report:report.central_journal_report:137
133msgid "Name"
134msgstr ""
135
136#. module: account_central_journal
137#: model:ir.module.module,shortdesc:account_central_journal.module_meta_information
138msgid "Account Central Journal"
139msgstr ""
140
141#. module: account_central_journal
142#: field:account.fiscalyear,progressive_line_number:0
143msgid "Progressive line"
144msgstr ""
145
146#. module: account_central_journal
147#: code:addons/account_central_journal/wizard/central_journal_report.py:54
148#, python-format
149msgid "The end date can not be greater than today's date."
150msgstr ""
151
152#. module: account_central_journal
153#: report:report.central_journal_report:139
154msgid "Credit"
155msgstr ""
156
157#. module: account_central_journal
158#: model:ir.model,name:account_central_journal.model_account_fiscalyear
159#: field:wizard.central.journal.report,fiscalyear:0
160msgid "Fiscal Year"
161msgstr ""
162
163#. module: account_central_journal
164#: constraint:account.fiscalyear:0
165msgid "Error! The duration of the Fiscal Year is invalid. "
166msgstr ""
167
168#. module: account_central_journal
169#: code:addons/account_central_journal/wizard/central_journal_report.py:51
170#, python-format
171msgid "The end date must be greater than the initial date."
172msgstr ""
173
174#. module: account_central_journal
175#: view:wizard.central.journal.report:0
176msgid "Reference"
177msgstr ""
178
179#. module: account_central_journal
180#: model:ir.actions.report.xml,name:account_central_journal.central_journal_report_id
181msgid "central_journal"
182msgstr ""
183
184#. module: account_central_journal
185#: field:account.fiscalyear,progressive_page_number:0
186msgid "Progressive of the page"
187msgstr ""
188
189#. module: account_central_journal
190#: report:report.central_journal_report:124
191msgid "TEST PRINTING"
192msgstr ""
193
194#. module: account_central_journal
195#: view:account.fiscalyear:0
196msgid "Central journal info"
197msgstr ""
198
199#. module: account_central_journal
200#: report:report.central_journal_report:127
201msgid "Page:"
202msgstr ""
203
204#. module: account_central_journal
205#: report:report.central_journal_report:124
206#: field:wizard.central.journal.report,date_move_line_from:0
207#: field:wizard.central.journal.report,date_move_line_from_view:0
208msgid "From date"
209msgstr ""
210
211#. module: account_central_journal
212#: selection:wizard.central.journal.report,print_state:0
213msgid "Ready for printing"
214msgstr ""
215
216#. module: account_central_journal
217#: view:wizard.central.journal.report:0
218msgid "Cancel"
219msgstr ""
220
221#. module: account_central_journal
222#: report:report.central_journal_report:131
223msgid "Row"
224msgstr ""
225
226#. module: account_central_journal
227#: view:wizard.central.journal.report:0
228msgid "Final print"
229msgstr ""
230
231#. module: account_central_journal
232#: report:report.central_journal_report:116
233msgid "ACCOUNT JOURNAL"
234msgstr ""
235
0236
=== added file 'account_central_journal/i18n/it.mo'
1Binary 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 differ237Binary 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
=== added file 'account_central_journal/i18n/it.po'
--- account_central_journal/i18n/it.po 1970-01-01 00:00:00 +0000
+++ account_central_journal/i18n/it.po 2012-06-27 10:42:57 +0000
@@ -0,0 +1,233 @@
1msgid ""
2msgstr ""
3"Project-Id-Version: Account Central Journal\n"
4"Report-Msgid-Bugs-To: support@openerp.com\n"
5"POT-Creation-Date: 2012-03-16 14:39+0000\n"
6"PO-Revision-Date: \n"
7"Last-Translator: Daniele Arcangeli <d.arcangeli@isa.it>\n"
8"Language-Team: \n"
9"MIME-Version: 1.0\n"
10"Content-Type: text/plain; charset=UTF-8\n"
11"Content-Transfer-Encoding: 8bit\n"
12
13#. module: account_central_journal
14#: model:ir.actions.act_window,name:account_central_journal.central_journal_report_action
15#: model:ir.ui.menu,name:account_central_journal.menu_central_journal_report_action
16msgid "Print Central Journal"
17msgstr "Giornale Centralizzato"
18
19#. module: account_central_journal
20#: report:report.central_journal_report:135
21msgid "Account code"
22msgstr "Codice Conto"
23
24#. module: account_central_journal
25#: report:report.central_journal_report:144
26#: report:report.central_journal_report:170
27msgid "Progressives =>"
28msgstr "Progressivi =>"
29
30#. module: account_central_journal
31#: model:ir.model,name:account_central_journal.model_central_journal_report
32#: model:ir.model,name:account_central_journal.model_wizard_central_journal_report
33#: view:wizard.central.journal.report:0
34msgid "Printing parameters of the Center Journal"
35msgstr "Parametri di stampa del Giornale Centralizzato"
36
37#. module: account_central_journal
38#: field:wizard.central.journal.report,print_state:0
39msgid "State"
40msgstr "Stato"
41
42#. module: account_central_journal
43#: selection:wizard.central.journal.report,print_state:0
44msgid "Draft"
45msgstr "Bozza"
46
47#. module: account_central_journal
48#: report:report.central_journal_report:134
49msgid "Account move"
50msgstr "Movimento"
51
52#. module: account_central_journal
53#: report:report.central_journal_report:138
54msgid "Debit"
55msgstr "Dare"
56
57#. module: account_central_journal
58#: view:wizard.central.journal.report:0
59msgid "Print"
60msgstr "Stampa"
61
62#. module: account_central_journal
63#: field:account.fiscalyear,progressive_credit:0
64msgid "Progressive Credit"
65msgstr "Progressivo Avere"
66
67#. module: account_central_journal
68#: model:ir.module.module,description:account_central_journal.module_meta_information
69msgid ""
70"\n"
71"Managing the printing of the \"Central Journal\" "
72msgstr ""
73"\n"
74"Gestione della stampa del \"Giornale Centralizzato\""
75
76#. module: account_central_journal
77#: constraint:account.fiscalyear:0
78msgid "Error! You cannot define overlapping fiscal years"
79msgstr "Errore! Non è possibile definire una sovrapposizione degli anni fiscali."
80
81#. module: account_central_journal
82#: report:report.central_journal_report:133
83msgid "Ref"
84msgstr "Rif."
85
86#. module: account_central_journal
87#: field:account.fiscalyear,date_last_print:0
88msgid "Last printed date"
89msgstr "Data ultima stampa"
90
91#. module: account_central_journal
92#: selection:wizard.central.journal.report,print_state:0
93msgid "Printed"
94msgstr "Stampato"
95
96#. module: account_central_journal
97#: report:report.central_journal_report:136
98msgid "Account name"
99msgstr "Conto"
100
101#. module: account_central_journal
102#: report:report.central_journal_report:132
103msgid "Date"
104msgstr "Data"
105
106#. module: account_central_journal
107#: code:addons/account_central_journal/wizard/central_journal_report.py:51
108#: code:addons/account_central_journal/wizard/central_journal_report.py:54
109#, python-format
110msgid "Wrong dates !"
111msgstr "Date errate !"
112
113#. module: account_central_journal
114#: view:wizard.central.journal.report:0
115msgid "Dates movements"
116msgstr "Date dei movimenti"
117
118#. module: account_central_journal
119#: field:account.fiscalyear,progressive_debit:0
120msgid "Progressive Debit"
121msgstr "Progressivo Dare"
122
123#. module: account_central_journal
124#: report:report.central_journal_report:124
125#: field:wizard.central.journal.report,date_move_line_to:0
126msgid "to date"
127msgstr "alla data"
128
129#. module: account_central_journal
130#: report:report.central_journal_report:137
131msgid "Name"
132msgstr "Descrizione movimento"
133
134#. module: account_central_journal
135#: model:ir.module.module,shortdesc:account_central_journal.module_meta_information
136msgid "Account Central Journal"
137msgstr "Giornale Centralizzato"
138
139#. module: account_central_journal
140#: field:account.fiscalyear,progressive_line_number:0
141msgid "Progressive line"
142msgstr "Progressivo della riga"
143
144#. module: account_central_journal
145#: code:addons/account_central_journal/wizard/central_journal_report.py:54
146#, python-format
147msgid "The end date can not be greater than today's date."
148msgstr "La data finale non può essere maggiore della data odierna"
149
150#. module: account_central_journal
151#: report:report.central_journal_report:139
152msgid "Credit"
153msgstr "Avere"
154
155#. module: account_central_journal
156#: model:ir.model,name:account_central_journal.model_account_fiscalyear
157#: field:wizard.central.journal.report,fiscalyear:0
158msgid "Fiscal Year"
159msgstr "Anno Fiscale"
160
161#. module: account_central_journal
162#: constraint:account.fiscalyear:0
163msgid "Error! The duration of the Fiscal Year is invalid. "
164msgstr "Errore! La durata dell'anno fiscale non è valida."
165
166#. module: account_central_journal
167#: code:addons/account_central_journal/wizard/central_journal_report.py:51
168#, python-format
169msgid "The end date must be greater than the initial date."
170msgstr "La data finale deve essere maggiore della data iniziale"
171
172#. module: account_central_journal
173#: view:wizard.central.journal.report:0
174msgid "Reference"
175msgstr "Riferimento"
176
177#. module: account_central_journal
178#: model:ir.actions.report.xml,name:account_central_journal.central_journal_report_id
179msgid "central_journal"
180msgstr "Giornale Centralizzato Report Webkit"
181
182#. module: account_central_journal
183#: field:account.fiscalyear,progressive_page_number:0
184msgid "Progressive of the page"
185msgstr "Progressivo della pagina"
186
187#. module: account_central_journal
188#: report:report.central_journal_report:124
189msgid "TEST PRINTING"
190msgstr "STAMPA DI PROVA"
191
192#. module: account_central_journal
193#: view:account.fiscalyear:0
194msgid "Central journal info"
195msgstr "Informazione del Giornale Centralizzato"
196
197#. module: account_central_journal
198#: report:report.central_journal_report:127
199msgid "Page:"
200msgstr "Pagina:"
201
202#. module: account_central_journal
203#: report:report.central_journal_report:124
204#: field:wizard.central.journal.report,date_move_line_from:0
205#: field:wizard.central.journal.report,date_move_line_from_view:0
206msgid "From date"
207msgstr "Dalla data"
208
209#. module: account_central_journal
210#: selection:wizard.central.journal.report,print_state:0
211msgid "Ready for printing"
212msgstr "Pronto per la stampa"
213
214#. module: account_central_journal
215#: view:wizard.central.journal.report:0
216msgid "Cancel"
217msgstr "Annulla"
218
219#. module: account_central_journal
220#: report:report.central_journal_report:131
221msgid "Row"
222msgstr "N.riga"
223
224#. module: account_central_journal
225#: view:wizard.central.journal.report:0
226msgid "Final print"
227msgstr "Stampa definitiva"
228
229#. module: account_central_journal
230#: report:report.central_journal_report:116
231msgid "ACCOUNT JOURNAL"
232msgstr "Giornale di Contabilità"
233
0234
=== added directory 'account_central_journal/report'
=== added file 'account_central_journal/report/__init__.py'
--- account_central_journal/report/__init__.py 1970-01-01 00:00:00 +0000
+++ account_central_journal/report/__init__.py 2012-06-27 10:42:57 +0000
@@ -0,0 +1,22 @@
1# -*- coding: utf-8 -*-
2##############################################################################
3#
4# OpenERP, Open Source Management Solution
5# Copyright (C) 2012 ISA s.r.l. (<http://www.isa.it>).
6#
7# This program is free software: you can redistribute it and/or modify
8# it under the terms of the GNU Affero General Public License as
9# published by the Free Software Foundation, either version 3 of the
10# License, or (at your option) any later version.
11#
12# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU Affero General Public License for more details.
16#
17# You should have received a copy of the GNU Affero General Public License
18# along with this program. If not, see <http://www.gnu.org/licenses/>.
19#
20##############################################################################
21
22import central_journal_report
023
=== added file 'account_central_journal/report/central_journal_report.mako'
--- account_central_journal/report/central_journal_report.mako 1970-01-01 00:00:00 +0000
+++ account_central_journal/report/central_journal_report.mako 2012-06-27 10:42:57 +0000
@@ -0,0 +1,186 @@
1<html>
2<head>
3 <meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
4 <style type="text/css">
5 ${css}
6
7 .page_block {
8 /*border: 1px solid red;*/
9 page-break-after: always;
10 /*page-break-inside: avoid;*/
11 }
12 .p_row {
13 page-break-inside: avoid;
14 vertical-align:text-top;
15 }
16 .p_cell {
17 overflow: hidden;
18 padding: 1px 5px;
19 }
20 .p_text {
21 color: black;
22 font-size: 9px;
23 font-family: "Courier New", Courier, monospace;
24 }
25 .p_cell_progr_row, .p_cell_debit, .p_cell_credit {
26 text-align: right;
27 }
28
29 .p_row_head {
30 border: 1px solid black;
31 border-width: 1px 0px;
32 }
33 .p_cell_head {
34 font-weight: bold;
35 padding: 3px 5px;
36 }
37
38 .p_row_page {
39 font-weight: bold;
40 }
41 .p_cell_test {
42 padding: 5px 5px;
43 }
44 .p_cell_page {
45 padding: 5px 5px;
46 text-align: right;
47 }
48
49 .p_row_total {
50 font-weight: bold;
51 border: 1px solid gray;
52 }
53 .p_row_total_up {
54 border-width: 0px 0px 1px 0px;
55 }
56 .p_row_total_down {
57 border-width: 1px 0px 0px 0px;
58 }
59 .p_cell_progressive {
60 padding: 3px 5px;
61 text-align: right;
62 }
63
64 /* COLUMNS WIDTH */
65 .p_cell_progr_row { width: 40px;}
66 .p_cell_date { width: 65px;}
67 .p_cell_ref { width: 70px;}
68 .p_cell_move_id_name { width: 70px;}
69 .p_cell_account_id_code { width: 50px;}
70 .p_cell_account_id_name { width: 200px;}
71 .p_cell_name { width: 250px;}
72 .p_cell_debit { width: 70px;}
73 .p_cell_credit { width: 70px;}
74 </style>
75</head>
76
77<body>
78 <% setLang(user.context_lang) %>
79 <%
80 flag_print_final = data["print_final"]
81 fiscalyear_id = data["form"]["fiscalyear"]
82 date_from = data["form"]["date_move_line_from"]
83 date_to = data["form"]["date_move_line_to"]
84 %>
85 <%
86 print_info = get_print_info(fiscalyear_id)
87 result_wizard = set_wizard_params(data["form"])
88 result_rows = get_movements()
89 %>
90 <%
91 page_rows = 50
92
93 num_rows = len(result_rows)
94 num_row = 0
95 new_page = True
96
97 progr_page = print_info['start_page']
98 progr_row = print_info['start_row']
99 %>
100 <%
101 debit_tot = print_info['start_debit']
102 credit_tot = print_info['start_credit']
103 %>
104
105 %for line in result_rows :
106 <% num_row = num_row + 1 %>
107 <% progr_row = progr_row + 1 %>
108 % if new_page == True:
109 <%
110 new_page = False
111 progr_page = progr_page + 1
112 %>
113 <div class="page_block">
114 <table class="header" style="border-bottom: 0px solid black; width: 100%">
115 <tr>
116 <td style="text-align:center;"><span style="font-weight: bold; font-size: 14px;">${_("ACCOUNT JOURNAL")}</span></td>
117 </tr>
118 </table>
119
120 <table>
121 <tr class="p_row p_row_page">
122 <td colspan="7" class="p_cell p_cell_test">
123 % if flag_print_final == False:
124 <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>
125 % endif
126 </td>
127 <td colspan="2" class="p_cell p_cell_page"><span class="p_text p_page">${ _("Page:") }&nbsp;&nbsp;${progr_page}</span></td>
128 </tr>
129
130 <tr class="p_row p_row_head">
131 <td class="p_cell p_cell_head"><span class="p_text">${ _("Row") }</span></td>
132 <td class="p_cell p_cell_head"><span class="p_text">${ _("Date") }</span></td>
133 <td class="p_cell p_cell_head"><span class="p_text">${ _("Ref") }</span></td>
134 <td class="p_cell p_cell_head"><span class="p_text">${ _("Account move") }</span></td>
135 <td class="p_cell p_cell_head"><span class="p_text">${ _("Account code") }</span></td>
136 <td class="p_cell p_cell_head"><span class="p_text">${ _("Account name") }</span></td>
137 <td class="p_cell p_cell_head"><span class="p_text">${ _("Name") }</span></td>
138 <td class="p_cell p_cell_head p_cell_debit"><span class="p_text">${ _("Debit") }</span></td>
139 <td class="p_cell p_cell_head p_cell_credit"><span class="p_text">${ _("Credit") }</span></td>
140 </tr>
141
142 <tr class="p_row p_row_total p_row_total_up">
143 <td colspan="6"></td>
144 <td class="p_cell p_cell_progressive"><span class="p_text">${ _("Progressives =>") }</span></td>
145 <td class="p_cell p_cell_debit"><span class="p_text p_debit">${ formatLang(debit_tot, digits=get_digits(dp='Account')) |entity }</span></td>
146 <td class="p_cell p_cell_credit"><span class="p_text p_credit">${ formatLang(credit_tot, digits=get_digits(dp='Account')) |entity }</span></td>
147 </tr>
148 % endif
149 <tr class="p_row">
150 <td class="p_cell p_cell_progr_row"><span class="p_text p_progr_row">${progr_row}</span></td>
151 <td class="p_cell p_cell_date"><span class="p_text p_date">${ formatLang(line.date, date=True) or ''|entity }</span></td>
152 <td class="p_cell p_cell_ref"><span class="p_text p_ref">${ line.ref or ''|entity }</span></td>
153 <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>
154 <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>
155 <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>
156 <td class="p_cell p_cell_name"><span class="p_text p_name">${ line.name or ''|entity }</span></td>
157 <td class="p_cell p_cell_debit"><span class="p_text p_debit">${ formatLang(line.debit, digits=get_digits(dp='Account')) |entity }</span></td>
158 <td class="p_cell p_cell_credit"><span class="p_text p_credit">${ formatLang(line.credit, digits=get_digits(dp='Account')) |entity }</span></td>
159 </tr>
160 <%
161 debit_tot = debit_tot + line.debit
162 credit_tot = credit_tot + line.credit
163 %>
164 % if (num_row % page_rows) == 0 or num_row == num_rows :
165 <%
166 new_page = True
167 %>
168 <tr class="p_row p_row_total p_row_total_down">
169 <td colspan="6"></td>
170 <td class="p_cell p_cell_progressive"><span class="p_text">${ _("Progressives =>") }</span></td>
171 <td class="p_cell p_cell_debit"><span class="p_text p_debit">${ formatLang(debit_tot, digits=get_digits(dp='Account')) |entity }</span></td>
172 <td class="p_cell p_cell_credit"><span class="p_text p_credit">${ formatLang(credit_tot, digits=get_digits(dp='Account')) |entity }</span></td>
173 </tr>
174 </table>
175 </div>
176 % endif
177 %endfor
178
179 <%
180 if flag_print_final == True:
181 print_info = set_print_info(fiscalyear_id, date_to, progr_row, progr_page, debit_tot, credit_tot)
182 %>
183
184</body>
185</html>
186
0187
=== added file 'account_central_journal/report/central_journal_report.py'
--- account_central_journal/report/central_journal_report.py 1970-01-01 00:00:00 +0000
+++ account_central_journal/report/central_journal_report.py 2012-06-27 10:42:57 +0000
@@ -0,0 +1,88 @@
1# -*- coding: utf-8 -*-
2##############################################################################
3#
4# OpenERP, Open Source Management Solution
5# Copyright (C) 2012 ISA s.r.l. (<http://www.isa.it>).
6#
7# This program is free software: you can redistribute it and/or modify
8# it under the terms of the GNU Affero General Public License as
9# published by the Free Software Foundation, either version 3 of the
10# License, or (at your option) any later version.
11#
12# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU Affero General Public License for more details.
16#
17# You should have received a copy of the GNU Affero General Public License
18# along with this program. If not, see <http://www.gnu.org/licenses/>.
19#
20##############################################################################
21
22import time
23from report import report_sxw
24from osv import osv
25from tools.translate import _
26
27class central_journal_report(report_sxw.rml_parse):
28
29 def _set_wizard_params(self,form_values):
30 if form_values['date_move_line_from'] :
31 date_move_line_from=form_values['date_move_line_from']
32 filter=("date",">=",date_move_line_from)
33 self.filters.append(filter)
34 if form_values['date_move_line_to'] :
35 date_move_line_to=form_values['date_move_line_to']
36 filter=("date","<=",date_move_line_to)
37 self.filters.append(filter)
38 return True
39
40 def _get_print_info(self, fiscalyear_id):
41 fiscalyear_obj = self.pool.get('account.fiscalyear')
42 fiscalyear_ids=fiscalyear_obj.search(self.cr,self.uid,[('id','=',fiscalyear_id),])
43 fiscalyear_data=fiscalyear_obj.browse(self.cr,self.uid,fiscalyear_ids)[0]
44 print_info = {
45 'start_row': fiscalyear_data.progressive_line_number,
46 'start_page': fiscalyear_data.progressive_page_number,
47 'start_debit': fiscalyear_data.progressive_debit,
48 'start_credit': fiscalyear_data.progressive_credit,
49 }
50 return print_info
51
52 def _set_print_info(self, fiscalyear_id, end_date_print, end_row, end_page, end_debit, end_credit):
53 fiscalyear_obj = self.pool.get('account.fiscalyear')
54 fiscalyear_ids=fiscalyear_obj.search(self.cr,self.uid,[('id','=',fiscalyear_id),])
55 fiscalyear_data=fiscalyear_obj.browse(self.cr,self.uid,fiscalyear_ids)[0]
56 print_info = {
57 'date_last_print': end_date_print,
58 'progressive_line_number': end_row,
59 'progressive_page_number': end_page,
60 'progressive_debit': end_debit,
61 'progressive_credit': end_credit,
62 }
63 res = fiscalyear_obj.write(self.cr, self.uid, fiscalyear_ids, print_info)
64 return res
65
66 def _get_movements(self):
67 move_line_obj = self.pool.get('account.move.line')
68 line_ids=move_line_obj.search(self.cr,self.uid,self.filters,order="id asc")
69 report_lines=move_line_obj.browse(self.cr,self.uid,line_ids)
70 return report_lines
71
72 def __init__(self, cr, uid, name, context):
73 self.filters=[]
74 super(central_journal_report, self).__init__(cr, uid, name, context)
75 self.localcontext.update({
76 'time': time,
77 'cr':cr,
78 'uid': uid,
79 'get_print_info': self._get_print_info,
80 'set_print_info': self._set_print_info,
81 'set_wizard_params': self._set_wizard_params,
82 'get_movements': self._get_movements,
83 })
84
85report_sxw.report_sxw('report.central_journal_report',
86 'account.move.line',
87 'addons/account_central_journal/report/central_journal_report.mako',
88 parser=central_journal_report)
089
=== added file 'account_central_journal/report/report.xml'
--- account_central_journal/report/report.xml 1970-01-01 00:00:00 +0000
+++ account_central_journal/report/report.xml 2012-06-27 10:42:57 +0000
@@ -0,0 +1,14 @@
1<?xml version="1.0"?>
2<openerp>
3 <data>
4 <record id="central_journal_report_id" model="ir.actions.report.xml">
5 <field name="name">central_journal</field>
6 <field name="type">ir.actions.report.xml</field>
7 <field name="model">account.move.line</field>
8 <field name="report_name">central_journal_report</field>
9 <field name="report_rml">account_central_journal/report/central_journal_report.mako</field>
10 <field name="report_type">webkit</field>
11 </record>
12 </data>
13</openerp>
14
015
=== added file 'account_central_journal/report/webkit_model.xml'
--- account_central_journal/report/webkit_model.xml 1970-01-01 00:00:00 +0000
+++ account_central_journal/report/webkit_model.xml 2012-06-27 10:42:57 +0000
@@ -0,0 +1,107 @@
1<?xml version="1.0" ?>
2<openerp>
3 <data noupdate="1">
4 <record id="ir_header_central_journal_report" model="ir.header_webkit">
5 <field name="footer_html"></field>
6 <field eval="&quot;&quot;&quot;Landscape&quot;&quot;&quot;" name="orientation"/>
7 <field eval="&quot;&quot;&quot;A4&quot;&quot;&quot;" name="format"/>
8 <field name="html"><![CDATA[<html>
9 <head>
10 <meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
11 <script>
12 function subst() {
13 var vars={};
14 var x=document.location.search.substring(1).split('&');
15 for(var i in x) {var z=x[i].split('=',2);vars[z[0]] = unescape(z[1]);}
16 var x=['frompage','topage','page','webpage','section','subsection','subsubsection'];
17 for(var i in x) {
18 var y = document.getElementsByClassName(x[i]);
19 for(var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
20 }
21 }
22 </script>
23 <style type="text/css">
24 ${css}
25 </style>
26 </head>
27 <body style="border:0; margin:0;" onload="subst()">
28 <table class="header" style="border-bottom: 0px solid black; width: 100%">
29 <tr>
30 <td style="text-align:left; padding: 5px 0px;">
31 <span style="font-weight: bold;">
32 ${company.partner_id.name |entity}&nbsp;
33 ${company.partner_id.vat or '' |entity}&nbsp;
34 ${company.partner_id.address and company.partner_id.address[0].street or '' |entity}&nbsp;
35 ${company.partner_id.address and company.partner_id.address[0].street2 or '' |entity}&nbsp;
36 ${company.partner_id.address and company.partner_id.address[0].zip or '' |entity}&nbsp;
37 ${company.partner_id.address and company.partner_id.address[0].city or '' |entity}&nbsp;</span>
38 </td>
39 </tr>
40 </table> ${_debug or ''|n}
41 </body>
42</html>]]>
43</field>
44 <field eval="20.0" name="margin_top"/>
45 <field eval="15.0" name="margin_bottom"/>
46 <field eval="15.0" name="margin_left"/>
47 <field eval="15.0" name="margin_right"/>
48 <field name="css" ><![CDATA[
49 /* http://meyerweb.com/eric/tools/css/reset/
50 v2.0 | 20110126
51 License: none (public domain)
52 */
53 /* START OF RESET CSS */
54 html, body, div, span, applet, object, iframe,
55 h1, h2, h3, h4, h5, h6, p, blockquote, pre,
56 a, abbr, acronym, address, big, cite, code,
57 del, dfn, em, img, ins, kbd, q, s, samp,
58 small, strike, strong, sub, sup, tt, var,
59 b, u, i, center,
60 dl, dt, dd, ol, ul, li,
61 fieldset, form, label, legend,
62 table, caption, tbody, tfoot, thead, tr, th, td,
63 article, aside, canvas, details, embed,
64 figure, figcaption, footer, header, hgroup,
65 menu, nav, output, ruby, section, summary,
66 time, mark, audio, video {
67 margin: 0;
68 padding: 0;
69 border: 0;
70 font-size: 100%;
71 font: inherit;
72 vertical-align: baseline;
73 }
74 /* HTML5 display-role reset for older browsers */
75 article, aside, details, figcaption, figure,
76 footer, header, hgroup, menu, nav, section {
77 display: block;
78 }
79 body {
80 line-height: 1;
81 }
82 ol, ul {
83 list-style: none;
84 }
85 blockquote, q {
86 quotes: none;
87 }
88 blockquote:before, blockquote:after,
89 q:before, q:after {
90 content: '';
91 content: none;
92 }
93 table {
94 border-collapse: collapse;
95 border-spacing: 0;
96 }
97 /* END OF RESET CSS */
98
99 body {
100 font-family: font-family: Verdana, Arial, Helvetica, sans-serif;
101 font-size: 12px;
102 }
103]]> </field>
104 <field eval="&quot;&quot;&quot;Central Journal Report&quot;&quot;&quot;" name="name"/>
105 </record>
106 </data>
107</openerp>
0108
=== added directory 'account_central_journal/wizard'
=== added file 'account_central_journal/wizard/__init__.py'
--- account_central_journal/wizard/__init__.py 1970-01-01 00:00:00 +0000
+++ account_central_journal/wizard/__init__.py 2012-06-27 10:42:57 +0000
@@ -0,0 +1,22 @@
1# -*- coding: utf-8 -*-
2##############################################################################
3#
4# OpenERP, Open Source Management Solution
5# Copyright (C) 2012 ISA s.r.l. (<http://www.isa.it>).
6#
7# This program is free software: you can redistribute it and/or modify
8# it under the terms of the GNU Affero General Public License as
9# published by the Free Software Foundation, either version 3 of the
10# License, or (at your option) any later version.
11#
12# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU Affero General Public License for more details.
16#
17# You should have received a copy of the GNU Affero General Public License
18# along with this program. If not, see <http://www.gnu.org/licenses/>.
19#
20##############################################################################
21
22import central_journal_report
023
=== added file 'account_central_journal/wizard/central_journal_report.py'
--- account_central_journal/wizard/central_journal_report.py 1970-01-01 00:00:00 +0000
+++ account_central_journal/wizard/central_journal_report.py 2012-06-27 10:42:57 +0000
@@ -0,0 +1,135 @@
1# -*- coding: utf-8 -*-
2##############################################################################
3#
4# OpenERP, Open Source Management Solution
5# Copyright (C) 2012 ISA s.r.l. (<http://www.isa.it>).
6#
7# This program is free software: you can redistribute it and/or modify
8# it under the terms of the GNU Affero General Public License as
9# published by the Free Software Foundation, either version 3 of the
10# License, or (at your option) any later version.
11#
12# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU Affero General Public License for more details.
16#
17# You should have received a copy of the GNU Affero General Public License
18# along with this program. If not, see <http://www.gnu.org/licenses/>.
19#
20##############################################################################
21
22import time
23from datetime import datetime, date, timedelta
24from osv import osv, fields
25from tools.translate import _
26
27class central_journal_report(osv.osv_memory):
28
29 _name = 'wizard.central.journal.report'
30 _description = 'Printing parameters of the Center Journal'
31
32 def _get_fiscal_years(self, cr, uid, context=None):
33 fiscalyear_obj = self.pool.get('account.fiscalyear')
34 fiscalyear_ids = fiscalyear_obj.search(cr, uid, [], order="id desc")
35 fiscalyears = []
36 for account_fiscalyear in fiscalyear_obj.browse(cr,uid,fiscalyear_ids) :
37 fiscalyears.append((account_fiscalyear.id, account_fiscalyear.name))
38 return fiscalyears
39
40 def _get_account_fiscalyear_data(self, cr, uid, ids, fiscalyear_id):
41 fiscalyear_obj = self.pool.get('account.fiscalyear')
42 fiscalyear_ids=fiscalyear_obj.search(cr,uid,[('id','=',fiscalyear_id),])
43 fiscalyear_data=fiscalyear_obj.browse(cr,uid,fiscalyear_ids)[0]
44 return fiscalyear_data
45
46 def _dates_control(self, str_date_start, str_date_end):
47 today_date = date.today()
48 date_start = datetime.strptime(str_date_start,"%Y-%m-%d").date()
49 date_stop = datetime.strptime(str_date_end,"%Y-%m-%d").date()
50 if date_start > date_stop:
51 raise osv.except_osv(_('Wrong dates !'), _("The end date must be greater than the initial date."))
52 return False
53 if date_stop > today_date:
54 raise osv.except_osv(_('Wrong dates !'), _("The end date can not be greater than today's date."))
55 return False
56 return True
57
58 def _get_report_datas(self, cr, uid, ids, context={}):
59 wizard_form_datas = self.read(cr, uid, ids)[0]
60 datas = {
61 'ids': [],
62 'model': 'account.move.line',
63 'form': wizard_form_datas,
64 }
65 return datas
66
67 _columns = {
68 'date_move_line_from': fields.date('From date', required=True,),
69 'date_move_line_from_view': fields.date('From date'),
70 'date_move_line_to': fields.date('to date', required=True),
71 'fiscalyear': fields.selection(_get_fiscal_years, 'Fiscal Year', required=True),
72 'print_state': fields.selection([('draft','Draft'),('print','Ready for printing'),('printed','Printed')],'State',readonly=True),
73 }
74
75 def onchange_fiscalyear(self, cr, uid, ids, fiscalyear_id=False, context=None):
76 print_state = 'draft'
77 date_move_line_from = date_move_line_from_view = False
78 date_move_line_to = False
79 if fiscalyear_id:
80 print_state = 'print'
81 fiscalyear_data = self._get_account_fiscalyear_data(cr, uid, ids, fiscalyear_id)
82 #set values
83 today_date = date.today()
84 date_start = datetime.strptime(fiscalyear_data.date_start,"%Y-%m-%d").date()
85 date_stop = datetime.strptime(fiscalyear_data.date_stop,"%Y-%m-%d").date()
86 #set date_move_line_from
87 if fiscalyear_data.date_last_print:
88 date_last_print = datetime.strptime(fiscalyear_data.date_last_print,"%Y-%m-%d").date()
89 date_move_line_from = date_move_line_from_view = (date_last_print+timedelta(days=1)).__str__()
90 if date_last_print == date_stop:
91 date_move_line_from = date_move_line_from_view = date_start.__str__()
92 print_state = 'printed'
93 else:
94 date_move_line_from = date_move_line_from_view = date_start.__str__()
95 #set date_move_line_to
96 if today_date > date_stop:
97 date_move_line_to = date_stop.__str__()
98 else:
99 date_move_line_to = (today_date-timedelta(days=1)).__str__()
100
101 return {'value': {
102 'date_move_line_from': date_move_line_from,
103 'date_move_line_from_view': date_move_line_from_view,
104 'date_move_line_to': date_move_line_to,
105 'print_state': print_state,
106 }
107 }
108
109 def print_report(self, cr, uid, ids, context={}):
110 datas = self._get_report_datas(cr, uid, ids, context)
111 if self._dates_control(datas['form']['date_move_line_from'],datas['form']['date_move_line_to']) == False:
112 return False
113 datas['print_final'] = False
114 return {
115 'type': 'ir.actions.report.xml',
116 'report_name': 'central_journal_report',
117 'datas': datas,
118 }
119
120 def print_report_final(self, cr, uid, ids, context={}):
121 datas = self._get_report_datas(cr, uid, ids, context)
122 if self._dates_control(datas['form']['date_move_line_from'],datas['form']['date_move_line_to']) == False:
123 return False
124 datas['print_final'] = True
125 return {
126 'type': 'ir.actions.report.xml',
127 'report_name': 'central_journal_report',
128 'datas': datas,
129 }
130
131 _defaults = {
132 'print_state': 'draft',
133 }
134
135central_journal_report()
0136
=== added file 'account_central_journal/wizard/central_journal_report.xml'
--- account_central_journal/wizard/central_journal_report.xml 1970-01-01 00:00:00 +0000
+++ account_central_journal/wizard/central_journal_report.xml 2012-06-27 10:42:57 +0000
@@ -0,0 +1,59 @@
1<?xml version="1.0" encoding="utf-8"?>
2<openerp>
3 <data>
4
5 <!--
6 Central Journal Report Filter View
7 -->
8
9 <record model="ir.ui.view" id="central_journal_report_form_view">
10 <field name="name">wizard.central.journal.report.form</field>
11 <field name="model">wizard.central.journal.report</field>
12 <field name="type">form</field>
13 <field name="arch" type="xml">
14 <form string="Printing parameters of the Center Journal">
15 <group colspan="4" col="4">
16 <separator colspan="4" string="Reference"/>
17 <field name="fiscalyear" on_change="onchange_fiscalyear(fiscalyear)"/>
18 <separator colspan="4" string="Dates movements"/>
19 <field name="date_move_line_from" invisible="1"/>
20 <field name="date_move_line_from_view" readonly="1"/>
21 <field name="date_move_line_to" attrs="{'readonly':[('print_state','!=','print')]}"/>
22 </group>
23 <newline/>
24 <separator colspan="4"/>
25 <group colspan="4" col="6">
26 <field name="print_state"/>
27 <button special="cancel" string="Cancel" icon='gtk-cancel'/>
28 <button name="print_report" string="Print" type="object" icon="gtk-print" attrs="{'invisible':[('print_state','=','printed')]}"/>
29 <button name="print_report_final" string="Final print" type="object" icon="gtk-print" attrs="{'invisible':[('print_state','=','printed')]}"/>
30 </group>
31 </form>
32 </field>
33 </record>
34
35 <!--action -->
36 <record model="ir.actions.act_window" id="central_journal_report_action">
37 <field name="name">Print Central Journal</field>
38 <field name="type">ir.actions.act_window</field>
39 <field name="res_model">wizard.central.journal.report</field>
40 <field name="view_type">form</field>
41 <field name="view_mode">form</field>
42 <field name="target">new</field>
43 </record>
44
45 <!--this feature works only in this file. Don't move-->
46 <record model="ir.values" id="central_journal_report_webkit">
47 <field name="model_id" ref="account.model_account_move_line" />
48 <field name="object" eval="1" />
49 <field name="name">central_journal</field>
50 <field name="key2">client_print_multi</field>
51 <field name="value" eval="'ir.actions.act_window,' + str(ref('central_journal_report_action'))" />
52 <field name="key">action</field>
53 <field name="model">account.move.line</field>
54 </record>
55
56 <menuitem id="menu_central_journal_report_action" parent="account.menu_finance_legal_statement" action="central_journal_report_action"/>
57
58 </data>
59</openerp>
060
=== modified file 'account_fiscal_year_closing/hide_account_wizards.xml'
--- account_fiscal_year_closing/hide_account_wizards.xml 2011-09-28 07:31:37 +0000
+++ account_fiscal_year_closing/hide_account_wizards.xml 2012-06-27 10:42:57 +0000
@@ -28,16 +28,16 @@
28 <menuitem id="menu_account_end_year_treatments_old"28 <menuitem id="menu_account_end_year_treatments_old"
29 name="Other operations"29 name="Other operations"
30 parent="account.menu_account_end_year_treatments"30 parent="account.menu_account_end_year_treatments"
31 sequence="100"/>31 sequence="100" groups="base.group_erp_manager"/>
3232
33 <menuitem id="account.menu_wizard_fy_close"33 <menuitem id="account.menu_wizard_fy_close"
34 parent="menu_account_end_year_treatments_old"/>34 parent="menu_account_end_year_treatments_old" groups="base.group_erp_manager"/>
3535
36 <menuitem id="account.menu_wizard_fy_close_state"36 <menuitem id="account.menu_wizard_fy_close_state"
37 parent="menu_account_end_year_treatments_old"/>37 parent="menu_account_end_year_treatments_old" groups="base.group_erp_manager"/>
3838
39 <menuitem id="account.menu_wizard_account_open_closed_fiscalyear"39 <menuitem id="account.menu_wizard_account_open_closed_fiscalyear"
40 parent="menu_account_end_year_treatments_old"/>40 parent="menu_account_end_year_treatments_old" groups="base.group_erp_manager"/>
4141
42 </data>42 </data>
43</openerp>43</openerp>
4444
=== added file 'account_fiscal_year_closing/i18n/de.po'
--- account_fiscal_year_closing/i18n/de.po 1970-01-01 00:00:00 +0000
+++ account_fiscal_year_closing/i18n/de.po 2012-06-27 10:42:57 +0000
@@ -0,0 +1,802 @@
1# Translation of OpenERP Server.
2# This file contains the translation of the following modules:
3# * account_fiscal_year_closing
4#
5msgid ""
6msgstr ""
7"Project-Id-Version: OpenERP Server 6.0.3\n"
8"Report-Msgid-Bugs-To: support@openerp.com\n"
9"POT-Creation-Date: 2011-10-09 10:49+0000\n"
10"PO-Revision-Date: 2012-02-24 14:22+0100\n"
11"Last-Translator: Thomas Winteler <info@win-soft.ch>\n"
12"Language-Team: \n"
13"MIME-Version: 1.0\n"
14"Content-Type: text/plain; charset=UTF-8\n"
15"Content-Transfer-Encoding: 8bit\n"
16"Plural-Forms: \n"
17
18#. module: account_fiscal_year_closing
19#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:316
20#, python-format
21msgid "The Net L&P period must be defined"
22msgstr "Die Netto Gewinn&Verlust Periode muss definiert werden"
23
24#. module: account_fiscal_year_closing
25#: code:addons/account_fiscal_year_closing/fyc.py:633
26#, python-format
27msgid "You have to review and confirm each of the moves before continuing"
28msgstr "Bitte überprüfen Sie jede Bewegung, bevor Sie fortfahern"
29
30#. module: account_fiscal_year_closing
31#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:347
32#, python-format
33msgid "The closing journal must be defined"
34msgstr "Das Jahresende Journal muss definiert werden"
35
36#. module: account_fiscal_year_closing
37#: model:ir.ui.menu,name:account_fiscal_year_closing.menu_account_end_year_treatments_old
38msgid "Other operations"
39msgstr "Andere Funktionen"
40
41#. module: account_fiscal_year_closing
42#: view:account_fiscal_year_closing.fyc:0
43#: field:account_fiscal_year_closing.fyc_c_account_map,fyc_id:0
44#: field:account_fiscal_year_closing.fyc_lp_account_map,fyc_id:0
45#: field:account_fiscal_year_closing.fyc_nlp_account_map,fyc_id:0
46#: wizard_view:account_fiscal_year_closing.wizard_cancel,init_cancel:0
47#: wizard_view:account_fiscal_year_closing.wizard_cancel,init_run:0
48#: wizard_view:account_fiscal_year_closing.wizard_run,init_cancel:0
49#: wizard_view:account_fiscal_year_closing.wizard_run,init_run:0
50#: code:addons/account_fiscal_year_closing/fyc.py:560
51#: model:ir.module.module,shortdesc:account_fiscal_year_closing.module_meta_information
52#, python-format
53msgid "Fiscal Year Closing"
54msgstr "Geschäftsjahr schliessen"
55
56#. module: account_fiscal_year_closing
57#: code:addons/account_fiscal_year_closing/fyc.py:641
58#, python-format
59msgid "All the moves should be balanced before continuing"
60msgstr "Alle Bewegungen müssen ausgeglichen sein, bevor Sie fortfahren"
61
62#. module: account_fiscal_year_closing
63#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:306
64#, python-format
65msgid "The Net L&P account mappings are not properly configured: %s"
66msgstr "Die Konto-Zuordnungen für den Netto Gewinn&Verlust sind nicht richtig konfiguriert: %s"
67
68#. module: account_fiscal_year_closing
69#: model:ir.model,name:account_fiscal_year_closing.model_account_fiscal_year_closing_fyc_c_account_map
70msgid "SFYC Closing Account Mapping"
71msgstr ""
72
73#. module: account_fiscal_year_closing
74#: field:account_fiscal_year_closing.fyc,check_invalid_period_moves:0
75msgid "Check invalid period or date moves"
76msgstr "Überprüfung Bewegungen mit ungültiger Periode oder Datum"
77
78#. module: account_fiscal_year_closing
79#: field:account_fiscal_year_closing.fyc,company_id:0
80msgid "Company"
81msgstr "Firma"
82
83#. module: account_fiscal_year_closing
84#: view:account_fiscal_year_closing.fyc:0
85msgid "Operation to perform"
86msgstr "Auszuführende Funktionen"
87
88#. module: account_fiscal_year_closing
89#: view:account_fiscal_year_closing.fyc:0
90msgid "Fiscal Year Closings"
91msgstr "Geschäftsjahres Abschlüsse"
92
93#. module: account_fiscal_year_closing
94#: wizard_view:account_fiscal_year_closing.wizard_cancel,show_exception:0
95#: wizard_view:account_fiscal_year_closing.wizard_run,show_exception:0
96msgid "Fiscal Year Closing - Error!"
97msgstr "Abschluss Geschäftsjahr - Fehler!"
98
99#. module: account_fiscal_year_closing
100#: code:addons/account_fiscal_year_closing/fyc.py:330
101#, python-format
102msgid "%s Fiscal Year Closing"
103msgstr "%s Geschäftsjahr Abschluss"
104
105#. module: account_fiscal_year_closing
106#: field:account_fiscal_year_closing.fyc,create_closing:0
107msgid "Close fiscal year"
108msgstr "Schliesse Geschäftsjahr"
109
110#. module: account_fiscal_year_closing
111#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:271
112#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:277
113#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:279
114#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:281
115#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:283
116#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:306
117#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:312
118#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:314
119#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:316
120#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:318
121#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:326
122#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:341
123#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:343
124#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:345
125#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:347
126#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:474
127#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:476
128#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:481
129#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:483
130#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:485
131#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:487
132#, python-format
133msgid "UserError"
134msgstr "Benutzer Fehler"
135
136#. module: account_fiscal_year_closing
137#: field:account_fiscal_year_closing.fyc_c_account_map,source_account_id:0
138msgid "Account"
139msgstr "Konto"
140
141#. module: account_fiscal_year_closing
142#: wizard_view:account_fiscal_year_closing.wizard_cancel,progress:0
143#: wizard_view:account_fiscal_year_closing.wizard_run,progress:0
144msgid "The process may take a while."
145msgstr "Der Vorgang kann eine Weile dauern."
146
147#. module: account_fiscal_year_closing
148#: wizard_view:account_fiscal_year_closing.wizard_cancel,show_exception:0
149#: wizard_view:account_fiscal_year_closing.wizard_run,show_exception:0
150msgid "Error: One of the selected operations has failed!"
151msgstr "Fehler: Eine der ausgewählten Funktionen ist fehlgeschlagen!"
152
153#. module: account_fiscal_year_closing
154#: view:account_fiscal_year_closing.fyc:0
155msgid "Closing"
156msgstr "Abschluss"
157
158#. module: account_fiscal_year_closing
159#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:283
160#, python-format
161msgid "The L&P journal must be defined"
162msgstr "Das Gewinn&Verlust Journal muss definiert werden"
163
164#. module: account_fiscal_year_closing
165#: view:account_fiscal_year_closing.fyc:0
166msgid "Operations"
167msgstr "Funktionen"
168
169#. module: account_fiscal_year_closing
170#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:341
171#, python-format
172msgid "The closing description must be defined"
173msgstr "Die Abschluss Beschreibung muss definiert werden"
174
175#. module: account_fiscal_year_closing
176#: model:ir.model,name:account_fiscal_year_closing.model_account_fiscal_year_closing_fyc
177msgid "Fiscal Year Closing Wizard"
178msgstr "Assistent Abschluss Geschäftsjahr"
179
180#. module: account_fiscal_year_closing
181#: field:account_fiscal_year_closing.fyc,c_account_mapping_ids:0
182msgid "Accounts"
183msgstr "Kontos"
184
185#. module: account_fiscal_year_closing
186#: model:ir.model,name:account_fiscal_year_closing.model_account_fiscal_year_closing_fyc_nlp_account_map
187msgid "SFYC Net Loss & Profit Account Mapping"
188msgstr ""
189
190#. module: account_fiscal_year_closing
191#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:326
192#, python-format
193msgid "The L&P move must exist before creating the closing one"
194msgstr "Die Gewinn&Verlust Bewegung muss vor der abschliessenden Bewegung existieren"
195
196#. module: account_fiscal_year_closing
197#: view:account_fiscal_year_closing.fyc:0
198msgid "Confirm"
199msgstr "Bestätigen"
200
201#. module: account_fiscal_year_closing
202#: code:addons/account_fiscal_year_closing/fyc.py:476
203#, python-format
204msgid "No destination account %s found for account %s."
205msgstr "Kein Ziel Konto %s gefunden für Konto %s"
206
207#. module: account_fiscal_year_closing
208#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:312
209#, python-format
210msgid "The Net L&P description must be defined"
211msgstr "Die Netto Gewin&Verlust Beschreibung muss definiert werden"
212
213#. module: account_fiscal_year_closing
214#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:281
215#, python-format
216msgid "The L&P period must be defined"
217msgstr "Die Gewinn&Verlust periode muss definiert werden"
218
219#. module: account_fiscal_year_closing
220#: selection:account_fiscal_year_closing.fyc,state:0
221msgid "New"
222msgstr "Neu"
223
224#. module: account_fiscal_year_closing
225#: field:account_fiscal_year_closing.fyc,opening_fiscalyear_id:0
226msgid "Fiscal year to open"
227msgstr "Zu öffnendes Geschäftsjahr"
228
229#. module: account_fiscal_year_closing
230#: code:addons/account_fiscal_year_closing/fyc.py:612
231#, python-format
232msgid "The Opening move is required"
233msgstr "The Eröffnungs Bewegung wird benötigt"
234
235#. module: account_fiscal_year_closing
236#: view:account_fiscal_year_closing.fyc:0
237msgid "Account mapping"
238msgstr "Konto Zuordnung"
239
240#. module: account_fiscal_year_closing
241#: field:account_fiscal_year_closing.fyc,check_unbalanced_moves:0
242msgid "Check unbalanced moves"
243msgstr "Überprüfe unausgeglichene Bewegungen"
244
245#. module: account_fiscal_year_closing
246#: wizard_button:account_fiscal_year_closing.wizard_cancel,init_cancel,run:0
247#: wizard_button:account_fiscal_year_closing.wizard_cancel,init_run,run:0
248#: wizard_button:account_fiscal_year_closing.wizard_run,init_cancel,run:0
249#: wizard_button:account_fiscal_year_closing.wizard_run,init_run,run:0
250#: model:ir.actions.wizard,name:account_fiscal_year_closing.wiz_account_fiscal_year_closing_run
251msgid "Run"
252msgstr "Start"
253
254#. module: account_fiscal_year_closing
255#: field:account_fiscal_year_closing.fyc,net_loss_and_profit_move_id:0
256msgid "Net L&P Move"
257msgstr "Netto Gewinn&Verlust Bewegung"
258
259#. module: account_fiscal_year_closing
260#: field:account_fiscal_year_closing.fyc,closing_move_id:0
261msgid "Closing Move"
262msgstr "Abschluss Bewegung"
263
264#. module: account_fiscal_year_closing
265#: model:ir.module.module,description:account_fiscal_year_closing.module_meta_information
266msgid ""
267"\n"
268"Fiscal Year Closing Wizard\n"
269" \n"
270"Replaces the default OpenERP end of year wizards (from account module)\n"
271"with a more advanced all-in-one wizard that will let the users:\n"
272" - Check for unbalanced moves, moves with invalid dates\n"
273" or period or draft moves on the fiscal year to be closed.\n"
274" - Create the Loss and Profit entry.\n"
275" - Create the Net Loss and Profit entry.\n"
276" - Create the Closing entry.\n"
277" - Create the Opening entry.\n"
278"\n"
279"It is stateful, saving all the info about the fiscal year closing, so the\n"
280"user can cancel and undo the operations easily.\n"
281" "
282msgstr ""
283"\n"
284"Geschäftsjahr Schliessungs-Assistent\n"
285" \n"
286"Ersetzt den Standard-OpenERP Jahres-Ende Assistenten (Modul Account/Finanzen)\n"
287"mit einem weiter fortgeschrittenen All-in-One-Assistent, der die Benutzer lassen:\n"
288" - Überprüfung unausgeglicherenr Bewegungen, Bewegung mit ungültigem Datum\n"
289" oder Periode oder Entwurf Bewegungen die sich im zu schliessenden Geschäftsjahr befinden.\n"
290" - Erstellen Sie den Gewinn&Verlust Eintrag\n"
291" - Erstellen Sie den Netto Gewinn und Verlust Eintrag\n"
292" - Erstellen Sie die Abschluss Bewegung\n"
293" - Erstellen Sie die Eröffnungs Bewegung\n"
294"\n"
295"Die Info's für die Geschäftsjahr Schliessung werde abgeschpeichert und können jederzeit storniert und rückgängig gemacht werden.\n"
296" "
297
298#. module: account_fiscal_year_closing
299#: wizard_button:account_fiscal_year_closing.wizard_cancel,progress,end:0
300#: wizard_button:account_fiscal_year_closing.wizard_run,progress,end:0
301msgid "Close (continues in background)"
302msgstr "Schliessen (wird im Hintergrund ausgeführt)"
303
304#. module: account_fiscal_year_closing
305#: view:account_fiscal_year_closing.fyc:0
306msgid "Configuration"
307msgstr "Konfiguration"
308
309#. module: account_fiscal_year_closing
310#: model:ir.actions.act_window,name:account_fiscal_year_closing.action_view_fyc_form
311#: model:ir.ui.menu,name:account_fiscal_year_closing.menu_fyc_new
312msgid "Close Fiscal Year"
313msgstr "Schliesse Geschäftsjahr"
314
315#. module: account_fiscal_year_closing
316#: field:account_fiscal_year_closing.fyc_c_account_map,dest_account_id:0
317#: field:account_fiscal_year_closing.fyc_lp_account_map,dest_account_id:0
318#: field:account_fiscal_year_closing.fyc_nlp_account_map,dest_account_id:0
319msgid "Dest account"
320msgstr "Ziel Konto"
321
322#. module: account_fiscal_year_closing
323#: wizard_view:account_fiscal_year_closing.wizard_cancel,init_cancel:0
324#: wizard_view:account_fiscal_year_closing.wizard_run,init_cancel:0
325msgid "It will remove the previously generated account moves."
326msgstr "Dies entfernt die vorgängig erstellten Konto Bewegungen."
327
328#. module: account_fiscal_year_closing
329#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:271
330#, python-format
331msgid "The L&P account mappings are not properly configured: %s"
332msgstr "Die Konto-Zuordnungen für den Gewinn&Verlust sind nicht richtig konfiguriert: %s"
333
334#. module: account_fiscal_year_closing
335#: wizard_view:account_fiscal_year_closing.wizard_cancel,done:0
336#: wizard_view:account_fiscal_year_closing.wizard_run,done:0
337msgid "The selected operations have been performed sucessfuly."
338msgstr "Die ausgewählten Funktionen wurden erfolgreich durchgeführt."
339
340#. module: account_fiscal_year_closing
341#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:314
342#, python-format
343msgid "The Net L&P date must be defined"
344msgstr "Das Netto Gewinn&Verlust Datum muss definiert werden"
345
346#. module: account_fiscal_year_closing
347#: wizard_view:account_fiscal_year_closing.wizard_cancel,init_cancel:0
348#: wizard_view:account_fiscal_year_closing.wizard_run,init_cancel:0
349msgid "This wizard will cancel the selected operations."
350msgstr "Dieser Assistent bricht die ausgewählten Funktionen ab."
351
352#. module: account_fiscal_year_closing
353#: wizard_field:account_fiscal_year_closing.wizard_cancel,progress,task_progress:0
354#: wizard_field:account_fiscal_year_closing.wizard_run,progress,task_progress:0
355msgid "Task Progress"
356msgstr "Aufgabe Vortschritt"
357
358#. module: account_fiscal_year_closing
359#: view:account_fiscal_year_closing.fyc:0
360msgid "Move created by the operation"
361msgstr "Bewegungen erstellt durch die Funktionen"
362
363#. module: account_fiscal_year_closing
364#: field:account_fiscal_year_closing.fyc,create_opening:0
365msgid "Open next fiscal year"
366msgstr "Öffne nächstes Geschäftsjahr"
367
368#. module: account_fiscal_year_closing
369#: view:account_fiscal_year_closing.fyc:0
370msgid "Please, select the company, fiscal year to close and fiscal year to open."
371msgstr "Bitte wähle die Firma, das Abschluss Geschäftsjahr und das Eröffnungs Geschäftsjahr."
372
373#. module: account_fiscal_year_closing
374#: selection:account_fiscal_year_closing.fyc,state:0
375msgid "Canceled"
376msgstr "Abgebrochen"
377
378#. module: account_fiscal_year_closing
379#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:277
380#, python-format
381msgid "The L&P description must be defined"
382msgstr "Die Gewinn&Verlust Beschreibung muss definiert werden"
383
384#. module: account_fiscal_year_closing
385#: wizard_view:account_fiscal_year_closing.wizard_cancel,init_cancel:0
386#: wizard_view:account_fiscal_year_closing.wizard_run,init_cancel:0
387msgid "Closed periods, and the fiscal year, will be reopened."
388msgstr "Geschossene Perioden und das Geschöftsjahr werden wieder geöffnet"
389
390#. module: account_fiscal_year_closing
391#: wizard_view:account_fiscal_year_closing.wizard_cancel,init_run:0
392#: wizard_view:account_fiscal_year_closing.wizard_run,init_run:0
393msgid "This wizard will perform the selected operations."
394msgstr "Der Assistent wird ausgewählte Funktionen ausführen."
395
396#. module: account_fiscal_year_closing
397#: field:account_fiscal_year_closing.fyc_lp_account_map,source_account_id:0
398#: field:account_fiscal_year_closing.fyc_nlp_account_map,source_account_id:0
399msgid "Source account"
400msgstr "Quell-Konto"
401
402#. module: account_fiscal_year_closing
403#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:343
404#, python-format
405msgid "The closing date must be defined"
406msgstr "Die Abschluss Datum muss definiert werden"
407
408#. module: account_fiscal_year_closing
409#: code:addons/account_fiscal_year_closing/fyc.py:551
410#, python-format
411msgid "Net Loss & Profit"
412msgstr "Netto Gewinn&Verlust"
413
414#. module: account_fiscal_year_closing
415#: view:account_fiscal_year_closing.fyc:0
416#: selection:account_fiscal_year_closing.fyc,state:0
417msgid "Draft"
418msgstr "Entwurf"
419
420#. module: account_fiscal_year_closing
421#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:481
422#, python-format
423msgid "The opening description must be defined"
424msgstr "Die Eröffnungs Beschreibung muss definiert werden"
425
426#. module: account_fiscal_year_closing
427#: code:addons/account_fiscal_year_closing/fyc.py:503
428#, python-format
429msgid "There is already a fiscal year closing with this name."
430msgstr "Ein Geschäftsjahr Abschluss mit selben Namen besteht bereits."
431
432#. module: account_fiscal_year_closing
433#: view:account_fiscal_year_closing.fyc:0
434msgid "Checks"
435msgstr "Überprüfungen"
436
437#. module: account_fiscal_year_closing
438#: view:account_fiscal_year_closing.fyc:0
439msgid "Loss and Profit"
440msgstr "Gewinn&Verlust"
441
442#. module: account_fiscal_year_closing
443#: field:account_fiscal_year_closing.fyc,state:0
444msgid "Status"
445msgstr ""
446
447#. module: account_fiscal_year_closing
448#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:220
449#, python-format
450msgid ""
451"One or more unbalanced moves found: \n"
452"%s"
453msgstr ""
454"Ein oder mehrere unausgeglichene Bewegungen gefunden: \n"
455"%s"
456
457#. module: account_fiscal_year_closing
458#: code:addons/account_fiscal_year_closing/fyc.py:608
459#: code:addons/account_fiscal_year_closing/fyc.py:610
460#: code:addons/account_fiscal_year_closing/fyc.py:612
461#, python-format
462msgid "Not all the operations have been performed!"
463msgstr "Nicht alleFunktionen wurde durchgeführt!"
464
465#. module: account_fiscal_year_closing
466#: field:account_fiscal_year_closing.fyc,c_date:0
467#: field:account_fiscal_year_closing.fyc,lp_date:0
468#: field:account_fiscal_year_closing.fyc,nlp_date:0
469#: field:account_fiscal_year_closing.fyc,o_date:0
470msgid "Date"
471msgstr "Datum"
472
473#. module: account_fiscal_year_closing
474#: wizard_view:account_fiscal_year_closing.wizard_cancel,done:0
475#: wizard_view:account_fiscal_year_closing.wizard_run,done:0
476msgid "Fiscal Year Closing - Done"
477msgstr "Abschluss Geschäftsjahr - Fertig"
478
479#. module: account_fiscal_year_closing
480#: wizard_view:account_fiscal_year_closing.wizard_cancel,init_run:0
481#: wizard_view:account_fiscal_year_closing.wizard_run,init_run:0
482msgid "Non-selected operations will be canceled."
483msgstr "Nicht ausgewählte Funktionen werden abgebrochen."
484
485#. module: account_fiscal_year_closing
486#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:345
487#, python-format
488msgid "The closing period must be defined"
489msgstr "Die Abschluss Periode muss definiert werden"
490
491#. module: account_fiscal_year_closing
492#: wizard_field:account_fiscal_year_closing.wizard_cancel,show_exception,exception_text:0
493#: wizard_field:account_fiscal_year_closing.wizard_run,show_exception,exception_text:0
494msgid "Exception"
495msgstr "Ausnahme"
496
497#. module: account_fiscal_year_closing
498#: code:addons/account_fiscal_year_closing/fyc.py:508
499#, python-format
500msgid "There is already a fiscal year closing for the fiscal year to close."
501msgstr "Es besteht bereits ein Geschäftjahren Abschluss für das ausgewählte Geschäftsjahr."
502
503#. module: account_fiscal_year_closing
504#: help:account_fiscal_year_closing.fyc,check_draft_moves:0
505msgid "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."
506msgstr "Überprüfung ob Bewegungen im Entwurf für das Abschluss Geschäftsjahr bestehen. Nicht bestätigte Bewegungen werden im Abshcluss Prozess nicht beachtet."
507
508#. module: account_fiscal_year_closing
509#: model:ir.model,name:account_fiscal_year_closing.model_account_fiscal_year_closing_fyc_lp_account_map
510msgid "SFYC Loss & Profit Account Mapping"
511msgstr ""
512
513#. module: account_fiscal_year_closing
514#: code:addons/account_fiscal_year_closing/fyc.py:503
515#: code:addons/account_fiscal_year_closing/fyc.py:508
516#: code:addons/account_fiscal_year_closing/fyc.py:513
517#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:134
518#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:169
519#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:220
520#, python-format
521msgid "Error"
522msgstr "Fehler"
523
524#. module: account_fiscal_year_closing
525#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:476
526#, python-format
527msgid "The closing move shouldn't be empty"
528msgstr "Die Abschluss Bewegungen dürfen nicht leer sein"
529
530#. module: account_fiscal_year_closing
531#: code:addons/account_fiscal_year_closing/fyc.py:513
532#, python-format
533msgid "There is already a fiscal year closing for the fiscal year to open."
534msgstr "Es besteht bereits ein Geschäftsjahres Abschluss für das ausgewählte Eröffnungs Geschäftsjahr."
535
536#. module: account_fiscal_year_closing
537#: code:addons/account_fiscal_year_closing/fyc.py:608
538#, python-format
539msgid "The Loss & Profit move is required"
540msgstr "Die Gewinn&Verlust Bewegung ist nötig"
541
542#. module: account_fiscal_year_closing
543#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:279
544#, python-format
545msgid "The L&P date must be defined"
546msgstr "Das Gewinn&Verlust Datum muss definiert werden"
547
548#. module: account_fiscal_year_closing
549#: field:account_fiscal_year_closing.fyc,c_period_id:0
550#: field:account_fiscal_year_closing.fyc,lp_period_id:0
551#: field:account_fiscal_year_closing.fyc,nlp_period_id:0
552#: field:account_fiscal_year_closing.fyc,o_period_id:0
553msgid "Period"
554msgstr "Periode"
555
556#. module: account_fiscal_year_closing
557#: code:addons/account_fiscal_year_closing/fyc.py:633
558#, python-format
559msgid "Some moves are in draft state!"
560msgstr "Einige Bewegungen sind im Entwurf Status!"
561
562#. module: account_fiscal_year_closing
563#: view:account_fiscal_year_closing.fyc:0
564msgid "General"
565msgstr ""
566
567#. module: account_fiscal_year_closing
568#: view:account_fiscal_year_closing.fyc:0
569msgid "Net Loss and Profit"
570msgstr "Netto Gewinn&Verlust"
571
572#. module: account_fiscal_year_closing
573#: selection:account_fiscal_year_closing.fyc,state:0
574#: wizard_button:account_fiscal_year_closing.wizard_cancel,done,end:0
575#: wizard_button:account_fiscal_year_closing.wizard_cancel,show_exception,end:0
576#: wizard_button:account_fiscal_year_closing.wizard_run,done,end:0
577#: wizard_button:account_fiscal_year_closing.wizard_run,show_exception,end:0
578msgid "Done"
579msgstr "Fertig"
580
581#. module: account_fiscal_year_closing
582#: help:account_fiscal_year_closing.fyc,check_invalid_period_moves:0
583msgid "Checks that there are no moves, on the fiscal year that is being closed, with dates or periods outside that fiscal year."
584msgstr "Überprüfungen ob Bewegungen existieren im Abschluss Geschäftsjahr, mit Datum oder Periode ausserhalb des Geschäftjahres."
585
586#. module: account_fiscal_year_closing
587#: view:account_fiscal_year_closing.fyc:0
588#: wizard_button:account_fiscal_year_closing.wizard_cancel,init_cancel,end:0
589#: wizard_button:account_fiscal_year_closing.wizard_cancel,init_run,end:0
590#: wizard_button:account_fiscal_year_closing.wizard_run,init_cancel,end:0
591#: wizard_button:account_fiscal_year_closing.wizard_run,init_run,end:0
592#: model:ir.actions.wizard,name:account_fiscal_year_closing.wiz_account_fiscal_year_closing_cancel
593msgid "Cancel"
594msgstr "Abbrechen"
595
596#. module: account_fiscal_year_closing
597#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:487
598#, python-format
599msgid "The opening journal must be defined"
600msgstr "Das Eröffnungs Journal muss definiert werden"
601
602#. module: account_fiscal_year_closing
603#: wizard_button:account_fiscal_year_closing.wizard_cancel,progress,run:0
604#: wizard_button:account_fiscal_year_closing.wizard_run,progress,run:0
605msgid "Keep waiting"
606msgstr "Bitte warten"
607
608#. module: account_fiscal_year_closing
609#: selection:account_fiscal_year_closing.fyc,state:0
610msgid "In Progress"
611msgstr "In Bearbeitung"
612
613#. module: account_fiscal_year_closing
614#: code:addons/account_fiscal_year_closing/fyc.py:641
615#, python-format
616msgid "Some moves are unbalanced!"
617msgstr "Einige Bewegungen sind nicht ausgeglichen!"
618
619#. module: account_fiscal_year_closing
620#: wizard_view:account_fiscal_year_closing.wizard_cancel,show_exception:0
621#: wizard_view:account_fiscal_year_closing.wizard_run,show_exception:0
622msgid "Details"
623msgstr ""
624
625#. module: account_fiscal_year_closing
626#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:483
627#, python-format
628msgid "The opening date must be defined"
629msgstr "Das eröffnungs Datum muss definiert werden"
630
631#. module: account_fiscal_year_closing
632#: wizard_view:account_fiscal_year_closing.wizard_cancel,init_run:0
633#: wizard_view:account_fiscal_year_closing.wizard_run,init_run:0
634msgid "It will create account moves for the operations you selected, skipping those already created."
635msgstr "Dies erstellt Konto Bewegungen für die ausgewählten Funktionen und überspringt bereits ausgeführte Funktionen."
636
637#. module: account_fiscal_year_closing
638#: model:ir.actions.act_window,name:account_fiscal_year_closing.action_view_fyc_tree
639#: model:ir.ui.menu,name:account_fiscal_year_closing.menu_fyc_list
640msgid "Fiscal Years Closings"
641msgstr "Geschäftsjahres Abschlüsse"
642
643#. module: account_fiscal_year_closing
644#: code:addons/account_fiscal_year_closing/fyc.py:610
645#, python-format
646msgid "The Closing move is required"
647msgstr "Die Abschluss Bewegung ist nötig"
648
649#. module: account_fiscal_year_closing
650#: field:account_fiscal_year_closing.fyc,opening_move_id:0
651msgid "Opening Move"
652msgstr "Eröffnungs Bewegung"
653
654#. module: account_fiscal_year_closing
655#: field:account_fiscal_year_closing.fyc,c_description:0
656#: field:account_fiscal_year_closing.fyc,lp_description:0
657#: field:account_fiscal_year_closing.fyc,name:0
658#: field:account_fiscal_year_closing.fyc,nlp_description:0
659#: field:account_fiscal_year_closing.fyc,o_description:0
660#: field:account_fiscal_year_closing.fyc_c_account_map,name:0
661#: field:account_fiscal_year_closing.fyc_lp_account_map,name:0
662#: field:account_fiscal_year_closing.fyc_nlp_account_map,name:0
663msgid "Description"
664msgstr "Beschreibung"
665
666#. module: account_fiscal_year_closing
667#: view:account_fiscal_year_closing.fyc:0
668msgid "Opening"
669msgstr "Eröffnung"
670
671#. module: account_fiscal_year_closing
672#: view:account_fiscal_year_closing.fyc:0
673msgid "Account to close"
674msgstr "Kontos zum abschliessen"
675
676#. module: account_fiscal_year_closing
677#: field:account_fiscal_year_closing.fyc,c_journal_id:0
678#: field:account_fiscal_year_closing.fyc,lp_journal_id:0
679#: field:account_fiscal_year_closing.fyc,nlp_journal_id:0
680#: field:account_fiscal_year_closing.fyc,o_journal_id:0
681msgid "Journal"
682msgstr ""
683
684#. module: account_fiscal_year_closing
685#: view:account_fiscal_year_closing.fyc:0
686#: field:account_fiscal_year_closing.fyc,lp_account_mapping_ids:0
687#: field:account_fiscal_year_closing.fyc,nlp_account_mapping_ids:0
688msgid "Account mappings"
689msgstr "Konto Zuordnungen"
690
691#. module: account_fiscal_year_closing
692#: field:account_fiscal_year_closing.fyc,check_draft_moves:0
693msgid "Check draft moves"
694msgstr "Überprüfe Bewegungen im Entwurf"
695
696#. module: account_fiscal_year_closing
697#: field:account_fiscal_year_closing.fyc,create_loss_and_profit:0
698msgid "Create Loss & Profit move"
699msgstr "Erstelle Gewinn&Verlust Bewegungn"
700
701#. module: account_fiscal_year_closing
702#: view:account_fiscal_year_closing.fyc:0
703msgid "Fiscal Years"
704msgstr "Geschäftsjahre"
705
706#. module: account_fiscal_year_closing
707#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:318
708#, python-format
709msgid "The Net L&P journal must be defined"
710msgstr "Das Netto Gewinn&Verlust Journal muss definiert werden"
711
712#. module: account_fiscal_year_closing
713#: field:account_fiscal_year_closing.fyc,closing_fiscalyear_id:0
714msgid "Fiscal year to close"
715msgstr "Abschluss Geschäftsjahr"
716
717#. module: account_fiscal_year_closing
718#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:474
719#, python-format
720msgid "The closing move must exist to create the opening one"
721msgstr "Die Abschluss Bewegung muss existieren damit die Eröffnungs Bewegung erstellt werden kann"
722
723#. module: account_fiscal_year_closing
724#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:134
725#, python-format
726msgid ""
727"One or more moves with invalid period or date found on the fiscal year: \n"
728"%s"
729msgstr ""
730"Eine der mehrere Bewegungen mit ungültiger Periode oder Datum im Geschäftsjahr gefunden: \n"
731"%s"
732
733#. module: account_fiscal_year_closing
734#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:169
735#, python-format
736msgid ""
737"One or more draft moves found: \n"
738"%s"
739msgstr ""
740"Eine oder Mehrere Bewegungen im Entwurf gefunden: \n"
741"%s"
742
743#. module: account_fiscal_year_closing
744#: wizard_view:account_fiscal_year_closing.wizard_cancel,progress:0
745#: wizard_view:account_fiscal_year_closing.wizard_run,progress:0
746msgid "Fiscal Year Closing - Working"
747msgstr "Abschlus Geschäftsjahr - Verarbeitung"
748
749#. module: account_fiscal_year_closing
750#: view:account_fiscal_year_closing.fyc:0
751msgid "Perform the operations"
752msgstr "Funktionen ausführen"
753
754#. module: account_fiscal_year_closing
755#: view:account_fiscal_year_closing.fyc:0
756msgid "Continue"
757msgstr "Weiter"
758
759#. module: account_fiscal_year_closing
760#: wizard_field:account_fiscal_year_closing.wizard_cancel,progress,progress:0
761#: wizard_field:account_fiscal_year_closing.wizard_run,progress,progress:0
762msgid "Total Progress"
763msgstr "Total Vortschritt"
764
765#. module: account_fiscal_year_closing
766#: view:account_fiscal_year_closing.fyc:0
767msgid "Accounts to close"
768msgstr "Kontos zum schliessen"
769
770#. module: account_fiscal_year_closing
771#: field:account_fiscal_year_closing.fyc,loss_and_profit_move_id:0
772msgid "L&P Move"
773msgstr "Gewinn&Verlust Bewegung"
774
775#. module: account_fiscal_year_closing
776#: field:account_fiscal_year_closing.fyc,create_net_loss_and_profit:0
777msgid "Create Net Loss & Profit"
778msgstr "Erstelle Netto Gewinn&Verlust"
779
780#. module: account_fiscal_year_closing
781#: help:account_fiscal_year_closing.fyc,check_unbalanced_moves:0
782msgid "Checks that there are no unbalanced moves on the fiscal year that is being closed."
783msgstr "Überprüfe ob keine unausgeglichenen Bewegungn für dasn Abschluss Geschäftsjahr bestehen."
784
785#. module: account_fiscal_year_closing
786#: code:addons/account_fiscal_year_closing/wizard/wizard_run.py:485
787#, python-format
788msgid "The opening period must be defined"
789msgstr "Die Eröffnungs Periode muss definiert werden"
790
791#. module: account_fiscal_year_closing
792#: code:addons/account_fiscal_year_closing/fyc.py:569
793#, python-format
794msgid "Fiscal Year Opening"
795msgstr "Eröffnung Geschäftsjahr"
796
797#. module: account_fiscal_year_closing
798#: code:addons/account_fiscal_year_closing/fyc.py:542
799#, python-format
800msgid "Loss & Profit"
801msgstr "Gewinn & Verlust"
802
0803
=== renamed file 'account_fiscal_year_closing/i18n/de.po' => 'account_fiscal_year_closing/i18n/de.po.moved'
=== modified file 'account_invoice_tax_by_column/test/account_tax.xml'
--- account_invoice_tax_by_column/test/account_tax.xml 2011-11-07 22:47:22 +0000
+++ account_invoice_tax_by_column/test/account_tax.xml 2012-06-27 10:42:57 +0000
@@ -2,26 +2,66 @@
2<openerp>2<openerp>
3 <data noupdate="1">3 <data noupdate="1">
44
5 <!-- Tax codes -->
6
7 <record id="account_tax_code_10" model="account.tax.code">
8 <field name="name">10 %</field>
9 </record>
10 <record id="account_tax_code_10_imp" model="account.tax.code">
11 <field name="name">10 % IMP</field>
12 </record>
13
14 <record id="account_tax_code_21" model="account.tax.code">
15 <field name="name">21 %</field>
16 </record>
17 <record id="account_tax_code_21_imp" model="account.tax.code">
18 <field name="name">21 % IMP</field>
19 </record>
20
21 <record id="account_tax_code_21_inc" model="account.tax.code">
22 <field name="name">21 % INC</field>
23 </record>
24 <record id="account_tax_code_21_inc_imp" model="account.tax.code">
25 <field name="name">21 % INC IMP</field>
26 </record>
27
28 <record id="account_tax_code_20_inc" model="account.tax.code">
29 <field name="name">20 % INC</field>
30 </record>
31 <record id="account_tax_code_20_inc_imp" model="account.tax.code">
32 <field name="name">20 % INC IMP</field>
33 </record>
34
35 <!-- taxes -->
36
5 <record id="account_tax_10" model="account.tax">37 <record id="account_tax_10" model="account.tax">
6 <field name="name">10 %</field>38 <field name="name">10 %</field>
7 <field name="amount">0.1</field>39 <field name="amount">0.1</field>
40 <field name="tax_code_id" ref="account_tax_code_10"></field>
41 <field name="base_code_id" ref="account_tax_code_10_imp"></field>
8 </record>42 </record>
943
10 <record id="account_tax_21" model="account.tax">44 <record id="account_tax_21" model="account.tax">
11 <field name="name">21 %</field>45 <field name="name">21 %</field>
12 <field name="amount">0.21</field>46 <field name="amount">0.21</field>
47 <field name="tax_code_id" ref="account_tax_code_21"></field>
48 <field name="base_code_id" ref="account_tax_code_21_imp"></field>
13 </record>49 </record>
1450
15 <record id="account_tax_21_inc" model="account.tax">51 <record id="account_tax_21_inc" model="account.tax">
16 <field name="name">21 % INC</field>52 <field name="name">21 % INC</field>
17 <field name="amount">0.21</field>53 <field name="amount">0.21</field>
18 <field name="price_include">1</field>54 <field name="price_include">1</field>
55 <field name="tax_code_id" ref="account_tax_code_21_inc"></field>
56 <field name="base_code_id" ref="account_tax_code_21_inc_imp"></field>
19 </record>57 </record>
2058
21 <record id="account_tax_20_inc" model="account.tax">59 <record id="account_tax_20_inc" model="account.tax">
22 <field name="name">20 % INC</field>60 <field name="name">20 % INC</field>
23 <field name="amount">0.2</field>61 <field name="amount">0.2</field>
24 <field name="price_include">1</field>62 <field name="price_include">1</field>
63 <field name="tax_code_id" ref="account_tax_code_20_inc"></field>
64 <field name="base_code_id" ref="account_tax_code_20_inc_imp"></field>
25 </record>65 </record>
26 66
27 </data>67 </data>
2868
=== modified file 'account_invoice_tax_by_column/test/tax_computation.yml'
--- account_invoice_tax_by_column/test/tax_computation.yml 2011-11-07 22:47:22 +0000
+++ account_invoice_tax_by_column/test/tax_computation.yml 2012-06-27 10:42:57 +0000
@@ -186,42 +186,43 @@
186 - amount_tax == 82.26186 - amount_tax == 82.26
187187
188-188-
189 TODO
189 In order to test tax computation I create a new customer invoice190 In order to test tax computation I create a new customer invoice
190-191-
191 !record {model: account.invoice, id: account_invoice_customer4}:192 #!record {model: account.invoice, id: account_invoice_customer4}:
192 account_id: account.a_recv193 #account_id: account.a_recv
193 address_contact_id: base.res_partner_address_zen194 #address_contact_id: base.res_partner_address_zen
194 address_invoice_id: base.res_partner_address_zen195 #address_invoice_id: base.res_partner_address_zen
195 company_id: base.main_company196 #company_id: base.main_company
196 currency_id: base.EUR197 #currency_id: base.EUR
197 date_invoice: !eval time.strftime('%Y-%m-%d')198 #date_invoice: !eval time.strftime('%Y-%m-%d')
198 vertical_comp: 1199 #vertical_comp: 1
199 invoice_line:200 #invoice_line:
200 - account_id: account.a_sale201 #- account_id: account.a_sale
201 name: '148.28'202 #name: '148.28'
202 price_unit: 148.28203 #price_unit: 148.28
203 quantity: 1.0204 #quantity: 1.0
204 invoice_line_tax_id:205 #invoice_line_tax_id:
205 - account_tax_20_inc206 #- account_tax_20_inc
206 - account_id: account.a_sale207 #- account_id: account.a_sale
207 name: '148.28'208 #name: '148.28'
208 price_unit: 148.28209 #price_unit: 148.28
209 quantity: 1.0210 #quantity: 1.0
210 invoice_line_tax_id:211 #invoice_line_tax_id:
211 - account_tax_20_inc212 #- account_tax_20_inc
212 journal_id: account.sales_journal213 #journal_id: account.sales_journal
213 partner_id: base.res_partner_3214 #partner_id: base.res_partner_3
214 215
215- 216#-
216 Compute the total tax.217 #Compute the total tax.
217- 218#-
218 !python {model: account.invoice}: |219 #!python {model: account.invoice}: |
219 self.button_compute(cr, uid, [ref("account_invoice_customer4")]) 220 #self.button_compute(cr, uid, [ref("account_invoice_customer4")])
220- 221#-
221 Then I verify the amount.222 #Then I verify the amount.
222 148.28 + 148.28 = 296.56223 #148.28 + 148.28 = 296.56
223 296.56 ÷ 1.2 = 247.133333333 = 247.13224 #296.56 ÷ 1.2 = 247.133333333 = 247.13
224 296.56 - 247.13 = 49.43225 #296.56 - 247.13 = 49.43
225- 226#-
226 !assert {model: account.invoice, id: account_invoice_customer4}:227 #!assert {model: account.invoice, id: account_invoice_customer4}:
227 - amount_tax == 49.43228 #- amount_tax == 49.43
228229
=== modified file 'l10n_it_account/__init__.py'
--- l10n_it_account/__init__.py 2010-11-17 08:04:13 +0000
+++ l10n_it_account/__init__.py 2012-06-27 10:42:57 +0000
@@ -1,9 +1,9 @@
1# -*- encoding: utf-8 -*-1# -*- coding: utf-8 -*-
2##############################################################################2##############################################################################
3# 3#
4# Copyright (C) 2010 OpenERP Italian Community (<http://www.openerp-italia.org>). 4# Copyright (C) 2010 Associazione OpenERP Italia
5# (<http://www.openerp-italia.org>).
5# All Rights Reserved6# All Rights Reserved
6# $Id$
7#7#
8# This program is free software: you can redistribute it and/or modify8# This program is free software: you can redistribute it and/or modify
9# it under the terms of the GNU Affero General Public License as published by9# it under the terms of the GNU Affero General Public License as published by
@@ -15,7 +15,7 @@
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU General Public License for more details.16# GNU General Public License for more details.
17#17#
18# You should have received a copy of the GNU General Public License18# You should have received a copy of the GNU Affero General Public License
19# along with this program. If not, see <http://www.gnu.org/licenses/>.19# along with this program. If not, see <http://www.gnu.org/licenses/>.
20#20#
21##############################################################################21##############################################################################
2222
=== modified file 'l10n_it_account/__openerp__.py'
--- l10n_it_account/__openerp__.py 2011-05-05 16:46:44 +0000
+++ l10n_it_account/__openerp__.py 2012-06-27 10:42:57 +0000
@@ -1,13 +1,13 @@
1# -*- encoding: utf-8 -*-1# -*- coding: utf-8 -*-
2##############################################################################2##############################################################################
3# 3#
4# Copyright (C) 2010 OpenERP Italian Community (<http://www.openerp-italia.org>). 4# Copyright (C) 2010-2012 Associazione OpenERP Italia
5# (<http://www.openerp-italia.org>).
5# All Rights Reserved6# All Rights Reserved
6# $Id$
7#7#
8# This program is free software: you can redistribute it and/or modify8# This program is free software: you can redistribute it and/or modify
9# it under the terms of the GNU Affero General Public License as published by9# it under the terms of the GNU Affero General Public License as published
10# the Free Software Foundation, either version 3 of the License, or10# by the Free Software Foundation, either version 3 of the License, or
11# (at your option) any later version.11# (at your option) any later version.
12#12#
13# This program is distributed in the hope that it will be useful,13# This program is distributed in the hope that it will be useful,
@@ -15,7 +15,7 @@
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU General Public License for more details.16# GNU General Public License for more details.
17#17#
18# You should have received a copy of the GNU General Public License18# You should have received a copy of the GNU Affero General Public License
19# along with this program. If not, see <http://www.gnu.org/licenses/>.19# along with this program. If not, see <http://www.gnu.org/licenses/>.
20#20#
21##############################################################################21##############################################################################
@@ -34,7 +34,7 @@
34 'author': 'OpenERP Italian Community',34 'author': 'OpenERP Italian Community',
35 'website': 'http://www.openerp-italia.org',35 'website': 'http://www.openerp-italia.org',
36 'license': 'AGPL-3',36 'license': 'AGPL-3',
37 "depends" : ['account','base_vat','account_chart','base_iban', 'account_sequence', 'l10n_it_base'],37 "depends" : ['account','base_vat','account_chart','base_iban', 'l10n_it_base'],
38 "init_xml" : ['account/partner_view.xml'],38 "init_xml" : ['account/partner_view.xml'],
39 "update_xml" : [],39 "update_xml" : [],
40 "demo_xml" : [],40 "demo_xml" : [],
4141
=== modified file 'l10n_it_account/account/__init__.py'
--- l10n_it_account/account/__init__.py 2010-09-22 13:43:42 +0000
+++ l10n_it_account/account/__init__.py 2012-06-27 10:42:57 +0000
@@ -1,12 +1,12 @@
1# -*- encoding: utf-8 -*-1# -*- coding: utf-8 -*-
2##############################################################################2##############################################################################
3# 3#
4# Copyright (C) 2010 OpenERP Italian Community (<http://www.openerp-italia.org>). 4# Copyright (C) 2010 Associazione OpenERP Italia
5# (<http://www.openerp-italia.org>).
5# All Rights Reserved6# All Rights Reserved
6# $Id$
7#7#
8# This program is free software: you can redistribute it and/or modify8# This program is free software: you can redistribute it and/or modify
9# it under the terms of the GNU General Public License as published by9# it under the terms of the GNU Affero General Public License as published by
10# the Free Software Foundation, either version 3 of the License, or10# the Free Software Foundation, either version 3 of the License, or
11# (at your option) any later version.11# (at your option) any later version.
12#12#
@@ -15,7 +15,7 @@
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU General Public License for more details.16# GNU General Public License for more details.
17#17#
18# You should have received a copy of the GNU General Public License18# You should have received a copy of the GNU Affero General Public License
19# along with this program. If not, see <http://www.gnu.org/licenses/>.19# along with this program. If not, see <http://www.gnu.org/licenses/>.
20#20#
21##############################################################################21##############################################################################
2222
=== modified file 'l10n_it_account/account/account.py'
--- l10n_it_account/account/account.py 2010-11-05 08:13:00 +0000
+++ l10n_it_account/account/account.py 2012-06-27 10:42:57 +0000
@@ -1,3 +1,25 @@
1# -*- coding: utf-8 -*-
2##############################################################################
3#
4# Copyright (C) 2010-2012 Associazione OpenERP Italia
5# (<http://www.openerp-italia.org>).
6# All Rights Reserved
7#
8# This program is free software: you can redistribute it and/or modify
9# it under the terms of the GNU Affero General Public License as published by
10# the Free Software Foundation, either version 3 of the License, or
11# (at your option) any later version.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU General Public License for more details.
17#
18# You should have received a copy of the GNU Affero General Public License
19# along with this program. If not, see <http://www.gnu.org/licenses/>.
20#
21##############################################################################
22
1from osv import fields, osv23from osv import fields, osv
2import datetime24import datetime
325
426
=== modified file 'l10n_it_account/account/invoice.py'
--- l10n_it_account/account/invoice.py 2011-11-23 16:40:59 +0000
+++ l10n_it_account/account/invoice.py 2012-06-27 10:42:57 +0000
@@ -1,12 +1,12 @@
1# -*- encoding: utf-8 -*-1# -*- coding: utf-8 -*-
2##############################################################################2##############################################################################
3# 3#
4# Copyright (C) 2010 OpenERP Italian Community (<http://www.openerp-italia.org>). 4# Copyright (C) 2010 Associazione OpenERP Italia
5# (<http://www.openerp-italia.org>).
5# All Rights Reserved6# All Rights Reserved
6# $Id$
7#7#
8# This program is free software: you can redistribute it and/or modify8# This program is free software: you can redistribute it and/or modify
9# it under the terms of the GNU General Public License as published by9# it under the terms of the GNU Affero General Public License as published by
10# the Free Software Foundation, either version 3 of the License, or10# the Free Software Foundation, either version 3 of the License, or
11# (at your option) any later version.11# (at your option) any later version.
12#12#
@@ -15,7 +15,7 @@
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU General Public License for more details.16# GNU General Public License for more details.
17#17#
18# You should have received a copy of the GNU General Public License18# You should have received a copy of the GNU Affero General Public License
19# along with this program. If not, see <http://www.gnu.org/licenses/>.19# along with this program. If not, see <http://www.gnu.org/licenses/>.
20#20#
21##############################################################################21##############################################################################
2222
=== modified file 'l10n_it_base/partner/data/res.partner.title.csv'
--- l10n_it_base/partner/data/res.partner.title.csv 2011-01-20 08:16:16 +0000
+++ l10n_it_base/partner/data/res.partner.title.csv 2012-06-27 10:42:57 +0000
@@ -1,17 +1,17 @@
1"id","name","shortcut","domain"1id,name,shortcut,domain
21,"Ditta individuale","DI","partner"2di,Ditta individuale,DI,partner
32,"S.n.c.","S.n.c.","partner"3snc,S.n.c.,S.n.c.,partner
43,"S.a.s.","S.a.s.","partner"4sas,S.a.s.,S.a.s.,partner
54,"S.p.A.","S.p.A.","partner"5spa,S.p.A.,S.p.A.,partner
65,"S.r.l.","S.r.l.","partner"6srl,S.r.l.,S.r.l.,partner
76,"S.a.p.a.","S.a.p.a.","partner"7sapa,S.a.p.a.,S.a.p.a.,partner
87,"Impresa Famigliare","IF","partner"8if,Impresa Famigliare,IF,partner
98,"Persona Fisica","PF","partner"9pf,Persona Fisica,PF,partner
109,"Spett.le","Spett.le","contact"10spettle,Spett.le,Spett.le,contact
1110,"Ing.","Ing.","contact"11ing,Ing.,Ing.,contact
1211,"Egr. Sig.ra","Egr. Sig.ra","contact"12egrsigra,Egr. Sig.ra,Egr. Sig.ra,contact
1312,"Dott.","Dott.","contact"13dott,Dott.,Dott.,contact
1413,"Notaio","Notaio","contact"14notaio,Notaio,Notaio,contact
1514,"Arch.","Arch.","contact"15arch,Arch.,Arch.,contact
1615,"Avv.","Avv.","contact"16avv,Avv.,Avv.,contact
1716,"Egr. Sig.","Egr. Sig.","contact"17egrsig,Egr. Sig.,Egr. Sig.,contact
1818
=== modified file 'l10n_it_corrispettivi/__openerp__.py'
--- l10n_it_corrispettivi/__openerp__.py 2012-01-02 08:02:51 +0000
+++ l10n_it_corrispettivi/__openerp__.py 2012-06-27 10:42:57 +0000
@@ -1,4 +1,4 @@
1# -*- encoding: utf-8 -*-1# -*- coding: utf-8 -*-
2##############################################################################2##############################################################################
3# 3#
4# Copyright (C) 2011 Associazione OpenERP Italia4# Copyright (C) 2011 Associazione OpenERP Italia
55
=== added directory 'l10n_it_prima_nota_cassa'
=== added file 'l10n_it_prima_nota_cassa/AUTHORS.txt'
--- l10n_it_prima_nota_cassa/AUTHORS.txt 1970-01-01 00:00:00 +0000
+++ l10n_it_prima_nota_cassa/AUTHORS.txt 2012-06-27 10:42:57 +0000
@@ -0,0 +1,2 @@
1Leonardo Pistone <leonardo.pistone@domsense.com>
2Lorenzo Battistini <lorenzo.battistini@domsense.com>
03
=== added file 'l10n_it_prima_nota_cassa/README.txt'
--- l10n_it_prima_nota_cassa/README.txt 1970-01-01 00:00:00 +0000
+++ l10n_it_prima_nota_cassa/README.txt 2012-06-27 10:42:57 +0000
@@ -0,0 +1,5 @@
1Questo modulo usa report_webkit.
2E' necessario installare wkhtmltopdf per la stampa dei reports.
3
4La versione inclusa in Ubuntu necessità di alcune patch, quindi è più agevole scaricare l'eseguibile binario dal sito del progetto:
5http://code.google.com/p/wkhtmltopdf/
06
=== added file 'l10n_it_prima_nota_cassa/__init__.py'
--- l10n_it_prima_nota_cassa/__init__.py 1970-01-01 00:00:00 +0000
+++ l10n_it_prima_nota_cassa/__init__.py 2012-06-27 10:42:57 +0000
@@ -0,0 +1,24 @@
1# -*- coding: utf-8 -*-
2##############################################################################
3#
4# Copyright (C) 2011-2012 Associazione OpenERP Italia
5# (<http://www.openerp-italia.org>).
6# All Rights Reserved
7#
8# This program is free software: you can redistribute it and/or modify
9# it under the terms of the GNU Affero General Public License as published by
10# the Free Software Foundation, either version 3 of the License, or
11# (at your option) any later version.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU General Public License for more details.
17#
18# You should have received a copy of the GNU Affero General Public License
19# along with this program. If not, see <http://www.gnu.org/licenses/>.
20#
21##############################################################################
22
23import report
24import wizard
025
=== added file 'l10n_it_prima_nota_cassa/__openerp__.py'
--- l10n_it_prima_nota_cassa/__openerp__.py 1970-01-01 00:00:00 +0000
+++ l10n_it_prima_nota_cassa/__openerp__.py 2012-06-27 10:42:57 +0000
@@ -0,0 +1,40 @@
1# -*- coding: utf-8 -*-
2##############################################################################
3#
4# Copyright (C) 2011-2012 Associazione OpenERP Italia
5# (<http://www.openerp-italia.org>).
6# All Rights Reserved
7#
8# This program is free software: you can redistribute it and/or modify
9# it under the terms of the GNU Affero General Public License as published by
10# the Free Software Foundation, either version 3 of the License, or
11# (at your option) any later version.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU General Public License for more details.
17#
18# You should have received a copy of the GNU Affero General Public License
19# along with this program. If not, see <http://www.gnu.org/licenses/>.
20#
21##############################################################################
22{
23 'name': 'Italian Localisation - Prima Nota Cassa',
24 'version': '0.1',
25 'category': 'Localisation/Italy',
26 'description': """Accounting reports - Prima Nota Cassa - Webkit""",
27 'author': 'OpenERP Italian Community',
28 'website': 'http://www.openerp-italia.org',
29 'license': 'AGPL-3',
30 "depends" : ['account', 'report_webkit'],
31 "init_xml" : [
32 ],
33 "update_xml" : [
34 'reports.xml',
35 'wizard/wizard_print_prima_nota_cassa.xml',
36 ],
37 "demo_xml" : [],
38 "active": False,
39 "installable": True
40}
041
=== added directory 'l10n_it_prima_nota_cassa/i18n'
=== added file 'l10n_it_prima_nota_cassa/i18n/it.po'
--- l10n_it_prima_nota_cassa/i18n/it.po 1970-01-01 00:00:00 +0000
+++ l10n_it_prima_nota_cassa/i18n/it.po 2012-06-27 10:42:57 +0000
@@ -0,0 +1,214 @@
1# Translation of OpenERP Server.
2# This file contains the translation of the following modules:
3# * l10n_it_prima_nota_cassa
4#
5msgid ""
6msgstr ""
7"Project-Id-Version: OpenERP Server 6.0.2\n"
8"Report-Msgid-Bugs-To: support@openerp.com\n"
9"POT-Creation-Date: 2011-08-02 09:42+0000\n"
10"PO-Revision-Date: 2011-08-02 12:02+0100\n"
11"Last-Translator: Lorenzo Battistini <lorenzo.battistini@agilebg.com>\n"
12"Language-Team: \n"
13"MIME-Version: 1.0\n"
14"Content-Type: text/plain; charset=UTF-8\n"
15"Content-Transfer-Encoding: 8bit\n"
16"Plural-Forms: \n"
17
18#. module: l10n_it_prima_nota_cassa
19#: report:report.account.print.prima_nota_cassa:8
20msgid "Prime entry"
21msgstr "Prima nota"
22
23#. module: l10n_it_prima_nota_cassa
24#: model:ir.module.module,shortdesc:l10n_it_prima_nota_cassa.module_meta_information
25msgid "Italian Localisation - Prima Nota Cassa"
26msgstr "Localizzazione Italiana - Prima Nota Cassa"
27
28#. module: l10n_it_prima_nota_cassa
29#: view:account.report.prima_nota_cassa:0
30msgid "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."
31msgstr "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."
32
33#. module: l10n_it_prima_nota_cassa
34#: report:report.account.print.prima_nota_cassa:43
35#: code:addons/l10n_it_prima_nota_cassa/report/prima_nota_cassa.py:36
36#, python-format
37msgid "Debit"
38msgstr "Entrate"
39
40#. module: l10n_it_prima_nota_cassa
41#: report:report.account.print.prima_nota_cassa:16
42msgid "Filter By"
43msgstr "Filtro per"
44
45#. module: l10n_it_prima_nota_cassa
46#: report:report.account.print.prima_nota_cassa:42
47msgid "Entry Label"
48msgstr "Descrizione"
49
50#. module: l10n_it_prima_nota_cassa
51#: report:report.account.print.prima_nota_cassa:40
52msgid "Ref"
53msgstr "Rif"
54
55#. module: l10n_it_prima_nota_cassa
56#: model:ir.model,name:l10n_it_prima_nota_cassa.model_account_report_prima_nota_cassa
57msgid "Print Prima Nota Cassa"
58msgstr "Stampa Prima Nota Cassa"
59
60#. module: l10n_it_prima_nota_cassa
61#: selection:account.report.prima_nota_cassa,display_account:0
62msgid "With balance is not equal to 0"
63msgstr "Con saldo diverso da 0"
64
65#. module: l10n_it_prima_nota_cassa
66#: model:ir.module.module,description:l10n_it_prima_nota_cassa.module_meta_information
67msgid "Accounting reports - Prima Nota Cassa - Webkit"
68msgstr "Stampe Contabili - Prima Nota Cassa - Webkit"
69
70#. module: l10n_it_prima_nota_cassa
71#: report:report.account.print.prima_nota_cassa:15
72msgid "Jounal"
73msgstr "Sezionale"
74
75#. module: l10n_it_prima_nota_cassa
76#: selection:account.report.prima_nota_cassa,filter:0
77#: report:report.account.print.prima_nota_cassa:37
78msgid "Date"
79msgstr "Data"
80
81#. module: l10n_it_prima_nota_cassa
82#: report:report.account.print.prima_nota_cassa:13
83msgid "Chart of Account"
84msgstr "Piano dei conti"
85
86#. module: l10n_it_prima_nota_cassa
87#: field:account.report.prima_nota_cassa,journal_ids:0
88msgid "Journals"
89msgstr "Sezionali"
90
91#. module: l10n_it_prima_nota_cassa
92#: field:account.report.prima_nota_cassa,target_move:0
93#: report:report.account.print.prima_nota_cassa:17
94msgid "Target Moves"
95msgstr "Registrazioni target"
96
97#. module: l10n_it_prima_nota_cassa
98#: help:account.report.prima_nota_cassa,chart_account_id:0
99msgid "Select Charts of Accounts"
100msgstr "Seleziona piano dei conti"
101
102#. module: l10n_it_prima_nota_cassa
103#: field:account.report.prima_nota_cassa,date_to:0
104msgid "End Date"
105msgstr "Data fine"
106
107#. module: l10n_it_prima_nota_cassa
108#: field:account.report.prima_nota_cassa,display_account:0
109msgid "Display accounts"
110msgstr "Visualizza conti"
111
112#. module: l10n_it_prima_nota_cassa
113#: selection:account.report.prima_nota_cassa,target_move:0
114msgid "All Posted Entries"
115msgstr "Tutte le registrazioni confermate"
116
117#. module: l10n_it_prima_nota_cassa
118#: help:account.report.prima_nota_cassa,fiscalyear_id:0
119msgid "Keep empty for all open fiscal year"
120msgstr "Lasciare vuoto per tutti gli anni fiscali aperti"
121
122#. module: l10n_it_prima_nota_cassa
123#: report:report.account.print.prima_nota_cassa:44
124msgid "Credit"
125msgstr "Uscite"
126
127#. module: l10n_it_prima_nota_cassa
128#: report:report.account.print.prima_nota_cassa:14
129msgid "Fiscal Year"
130msgstr "Anno fiscale"
131
132#. module: l10n_it_prima_nota_cassa
133#: selection:account.report.prima_nota_cassa,filter:0
134msgid "No Filters"
135msgstr "Nessun filtro"
136
137#. module: l10n_it_prima_nota_cassa
138#: field:account.report.prima_nota_cassa,chart_account_id:0
139msgid "Chart of account"
140msgstr "Piano dei conti"
141
142#. module: l10n_it_prima_nota_cassa
143#: report:report.account.print.prima_nota_cassa:45
144msgid "Balance"
145msgstr "Saldo"
146
147#. module: l10n_it_prima_nota_cassa
148#: view:account.report.prima_nota_cassa:0
149#: model:ir.actions.act_window,name:l10n_it_prima_nota_cassa.action_account_prima_nota_cassa
150#: model:ir.actions.report.xml,name:l10n_it_prima_nota_cassa.prima_nota_cassa
151#: model:ir.ui.menu,name:l10n_it_prima_nota_cassa.menu_print_prima_nota_cassa
152msgid "Prima Nota Cassa"
153msgstr "Prima Nota Cassa"
154
155#. module: l10n_it_prima_nota_cassa
156#: selection:account.report.prima_nota_cassa,display_account:0
157msgid "With movements"
158msgstr "Con registrazioni"
159
160#. module: l10n_it_prima_nota_cassa
161#: selection:account.report.prima_nota_cassa,display_account:0
162msgid "All"
163msgstr "Tutti"
164
165#. module: l10n_it_prima_nota_cassa
166#: field:account.report.prima_nota_cassa,period_from:0
167msgid "Start period"
168msgstr "Periodo di inizio"
169
170#. module: l10n_it_prima_nota_cassa
171#: report:report.account.print.prima_nota_cassa:41
172msgid "Move"
173msgstr "Movimento"
174
175#. module: l10n_it_prima_nota_cassa
176#: field:account.report.prima_nota_cassa,period_to:0
177msgid "End period"
178msgstr "Periodo di fine"
179
180#. module: l10n_it_prima_nota_cassa
181#: field:account.report.prima_nota_cassa,fiscalyear_id:0
182msgid "Fiscal year"
183msgstr "Anno fiscale"
184
185#. module: l10n_it_prima_nota_cassa
186#: selection:account.report.prima_nota_cassa,filter:0
187msgid "Periods"
188msgstr "Periodi"
189
190#. module: l10n_it_prima_nota_cassa
191#: report:report.account.print.prima_nota_cassa:38
192msgid "JRNL"
193msgstr "JRNL"
194
195#. module: l10n_it_prima_nota_cassa
196#: report:report.account.print.prima_nota_cassa:39
197msgid "Partner"
198msgstr "Partner"
199
200#. module: l10n_it_prima_nota_cassa
201#: field:account.report.prima_nota_cassa,date_from:0
202msgid "Start Date"
203msgstr "Data inizio"
204
205#. module: l10n_it_prima_nota_cassa
206#: field:account.report.prima_nota_cassa,filter:0
207msgid "Filter by"
208msgstr "Filtra per"
209
210#. module: l10n_it_prima_nota_cassa
211#: selection:account.report.prima_nota_cassa,target_move:0
212msgid "All Entries"
213msgstr "Tutte le registrazioni"
214
0215
=== added file 'l10n_it_prima_nota_cassa/i18n/l10n_it_prima_nota_cassa.pot'
--- l10n_it_prima_nota_cassa/i18n/l10n_it_prima_nota_cassa.pot 1970-01-01 00:00:00 +0000
+++ l10n_it_prima_nota_cassa/i18n/l10n_it_prima_nota_cassa.pot 2012-06-27 10:42:57 +0000
@@ -0,0 +1,214 @@
1# Translation of OpenERP Server.
2# This file contains the translation of the following modules:
3# * l10n_it_prima_nota_cassa
4#
5msgid ""
6msgstr ""
7"Project-Id-Version: OpenERP Server 6.0.2\n"
8"Report-Msgid-Bugs-To: support@openerp.com\n"
9"POT-Creation-Date: 2011-08-02 07:44+0000\n"
10"PO-Revision-Date: 2011-08-02 07:44+0000\n"
11"Last-Translator: <>\n"
12"Language-Team: \n"
13"MIME-Version: 1.0\n"
14"Content-Type: text/plain; charset=UTF-8\n"
15"Content-Transfer-Encoding: \n"
16"Plural-Forms: \n"
17
18#. module: l10n_it_prima_nota_cassa
19#: report:addons/l10n_it_prima_nota_cassa/report/prima_nota_cassa.mako:8
20msgid "Prime entry"
21msgstr ""
22
23#. module: l10n_it_prima_nota_cassa
24#: model:ir.module.module,description:l10n_it_prima_nota_cassa.module_meta_information
25msgid "Accounting reports - Prima Nota Cassa - Webkit"
26msgstr ""
27
28#. module: l10n_it_prima_nota_cassa
29#: view:account.report.prima_nota_cassa:0
30msgid "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."
31msgstr ""
32
33#. module: l10n_it_prima_nota_cassa
34#: report:addons/l10n_it_prima_nota_cassa/report/prima_nota_cassa.mako:43
35#: code:addons/l10n_it_prima_nota_cassa/report/prima_nota_cassa.py:36
36#, python-format
37msgid "Debit"
38msgstr ""
39
40#. module: l10n_it_prima_nota_cassa
41#: report:addons/l10n_it_prima_nota_cassa/report/prima_nota_cassa.mako:16
42msgid "Filter By"
43msgstr ""
44
45#. module: l10n_it_prima_nota_cassa
46#: report:addons/l10n_it_prima_nota_cassa/report/prima_nota_cassa.mako:42
47msgid "Entry Label"
48msgstr ""
49
50#. module: l10n_it_prima_nota_cassa
51#: report:addons/l10n_it_prima_nota_cassa/report/prima_nota_cassa.mako:40
52msgid "Ref"
53msgstr ""
54
55#. module: l10n_it_prima_nota_cassa
56#: model:ir.model,name:l10n_it_prima_nota_cassa.model_account_report_prima_nota_cassa
57msgid "Print Prima Nota Cassa"
58msgstr ""
59
60#. module: l10n_it_prima_nota_cassa
61#: selection:account.report.prima_nota_cassa,display_account:0
62msgid "With balance is not equal to 0"
63msgstr ""
64
65#. module: l10n_it_prima_nota_cassa
66#: report:addons/l10n_it_prima_nota_cassa/report/prima_nota_cassa.mako:15
67msgid "Jounal"
68msgstr ""
69
70#. module: l10n_it_prima_nota_cassa
71#: model:ir.module.module,shortdesc:l10n_it_prima_nota_cassa.module_meta_information
72msgid "Italian Localisation - Accounting Webkit reports"
73msgstr ""
74
75#. module: l10n_it_prima_nota_cassa
76#: selection:account.report.prima_nota_cassa,filter:0
77#: report:addons/l10n_it_prima_nota_cassa/report/prima_nota_cassa.mako:37
78msgid "Date"
79msgstr ""
80
81#. module: l10n_it_prima_nota_cassa
82#: report:addons/l10n_it_prima_nota_cassa/report/prima_nota_cassa.mako:13
83msgid "Chart of Account"
84msgstr ""
85
86#. module: l10n_it_prima_nota_cassa
87#: field:account.report.prima_nota_cassa,journal_ids:0
88msgid "Journals"
89msgstr ""
90
91#. module: l10n_it_prima_nota_cassa
92#: field:account.report.prima_nota_cassa,target_move:0
93#: report:addons/l10n_it_prima_nota_cassa/report/prima_nota_cassa.mako:17
94msgid "Target Moves"
95msgstr ""
96
97#. module: l10n_it_prima_nota_cassa
98#: help:account.report.prima_nota_cassa,chart_account_id:0
99msgid "Select Charts of Accounts"
100msgstr ""
101
102#. module: l10n_it_prima_nota_cassa
103#: field:account.report.prima_nota_cassa,date_to:0
104msgid "End Date"
105msgstr ""
106
107#. module: l10n_it_prima_nota_cassa
108#: field:account.report.prima_nota_cassa,display_account:0
109msgid "Display accounts"
110msgstr ""
111
112#. module: l10n_it_prima_nota_cassa
113#: selection:account.report.prima_nota_cassa,target_move:0
114msgid "All Posted Entries"
115msgstr ""
116
117#. module: l10n_it_prima_nota_cassa
118#: help:account.report.prima_nota_cassa,fiscalyear_id:0
119msgid "Keep empty for all open fiscal year"
120msgstr ""
121
122#. module: l10n_it_prima_nota_cassa
123#: report:addons/l10n_it_prima_nota_cassa/report/prima_nota_cassa.mako:44
124msgid "Credit"
125msgstr ""
126
127#. module: l10n_it_prima_nota_cassa
128#: report:addons/l10n_it_prima_nota_cassa/report/prima_nota_cassa.mako:14
129msgid "Fiscal Year"
130msgstr ""
131
132#. module: l10n_it_prima_nota_cassa
133#: selection:account.report.prima_nota_cassa,filter:0
134msgid "No Filters"
135msgstr ""
136
137#. module: l10n_it_prima_nota_cassa
138#: field:account.report.prima_nota_cassa,chart_account_id:0
139msgid "Chart of account"
140msgstr ""
141
142#. module: l10n_it_prima_nota_cassa
143#: report:addons/l10n_it_prima_nota_cassa/report/prima_nota_cassa.mako:45
144msgid "Balance"
145msgstr ""
146
147#. module: l10n_it_prima_nota_cassa
148#: view:account.report.prima_nota_cassa:0
149#: model:ir.actions.act_window,name:l10n_it_prima_nota_cassa.action_account_prima_nota_cassa
150#: model:ir.actions.report.xml,name:l10n_it_prima_nota_cassa.prima_nota_cassa
151#: model:ir.ui.menu,name:l10n_it_prima_nota_cassa.menu_print_prima_nota_cassa
152msgid "Prima Nota Cassa"
153msgstr ""
154
155#. module: l10n_it_prima_nota_cassa
156#: selection:account.report.prima_nota_cassa,display_account:0
157msgid "With movements"
158msgstr ""
159
160#. module: l10n_it_prima_nota_cassa
161#: selection:account.report.prima_nota_cassa,display_account:0
162msgid "All"
163msgstr ""
164
165#. module: l10n_it_prima_nota_cassa
166#: field:account.report.prima_nota_cassa,period_from:0
167msgid "Start period"
168msgstr ""
169
170#. module: l10n_it_prima_nota_cassa
171#: report:addons/l10n_it_prima_nota_cassa/report/prima_nota_cassa.mako:41
172msgid "Move"
173msgstr ""
174
175#. module: l10n_it_prima_nota_cassa
176#: field:account.report.prima_nota_cassa,period_to:0
177msgid "End period"
178msgstr ""
179
180#. module: l10n_it_prima_nota_cassa
181#: field:account.report.prima_nota_cassa,fiscalyear_id:0
182msgid "Fiscal year"
183msgstr ""
184
185#. module: l10n_it_prima_nota_cassa
186#: selection:account.report.prima_nota_cassa,filter:0
187msgid "Periods"
188msgstr ""
189
190#. module: l10n_it_prima_nota_cassa
191#: report:addons/l10n_it_prima_nota_cassa/report/prima_nota_cassa.mako:38
192msgid "JRNL"
193msgstr ""
194
195#. module: l10n_it_prima_nota_cassa
196#: report:addons/l10n_it_prima_nota_cassa/report/prima_nota_cassa.mako:39
197msgid "Partner"
198msgstr ""
199
200#. module: l10n_it_prima_nota_cassa
201#: field:account.report.prima_nota_cassa,date_from:0
202msgid "Start Date"
203msgstr ""
204
205#. module: l10n_it_prima_nota_cassa
206#: field:account.report.prima_nota_cassa,filter:0
207msgid "Filter by"
208msgstr ""
209
210#. module: l10n_it_prima_nota_cassa
211#: selection:account.report.prima_nota_cassa,target_move:0
212msgid "All Entries"
213msgstr ""
214
0215
=== added directory 'l10n_it_prima_nota_cassa/report'
=== added file 'l10n_it_prima_nota_cassa/report/__init__.py'
--- l10n_it_prima_nota_cassa/report/__init__.py 1970-01-01 00:00:00 +0000
+++ l10n_it_prima_nota_cassa/report/__init__.py 2012-06-27 10:42:57 +0000
@@ -0,0 +1,22 @@
1# -*- coding: utf-8 -*-
2##############################################################################
3#
4# Copyright (C) 2011-2012 Associazione OpenERP Italia
5# (<http://www.openerp-italia.org>).
6# All Rights Reserved
7#
8# This program is free software: you can redistribute it and/or modify
9# it under the terms of the GNU Affero General Public License as published by
10# the Free Software Foundation, either version 3 of the License, or
11# (at your option) any later version.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU General Public License for more details.
17#
18# You should have received a copy of the GNU Affero General Public License
19# along with this program. If not, see <http://www.gnu.org/licenses/>.
20#
21##############################################################################
22import prima_nota_cassa
023
=== added file 'l10n_it_prima_nota_cassa/report/prima_nota_cassa.mako'
--- l10n_it_prima_nota_cassa/report/prima_nota_cassa.mako 1970-01-01 00:00:00 +0000
+++ l10n_it_prima_nota_cassa/report/prima_nota_cassa.mako 2012-06-27 10:42:57 +0000
@@ -0,0 +1,67 @@
1<html>
2<head>
3 <style type="text/css">
4 ${css}
5 </style>
6</head>
7<body>
8<h1 class="title">${_("Prime entry")} </h1>
9## ${ ipdb(data) }
10
11<table class="basic_table" width="90%">
12 <tr>
13 <td>${ _("Chart of Account") }</td>
14 <td>${ _("Fiscal Year") }</td>
15 <td>${ _("Jounal")}</td>
16 <td>${ _("Filter By") }</td>
17 <td>${ _("Target Moves") }</td>
18 </tr>
19 <tr>
20
21 <td>${ get_account(data) or '' }</td>
22 <td>${ get_fiscalyear(data) or '' }</td>
23 <td>${ ', '.join([ lt or '' for lt in get_journal(data)]) }</td>
24 <td>${ get_filter(data) or '' }</td>
25 <td>${ get_target_move(data) }</td>
26 </tr>
27</table>
28
29<br />
30
31<div id="results">
32 % for a in objects:
33## ${ company.partner_id.lang }
34 <% setLang(company.partner_id.lang) %>
35 <table class="list_table" width="90%">
36 <tr>
37 <th> ${ _('Date') }</th>
38 <th> ${ _('JRNL') }</th>
39 <th> ${ _('Partner') }</th>
40 <th> ${ _('Ref') }</th>
41 <th> ${ _('Move') }</th>
42 <th> ${ _('Entry Label') }</th>
43 <th> ${ _('Debit') }</th>
44 <th> ${ _('Credit') }</th>
45 <th> ${ _('Balance') }</th>
46 </tr>
47
48
49 %for line in lines(a) :
50 <tr style="page-break-inside: avoid; vertical-align:text-top;">
51 <td>${ formatLang(line['ldate'], date=True) or ''|entity }</td>
52 <td>${ line['jname'] or ''|entity }</td>
53 <td>${ line['partner_name'] or ''|entity }</td>
54 <td>${ line['lref'] or ''|entity }</td>
55 <td>${ line['move'] or ''|entity }</td>
56 <td>${ line['lname'] or ''|entity }</td>
57 <td>${ formatLang(line['debit'], digits=get_digits(dp='Account')) |entity}</td>
58 <td>${ formatLang(line['credit'], digits=get_digits(dp='Account')) |entity}</td>
59 <td>${ line['debit'] - line['credit'] |entity}</td>
60 </tr>
61 %endfor
62 </table>
63 %endfor
64 ## ${ ipdb(data) }
65</div>
66</body>
67</html>
068
=== added file 'l10n_it_prima_nota_cassa/report/prima_nota_cassa.py'
--- l10n_it_prima_nota_cassa/report/prima_nota_cassa.py 1970-01-01 00:00:00 +0000
+++ l10n_it_prima_nota_cassa/report/prima_nota_cassa.py 2012-06-27 10:42:57 +0000
@@ -0,0 +1,307 @@
1# -*- coding: utf-8 -*-
2##############################################################################
3#
4# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
5# Copyright (C) 2011-2012 Associazione OpenERP Italia
6# (<http://www.openerp-italia.org>).
7# All Rights Reserved
8#
9# This program is free software: you can redistribute it and/or modify
10# it under the terms of the GNU Affero General Public License as published by
11# the Free Software Foundation, either version 3 of the License, or
12# (at your option) any later version.
13#
14# This program is distributed in the hope that it will be useful,
15# but WITHOUT ANY WARRANTY; without even the implied warranty of
16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17# GNU General Public License for more details.
18#
19# You should have received a copy of the GNU Affero General Public License
20# along with this program. If not, see <http://www.gnu.org/licenses/>.
21#
22##############################################################################
23
24import time
25from report import report_sxw
26from account.report.common_report_header import common_report_header
27from tools.translate import _
28
29class print_prima_nota_cassa(report_sxw.rml_parse, common_report_header):
30 _name = 'report.account.prima_nota_cassa'
31
32 def set_context(self, objects, data, ids, report_type=None):
33 new_ids = ids
34 obj_move = self.pool.get('account.move.line')
35 self.sortby = data['form'].get('sortby', 'sort_date')
36 self.query = obj_move._query_get(self.cr, self.uid, obj='l', context=data['form'].get('used_context',{}))
37 ctx2 = data['form'].get('used_context',{}).copy()
38 print _('Debit')
39 self.init_balance = data['form']['initial_balance']
40 self.display_account = data['form']['display_account']
41 self.target_move = data['form'].get('target_move', 'all')
42 self.journal_ids = data['form'].get('journal_ids', [])
43 ctx = self.context.copy()
44 ctx['fiscalyear'] = data['form']['fiscalyear_id']
45 if data['form']['filter'] == 'filter_period':
46 ctx['periods'] = data['form']['periods']
47 elif data['form']['filter'] == 'filter_date':
48 ctx['date_from'] = data['form']['date_from']
49 ctx['date_to'] = data['form']['date_to']
50 ctx['state'] = data['form']['target_move']
51 self.context.update(ctx)
52 if (data['model'] == 'ir.ui.menu'):
53 new_ids = [data['form']['chart_account_id']]
54 objects = self.pool.get('account.account').browse(self.cr, self.uid, new_ids)
55 return super(print_prima_nota_cassa, self).set_context(objects, data, new_ids, report_type=report_type)
56
57 def __init__(self, cr, uid, name, context=None):
58 if context is None:
59 context = {}
60 super(print_prima_nota_cassa, self).__init__(cr, uid, name, context=context)
61 self.query = ""
62 self.tot_currency = 0.0
63 self.period_sql = ""
64 self.sold_accounts = {}
65 self.sortby = 'sort_date'
66 self.localcontext.update( {
67 'time': time,
68 'lines': self.lines,
69 'sum_debit_account': self._sum_debit_account,
70 'sum_credit_account': self._sum_credit_account,
71 'sum_balance_account': self._sum_balance_account,
72 'sum_currency_amount_account': self._sum_currency_amount_account,
73# 'get_children_accounts': self.get_children_accounts,
74 'get_fiscalyear': self._get_fiscalyear,
75 'get_journal': self._get_journal,
76 'get_account': self._get_account,
77 'get_start_period': self.get_start_period,
78 'get_end_period': self.get_end_period,
79 'get_filter': self._get_filter,
80 'get_sortby': self._get_sortby,
81 'get_start_date':self._get_start_date,
82 'get_end_date':self._get_end_date,
83 'get_target_move': self._get_target_move,
84 'ipdb': self.ipdb
85 })
86 self.context = context
87
88 def ipdb(self, data):
89 import ipdb;ipdb.set_trace()
90 return 'LEP WAS HERE'
91
92 def _sum_currency_amount_account(self, account):
93 self.cr.execute('SELECT sum(l.amount_currency) AS tot_currency \
94 FROM account_move_line l \
95 WHERE l.account_id = %s AND %s' %(account.id, self.query))
96 sum_currency = self.cr.fetchone()[0] or 0.0
97 if self.init_balance:
98 self.cr.execute('SELECT sum(l.amount_currency) AS tot_currency \
99 FROM account_move_line l \
100 WHERE l.account_id = %s AND %s '%(account.id, self.init_query))
101 sum_currency += self.cr.fetchone()[0] or 0.0
102 return sum_currency
103
104 def get_children_accounts(self, account):
105 """ Return all the accounts that are children of the chosen main one
106 and are set as default for the selected cash and bank accounts"""
107
108 currency_obj = self.pool.get('res.currency')
109 journal_obj = self.pool.get('account.journal')
110
111 cash_bank_journals = journal_obj.search(self.cr, self.uid, [ ('type','in',('bank','cash')) ] )
112
113 cash_bank_accounts = [journal_obj.browse(self.cr, self.uid, j).default_credit_account_id.id for j in cash_bank_journals] + \
114 [journal_obj.browse(self.cr, self.uid, j).default_debit_account_id.id for j in cash_bank_journals]
115
116 ids_acc = [acc for acc in self.pool.get('account.account')._get_children_and_consol(self.cr, self.uid, account.id) \
117 if acc in cash_bank_accounts]
118
119 currency = account.currency_id and account.currency_id or account.company_id.currency_id
120
121 return ids_acc
122
123 def lines(self, main_account):
124 """ Return all the account_move_line of account with their account code counterparts """
125 #import ipdb;ipdb.set_trace()
126 account_ids = self.get_children_accounts(main_account)
127
128 move_state = ['draft','posted']
129 if self.target_move == 'posted':
130 move_state = ['posted', '']
131
132 # Then select all account_move_line of this account
133 if self.sortby == 'sort_journal_partner':
134 sql_sort='j.code, p.name, l.move_id'
135 else:
136 sql_sort='l.date, l.move_id'
137 sql = """
138 SELECT
139 l.id AS lid,
140 l.date AS ldate,
141 j.code AS lcode,
142 j.name AS jname,
143 l.currency_id,
144 l.amount_currency,
145 l.ref AS lref,
146 l.name AS lname,
147 COALESCE(l.debit,0) AS debit,
148 COALESCE(l.credit,0) AS credit,
149 l.period_id AS lperiod_id,
150 l.partner_id AS lpartner_id,
151 m.name AS move_name,
152 m.id AS mmove_id,
153 per.code as period_code,
154 c.symbol AS currency_code,
155 i.id AS invoice_id,
156 i.type AS invoice_type,
157 i.number AS invoice_number,
158 p.name AS partner_name
159 FROM account_move_line l
160 JOIN account_move m on (l.move_id=m.id)
161 LEFT JOIN res_currency c on (l.currency_id=c.id)
162 LEFT JOIN res_partner p on (l.partner_id=p.id)
163 LEFT JOIN account_invoice i on (m.id =i.move_id)
164 LEFT JOIN account_period per on (per.id=l.period_id)
165 JOIN account_journal j on (l.journal_id=j.id)
166 WHERE %s
167 AND m.state IN %s
168 AND l.account_id in %%s
169 ORDER by %s
170 """ %(self.query, tuple(move_state), sql_sort)
171 self.cr.execute(sql, (tuple(account_ids),))
172 res = self.cr.dictfetchall()
173 for l in res:
174 l['move'] = l['move_name'] != '/' and l['move_name'] or ('*'+str(l['mmove_id']))
175 l['partner'] = l['partner_name'] or ''
176 # Modification of amount Currency
177 if l['credit'] > 0:
178 if l['amount_currency'] != None:
179 l['amount_currency'] = abs(l['amount_currency']) * -1
180 if l['amount_currency'] != None:
181 self.tot_currency = self.tot_currency + l['amount_currency']
182 return res
183
184 def _sum_total_debit(self, account):
185 move_state = ['draft','posted']
186
187 account_ids = self.get_children_accounts(main_account)
188
189 if self.target_move == 'posted':
190 move_state = ['posted','']
191 self.cr.execute('SELECT sum(debit) \
192 FROM account_move_line l \
193 JOIN account_move am ON (am.id = l.move_id) \
194 WHERE (l.account_id = %s) \
195 AND (am.state IN %s) \
196 AND '+ self.query +' '
197 ,(account.id, tuple(move_state)))
198 sum_debit = self.cr.fetchone()[0] or 0.0
199 if self.init_balance:
200 self.cr.execute('SELECT sum(debit) \
201 FROM account_move_line l \
202 JOIN account_move am ON (am.id = l.move_id) \
203 WHERE (l.account_id = %s) \
204 AND (am.state IN %s) \
205 AND '+ self.init_query +' '
206 ,(account.id, tuple(move_state)))
207 # Add initial balance to the result
208 sum_debit += self.cr.fetchone()[0] or 0.0
209 return sum_debit
210
211 def _sum_debit_account(self, account):
212 if account.type == 'view':
213 return account.debit
214 move_state = ['draft','posted']
215 if self.target_move == 'posted':
216 move_state = ['posted','']
217 self.cr.execute('SELECT sum(debit) \
218 FROM account_move_line l \
219 JOIN account_move am ON (am.id = l.move_id) \
220 WHERE (l.account_id = %s) \
221 AND (am.state IN %s) \
222 AND '+ self.query +' '
223 ,(account.id, tuple(move_state)))
224 sum_debit = self.cr.fetchone()[0] or 0.0
225 if self.init_balance:
226 self.cr.execute('SELECT sum(debit) \
227 FROM account_move_line l \
228 JOIN account_move am ON (am.id = l.move_id) \
229 WHERE (l.account_id = %s) \
230 AND (am.state IN %s) \
231 AND '+ self.init_query +' '
232 ,(account.id, tuple(move_state)))
233 # Add initial balance to the result
234 sum_debit += self.cr.fetchone()[0] or 0.0
235 return sum_debit
236
237 def _sum_credit_account(self, account):
238 if account.type == 'view':
239 return account.credit
240 move_state = ['draft','posted']
241 if self.target_move == 'posted':
242 move_state = ['posted','']
243 self.cr.execute('SELECT sum(credit) \
244 FROM account_move_line l \
245 JOIN account_move am ON (am.id = l.move_id) \
246 WHERE (l.account_id = %s) \
247 AND (am.state IN %s) \
248 AND '+ self.query +' '
249 ,(account.id, tuple(move_state)))
250 sum_credit = self.cr.fetchone()[0] or 0.0
251 if self.init_balance:
252 self.cr.execute('SELECT sum(credit) \
253 FROM account_move_line l \
254 JOIN account_move am ON (am.id = l.move_id) \
255 WHERE (l.account_id = %s) \
256 AND (am.state IN %s) \
257 AND '+ self.init_query +' '
258 ,(account.id, tuple(move_state)))
259 # Add initial balance to the result
260 sum_credit += self.cr.fetchone()[0] or 0.0
261 return sum_credit
262
263 def _sum_balance_account(self, account):
264 if account.type == 'view':
265 return account.balance
266 move_state = ['draft','posted']
267 if self.target_move == 'posted':
268 move_state = ['posted','']
269 self.cr.execute('SELECT (sum(debit) - sum(credit)) as tot_balance \
270 FROM account_move_line l \
271 JOIN account_move am ON (am.id = l.move_id) \
272 WHERE (l.account_id = %s) \
273 AND (am.state IN %s) \
274 AND '+ self.query +' '
275 ,(account.id, tuple(move_state)))
276 sum_balance = self.cr.fetchone()[0] or 0.0
277 if self.init_balance:
278 self.cr.execute('SELECT (sum(debit) - sum(credit)) as tot_balance \
279 FROM account_move_line l \
280 JOIN account_move am ON (am.id = l.move_id) \
281 WHERE (l.account_id = %s) \
282 AND (am.state IN %s) \
283 AND '+ self.init_query +' '
284 ,(account.id, tuple(move_state)))
285 # Add initial balance to the result
286 sum_balance += self.cr.fetchone()[0] or 0.0
287 return sum_balance
288
289 def _get_account(self, data):
290 if data['model'] == 'account.account':
291 return self.pool.get('account.account').browse(self.cr, self.uid, data['form']['id']).company_id.name
292 return super(print_prima_nota_cassa ,self)._get_account(data)
293
294 def _get_sortby(self, data):
295 if self.sortby == 'sort_date':
296 return 'Date'
297 elif self.sortby == 'sort_journal_partner':
298 return 'Journal & Partner'
299 return 'Date'
300
301report_sxw.report_sxw('report.account.print.prima_nota_cassa',
302 'account.account',
303 'addons/l10n_it_prima_nota_cassa/report/prima_nota_cassa.mako',
304 parser=print_prima_nota_cassa)
305
306
307# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
0308
=== added file 'l10n_it_prima_nota_cassa/reports.xml'
--- l10n_it_prima_nota_cassa/reports.xml 1970-01-01 00:00:00 +0000
+++ l10n_it_prima_nota_cassa/reports.xml 2012-06-27 10:42:57 +0000
@@ -0,0 +1,16 @@
1<?xml version="1.0"?>
2<openerp>
3 <data>
4
5 <report
6 auto="False"
7 id="prima_nota_cassa"
8 model="account.account"
9 name="account.print.prima_nota_cassa"
10 file="l10n_it_prima_nota_cassa/report/prima_nota_cassa.mako"
11 string="Prima Nota Cassa"
12 report_type="webkit" />
13
14 </data>
15</openerp>
16
017
=== added directory 'l10n_it_prima_nota_cassa/wizard'
=== added file 'l10n_it_prima_nota_cassa/wizard/__init__.py'
--- l10n_it_prima_nota_cassa/wizard/__init__.py 1970-01-01 00:00:00 +0000
+++ l10n_it_prima_nota_cassa/wizard/__init__.py 2012-06-27 10:42:57 +0000
@@ -0,0 +1,22 @@
1# -*- coding: utf-8 -*-
2##############################################################################
3#
4# Copyright (C) 2011-2012 Associazione OpenERP Italia
5# (<http://www.openerp-italia.org>).
6# All Rights Reserved
7#
8# This program is free software: you can redistribute it and/or modify
9# it under the terms of the GNU Affero General Public License as published by
10# the Free Software Foundation, either version 3 of the License, or
11# (at your option) any later version.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU General Public License for more details.
17#
18# You should have received a copy of the GNU Affero General Public License
19# along with this program. If not, see <http://www.gnu.org/licenses/>.
20#
21##############################################################################
22import wizard_print_prima_nota_cassa
023
=== added file 'l10n_it_prima_nota_cassa/wizard/wizard_print_prima_nota_cassa.py'
--- l10n_it_prima_nota_cassa/wizard/wizard_print_prima_nota_cassa.py 1970-01-01 00:00:00 +0000
+++ l10n_it_prima_nota_cassa/wizard/wizard_print_prima_nota_cassa.py 2012-06-27 10:42:57 +0000
@@ -0,0 +1,54 @@
1# -*- coding: utf-8 -*-
2##############################################################################
3#
4# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
5# Copyright (C) 2011-2012 Associazione OpenERP Italia
6# (<http://www.openerp-italia.org>).
7# All Rights Reserved
8#
9# This program is free software: you can redistribute it and/or modify
10# it under the terms of the GNU Affero General Public License as published by
11# the Free Software Foundation, either version 3 of the License, or
12# (at your option) any later version.
13#
14# This program is distributed in the hope that it will be useful,
15# but WITHOUT ANY WARRANTY; without even the implied warranty of
16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17# GNU General Public License for more details.
18#
19# You should have received a copy of the GNU Affero General Public License
20# along with this program. If not, see <http://www.gnu.org/licenses/>.
21#
22##############################################################################
23
24from osv import fields, osv
25
26class account_report_prima_nota_cassa(osv.osv_memory):
27 _inherit = "account.common.account.report"
28 _name = 'account.report.prima_nota_cassa'
29 _description = "Print Prima Nota Cassa"
30
31
32 def _get_all_journal(self, cr, uid, context=None):
33 return self.pool.get('account.journal').search(cr, uid , [('type','in',['cash','bank'])] )
34
35 def _print_report(self, cr, uid, ids, data, context=None):
36 if context is None:
37 context = {}
38 data = self.pre_print_report(cr, uid, ids, data, context=context)
39 data['form'].update(self.read(cr, uid, ids, ['landscape', 'initial_balance', 'amount_currency', 'sortby'])[0])
40 if not data['form']['fiscalyear_id']:# GTK client problem onchange does not consider in save record
41 data['form'].update({'initial_balance': False})
42 return { 'type': 'ir.actions.report.xml', 'report_name': 'account.print.prima_nota_cassa', 'datas': data}
43
44 _columns = {
45
46 }
47 _defaults = {
48 'journal_ids': _get_all_journal,
49 }
50
51
52account_report_prima_nota_cassa()
53
54# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
055
=== added file 'l10n_it_prima_nota_cassa/wizard/wizard_print_prima_nota_cassa.xml'
--- l10n_it_prima_nota_cassa/wizard/wizard_print_prima_nota_cassa.xml 1970-01-01 00:00:00 +0000
+++ l10n_it_prima_nota_cassa/wizard/wizard_print_prima_nota_cassa.xml 2012-06-27 10:42:57 +0000
@@ -0,0 +1,43 @@
1<?xml version="1.0" encoding="utf-8"?>
2<openerp>
3 <data>
4
5 <record id="account_report_prima_nota_cassa" model="ir.ui.view">
6 <field name="name">Print Prima Nota Cassa</field>
7 <field name="model">account.report.prima_nota_cassa</field>
8 <field name="type">form</field>
9 <field name="inherit_id" ref="account.account_common_report_view" />
10 <field name="arch" type="xml">
11 <data>
12 <xpath expr="/form/label[@string='']" position="replace">
13 <separator string="Prima Nota Cassa" colspan="4"/>
14 <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."/>
15 </xpath>
16
17 <field name="journal_ids" position="replace">
18 <field name="journal_ids" domain="[('type','in',['cash'])]" />
19 </field>
20 </data>
21 </field>
22 </record>
23
24 <record id="action_account_prima_nota_cassa" model="ir.actions.act_window">
25 <field name="name">Prima Nota Cassa</field>
26 <field name="type">ir.actions.act_window</field>
27 <field name="res_model">account.report.prima_nota_cassa</field>
28 <field name="view_type">form</field>
29 <field name="view_mode">form</field>
30 <field name="view_id" ref="account_report_prima_nota_cassa"/>
31 <field name="target">new</field>
32 </record>
33
34 <menuitem
35 icon="STOCK_PRINT"
36 name="Prima Nota Cassa"
37 parent="account.menu_journals_report"
38 action="action_account_prima_nota_cassa"
39 groups="account.group_account_manager,account.group_account_user"
40 id="menu_print_prima_nota_cassa"
41 />
42</data>
43</openerp>

Subscribers

People subscribed via source and target branches