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