Merge lp:~domsense/domsense-agilebg-addons/adding_account_vat_period_end_statement into lp:domsense-agilebg-addons/6.0
- adding_account_vat_period_end_statement
- Merge into 6.0
Proposed by
Lorenzo Battistini
Status: | Merged |
---|---|
Merged at revision: | 49 |
Proposed branch: | lp:~domsense/domsense-agilebg-addons/adding_account_vat_period_end_statement |
Merge into: | lp:domsense-agilebg-addons/6.0 |
Diff against target: |
1730 lines (+1662/-0) 13 files modified
account_vat_period_end_statement/AUTHORS.txt (+3/-0) account_vat_period_end_statement/__init__.py (+22/-0) account_vat_period_end_statement/__openerp__.py (+46/-0) account_vat_period_end_statement/account.py (+481/-0) account_vat_period_end_statement/account_view.xml (+120/-0) account_vat_period_end_statement/i18n/account_vat_period_end_statement.pot (+379/-0) account_vat_period_end_statement/i18n/it.po (+386/-0) account_vat_period_end_statement/report/__init__.py (+21/-0) account_vat_period_end_statement/report/vat_period_end_statement.mako (+78/-0) account_vat_period_end_statement/report/vat_period_end_statement.py (+43/-0) account_vat_period_end_statement/reports.xml (+16/-0) account_vat_period_end_statement/security/ir.model.access.csv (+9/-0) account_vat_period_end_statement/statement_workflow.xml (+58/-0) |
To merge this branch: | bzr merge lp:~domsense/domsense-agilebg-addons/adding_account_vat_period_end_statement |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Agile Business Group | Pending | ||
Review via email: mp+78211@code.launchpad.net |
Commit message
Description of the change
To post a comment you must log in.
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === added directory 'account_vat_period_end_statement' |
2 | === added file 'account_vat_period_end_statement/AUTHORS.txt' |
3 | --- account_vat_period_end_statement/AUTHORS.txt 1970-01-01 00:00:00 +0000 |
4 | +++ account_vat_period_end_statement/AUTHORS.txt 2011-10-05 08:15:22 +0000 |
5 | @@ -0,0 +1,3 @@ |
6 | +Lorenzo Battistini <lorenzo.battistini@domsense.com> |
7 | +Marco Marchiori <marcomarkiori@gmail.com> |
8 | +Sergio Corato <sergiocorato@gmail.com> |
9 | |
10 | === added file 'account_vat_period_end_statement/__init__.py' |
11 | --- account_vat_period_end_statement/__init__.py 1970-01-01 00:00:00 +0000 |
12 | +++ account_vat_period_end_statement/__init__.py 2011-10-05 08:15:22 +0000 |
13 | @@ -0,0 +1,22 @@ |
14 | +# -*- coding: utf-8 -*- |
15 | +############################################################################## |
16 | +# |
17 | +# OpenERP, Open Source Management Solution |
18 | +# Copyright (C) 2011 Domsense s.r.l. (<http://www.domsense.com>). |
19 | +# |
20 | +# This program is free software: you can redistribute it and/or modify |
21 | +# it under the terms of the GNU Affero General Public License as |
22 | +# published by the Free Software Foundation, either version 3 of the |
23 | +# License, or (at your option) any later version. |
24 | +# |
25 | +# This program is distributed in the hope that it will be useful, |
26 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of |
27 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
28 | +# GNU Affero General Public License for more details. |
29 | +# |
30 | +# You should have received a copy of the GNU Affero General Public License |
31 | +# along with this program. If not, see <http://www.gnu.org/licenses/>. |
32 | +# |
33 | +############################################################################## |
34 | +import account |
35 | +import report |
36 | |
37 | === added file 'account_vat_period_end_statement/__openerp__.py' |
38 | --- account_vat_period_end_statement/__openerp__.py 1970-01-01 00:00:00 +0000 |
39 | +++ account_vat_period_end_statement/__openerp__.py 2011-10-05 08:15:22 +0000 |
40 | @@ -0,0 +1,46 @@ |
41 | +# -*- coding: utf-8 -*- |
42 | +############################################################################## |
43 | +# |
44 | +# OpenERP, Open Source Management Solution |
45 | +# Copyright (C) 2011 Domsense s.r.l. (<http://www.domsense.com>). |
46 | +# |
47 | +# This program is free software: you can redistribute it and/or modify |
48 | +# it under the terms of the GNU Affero General Public License as |
49 | +# published by the Free Software Foundation, either version 3 of the |
50 | +# License, or (at your option) any later version. |
51 | +# |
52 | +# This program is distributed in the hope that it will be useful, |
53 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of |
54 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
55 | +# GNU Affero General Public License for more details. |
56 | +# |
57 | +# You should have received a copy of the GNU Affero General Public License |
58 | +# along with this program. If not, see <http://www.gnu.org/licenses/>. |
59 | +# |
60 | +############################################################################## |
61 | + |
62 | + |
63 | +{ |
64 | + "name": "Period End VAT Statement", |
65 | + "version": "0.2", |
66 | + 'category': 'Generic Modules/Accounting', |
67 | + "depends": ["account_voucher", "report_webkit"], |
68 | + "author": "Agile Business Group & Domsense", |
69 | + "description": """This module helps to register the VAT statement of period end. The 'VAT statement' object allows to specify every amount and relative account used by the statement. |
70 | +By default, the amounts of debit and credit taxes are automatically loaded from the tax codes of the selected period. Previous debit or credit is loaded from previous VAT statement. |
71 | +In order to load the correct amount from tax code, the tax code has to be associated to the account involved in the statement, through the tax code form. |
72 | +Confirming the statement, the account.move is created along with a draft payment voucher. |
73 | + |
74 | +Specification: http://wiki.openerp-italia.org/doku.php/moduli/vat_period_end_statement""", |
75 | + 'website': 'http://www.agilebg.com', |
76 | + 'init_xml': [], |
77 | + 'update_xml': [ |
78 | + 'account_view.xml', |
79 | + 'statement_workflow.xml', |
80 | + 'security/ir.model.access.csv', |
81 | + 'reports.xml', |
82 | + ], |
83 | + 'demo_xml': [], |
84 | + 'installable': True, |
85 | + 'active': False, |
86 | +} |
87 | |
88 | === added file 'account_vat_period_end_statement/account.py' |
89 | --- account_vat_period_end_statement/account.py 1970-01-01 00:00:00 +0000 |
90 | +++ account_vat_period_end_statement/account.py 2011-10-05 08:15:22 +0000 |
91 | @@ -0,0 +1,481 @@ |
92 | +# -*- coding: utf-8 -*- |
93 | +############################################################################## |
94 | +# |
95 | +# OpenERP, Open Source Management Solution |
96 | +# Copyright (C) 2011 Domsense s.r.l. (<http://www.domsense.com>). |
97 | +# |
98 | +# This program is free software: you can redistribute it and/or modify |
99 | +# it under the terms of the GNU Affero General Public License as |
100 | +# published by the Free Software Foundation, either version 3 of the |
101 | +# License, or (at your option) any later version. |
102 | +# |
103 | +# This program is distributed in the hope that it will be useful, |
104 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of |
105 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
106 | +# GNU Affero General Public License for more details. |
107 | +# |
108 | +# You should have received a copy of the GNU Affero General Public License |
109 | +# along with this program. If not, see <http://www.gnu.org/licenses/>. |
110 | +# |
111 | +############################################################################## |
112 | + |
113 | +from osv import fields, osv |
114 | +from tools.translate import _ |
115 | +import math |
116 | +import decimal_precision as dp |
117 | +import netsvc |
118 | +from datetime import datetime |
119 | +from dateutil.relativedelta import relativedelta |
120 | + |
121 | +class account_vat_period_end_statement(osv.osv): |
122 | + |
123 | + def _compute_authority_vat_amount(self, cr, uid, ids, field_name, arg, context): |
124 | + res={} |
125 | + for i in ids: |
126 | + statement = self.browse(cr, uid, i) |
127 | + debit_vat_amount = 0.0 |
128 | + credit_vat_amount = 0.0 |
129 | + generic_vat_amount = 0.0 |
130 | + for debit_line in statement.debit_vat_account_line_ids: |
131 | + debit_vat_amount += debit_line.amount |
132 | + for credit_line in statement.credit_vat_account_line_ids: |
133 | + credit_vat_amount += credit_line.amount |
134 | + for generic_line in statement.generic_vat_account_line_ids: |
135 | + generic_vat_amount += generic_line.amount |
136 | + authority_amount = (debit_vat_amount - credit_vat_amount - generic_vat_amount |
137 | + - statement.previous_credit_vat_amount + statement.previous_debit_vat_amount) |
138 | + res[i] = authority_amount |
139 | + return res |
140 | + |
141 | + def _compute_payable_vat_amount(self, cr, uid, ids, field_name, arg, context): |
142 | + res={} |
143 | + for i in ids: |
144 | + statement = self.browse(cr, uid, i) |
145 | + debit_vat_amount = 0.0 |
146 | + for debit_line in statement.debit_vat_account_line_ids: |
147 | + debit_vat_amount += debit_line.amount |
148 | + res[i] = debit_vat_amount |
149 | + return res |
150 | + |
151 | + def _compute_deductible_vat_amount(self, cr, uid, ids, field_name, arg, context): |
152 | + res={} |
153 | + for i in ids: |
154 | + statement = self.browse(cr, uid, i) |
155 | + credit_vat_amount = 0.0 |
156 | + for credit_line in statement.credit_vat_account_line_ids: |
157 | + credit_vat_amount += credit_line.amount |
158 | + res[i] = credit_vat_amount |
159 | + return res |
160 | + |
161 | + _name = "account.vat.period.end.statement" |
162 | + _rec_name = 'period_id' |
163 | + _columns = { |
164 | + 'debit_vat_account_line_ids': fields.one2many('statement.debit.account.line', 'statement_id', 'Debit VAT', help='The accounts containing the debit VAT amount to write-off', required=True, states={'confirmed': [('readonly', True)], 'paid': [('readonly', True)]}), |
165 | + |
166 | + 'credit_vat_account_line_ids': fields.one2many('statement.credit.account.line', 'statement_id', 'Credit VAT', help='The accounts containing the credit VAT amount to write-off', required=True, states={'confirmed': [('readonly', True)], 'paid': [('readonly', True)]}), |
167 | + |
168 | + 'previous_credit_vat_account_id': fields.many2one('account.account', 'Previous Credits VAT', help='Credit VAT from previous periods', states={'confirmed': [('readonly', True)], 'paid': [('readonly', True)]}), |
169 | + 'previous_credit_vat_amount': fields.float('Previous Credits VAT Amount', states={'confirmed': [('readonly', True)], 'paid': [('readonly', True)]}), |
170 | + |
171 | + 'previous_debit_vat_account_id': fields.many2one('account.account', 'Previous Debits VAT', help='Debit VAT from previous periods', states={'confirmed': [('readonly', True)], 'paid': [('readonly', True)]}), |
172 | + 'previous_debit_vat_amount': fields.float('Previous Debits VAT Amount', states={'confirmed': [('readonly', True)], 'paid': [('readonly', True)]}), |
173 | + |
174 | + 'generic_vat_account_line_ids': fields.one2many('statement.generic.account.line', 'statement_id', 'Other VAT Credits / Debits or Tax Compensations', states={'confirmed': [('readonly', True)], 'paid': [('readonly', True)]}), |
175 | + |
176 | + 'authority_partner_id': fields.many2one('res.partner', 'Tax Authority Partner', required=True, states={'confirmed': [('readonly', True)], 'paid': [('readonly', True)]}), |
177 | + 'authority_vat_account_id': fields.many2one('account.account', 'Tax Authority VAT Account', required=True, states={'confirmed': [('readonly', True)], 'paid': [('readonly', True)]}), |
178 | + 'authority_vat_amount': fields.function(_compute_authority_vat_amount, method=True, string='Authority VAT Amount'), |
179 | + 'payable_vat_amount': fields.function(_compute_payable_vat_amount, method=True, string='Payable VAT Amount'), |
180 | + 'deductible_vat_amount': fields.function(_compute_deductible_vat_amount, method=True, string='Deductible VAT Amount'), |
181 | + |
182 | + 'journal_id': fields.many2one('account.journal', 'Journal', required=True, states={'confirmed': [('readonly', True)], 'paid': [('readonly', True)]}), |
183 | + 'period_id': fields.many2one('account.period', 'Period', required=True, states={'confirmed': [('readonly', True)], 'paid': [('readonly', True)]}), |
184 | + 'move_id': fields.many2one('account.move', 'VAT statement move', readonly=True), |
185 | + 'voucher_id': fields.many2one('account.voucher', 'VAT payment', readonly=True), |
186 | + |
187 | + 'state': fields.selection([ |
188 | + ('draft', 'Draft'), |
189 | + ('confirmed', 'Confirmed'), |
190 | + ('paid', 'Paid'), |
191 | + ], 'State', readonly=True), |
192 | + } |
193 | + |
194 | + _defaults = { |
195 | + 'period_id': lambda self, cr, uid, c: self.pool.get('account.period').find(cr, uid, context=c)[0], |
196 | + } |
197 | + |
198 | + def _get_tax_code_amount(self, cr, uid, tax_code_id, period_id, context): |
199 | + if not context: |
200 | + context={} |
201 | + context['period_id'] = period_id |
202 | + return self.pool.get('account.tax.code').browse(cr, uid, tax_code_id, context)._sum_period( |
203 | + None, None, context)[tax_code_id] |
204 | + |
205 | + def unlink(self, cr, uid, ids, context=None): |
206 | + if isinstance(ids, (long,int)): |
207 | + ids = [ids] |
208 | + for statement in self.browse(cr, uid, ids, context): |
209 | + if statement.state == 'confirmed' or statement.state == 'paid': |
210 | + raise osv.except_osv(_('Error!'), _('You cannot delete a confirmed or paid statement')) |
211 | + res = super(account_vat_period_end_statement, self).unlink(cr, uid, ids, context) |
212 | + return res |
213 | + |
214 | + def statement_draft(self, cr, uid, ids, context=None): |
215 | + for statement in self.browse(cr, uid, ids, context): |
216 | + if statement.move_id: |
217 | + statement.move_id.unlink() |
218 | + if statement.voucher_id: |
219 | + statement.voucher_id.unlink() |
220 | + self.write(cr, uid, ids , {'state': 'draft'}) |
221 | + |
222 | + def statement_paid(self, cr, uid, ids, context=None): |
223 | + self.write(cr, uid, ids , {'state': 'paid'}) |
224 | + |
225 | + def create_move(self, cr, uid, ids, context=None): |
226 | + move_obj = self.pool.get('account.move') |
227 | + voucher_obj = self.pool.get('account.voucher') |
228 | + line_obj = self.pool.get('account.move.line') |
229 | + for statement in self.browse(cr, uid, ids, context): |
230 | + |
231 | + statement_ids = self.search(cr, uid, [('period_id', '=', statement.period_id.id)]) |
232 | + if len(statement_ids) > 1: |
233 | + raise osv.except_osv(_('Error!'), _('The current period has VAT statement yet')) |
234 | + |
235 | + # move |
236 | + |
237 | + move_data = { |
238 | + 'name': _('VAT statement') + ' - ' + statement.period_id.name, |
239 | + 'period_id': statement.period_id.id, |
240 | + 'date': statement.period_id.date_stop, |
241 | + 'journal_id': statement.journal_id.id, |
242 | + } |
243 | + move_id = move_obj.create(cr, uid, move_data) |
244 | + statement.write({'move_id': move_id}) |
245 | + |
246 | + for debit_line in statement.debit_vat_account_line_ids: |
247 | + debit_vat_data = { |
248 | + 'name': _('Debit VAT'), |
249 | + 'account_id': debit_line.account_id.id, |
250 | + 'move_id': move_id, |
251 | + 'period_id': statement.period_id.id, |
252 | + 'journal_id': statement.journal_id.id, |
253 | + 'debit': 0.0, |
254 | + 'credit': 0.0, |
255 | + 'date': statement.period_id.date_stop, |
256 | + } |
257 | + if debit_line.amount > 0: |
258 | + debit_vat_data['debit'] = math.fabs(debit_line.amount) |
259 | + else: |
260 | + debit_vat_data['credit'] = math.fabs(debit_line.amount) |
261 | + line_obj.create(cr, uid, debit_vat_data) |
262 | + |
263 | + for credit_line in statement.credit_vat_account_line_ids: |
264 | + credit_vat_data = { |
265 | + 'name': _('Credit VAT'), |
266 | + 'account_id': credit_line.account_id.id, |
267 | + 'move_id': move_id, |
268 | + 'period_id': statement.period_id.id, |
269 | + 'journal_id': statement.journal_id.id, |
270 | + 'debit': 0.0, |
271 | + 'credit': 0.0, |
272 | + 'date': statement.period_id.date_stop, |
273 | + } |
274 | + if credit_line.amount < 0: |
275 | + credit_vat_data['debit'] = math.fabs(credit_line.amount) |
276 | + else: |
277 | + credit_vat_data['credit'] = math.fabs(credit_line.amount) |
278 | + line_obj.create(cr, uid, credit_vat_data) |
279 | + |
280 | + if statement.previous_credit_vat_amount: |
281 | + previous_credit_vat_data = { |
282 | + 'name': _('Previous Credits VAT'), |
283 | + 'account_id': statement.previous_credit_vat_account_id.id, |
284 | + 'move_id': move_id, |
285 | + 'period_id': statement.period_id.id, |
286 | + 'journal_id': statement.journal_id.id, |
287 | + 'debit': 0.0, |
288 | + 'credit': 0.0, |
289 | + 'date': statement.period_id.date_stop, |
290 | + } |
291 | + if statement.previous_credit_vat_amount < 0: |
292 | + previous_credit_vat_data['debit'] = math.fabs(statement.previous_credit_vat_amount) |
293 | + else: |
294 | + previous_credit_vat_data['credit'] = math.fabs(statement.previous_credit_vat_amount) |
295 | + line_obj.create(cr, uid, previous_credit_vat_data) |
296 | + |
297 | + if statement.previous_debit_vat_amount: |
298 | + previous_debit_vat_data = { |
299 | + 'name': _('Previous Debits VAT'), |
300 | + 'account_id': statement.previous_debit_vat_account_id.id, |
301 | + 'move_id': move_id, |
302 | + 'period_id': statement.period_id.id, |
303 | + 'journal_id': statement.journal_id.id, |
304 | + 'debit': 0.0, |
305 | + 'credit': 0.0, |
306 | + 'date': statement.period_id.date_stop, |
307 | + } |
308 | + if statement.previous_debit_vat_amount > 0: |
309 | + previous_debit_vat_data['debit'] = math.fabs(statement.previous_debit_vat_amount) |
310 | + else: |
311 | + previous_debit_vat_data['credit'] = math.fabs(statement.previous_debit_vat_amount) |
312 | + line_obj.create(cr, uid, previous_debit_vat_data) |
313 | + |
314 | + for generic_line in statement.generic_vat_account_line_ids: |
315 | + generic_vat_data = { |
316 | + 'name': _('Other VAT Credits / Debits'), |
317 | + 'account_id': generic_line.account_id.id, |
318 | + 'move_id': move_id, |
319 | + 'period_id': statement.period_id.id, |
320 | + 'journal_id': statement.journal_id.id, |
321 | + 'debit': 0.0, |
322 | + 'credit': 0.0, |
323 | + 'date': statement.period_id.date_stop, |
324 | + } |
325 | + if generic_line.amount < 0: |
326 | + generic_vat_data['debit'] = math.fabs(generic_line.amount) |
327 | + else: |
328 | + generic_vat_data['credit'] = math.fabs(generic_line.amount) |
329 | + line_obj.create(cr, uid, generic_vat_data) |
330 | + |
331 | + end_debit_vat_data = { |
332 | + 'name': _('Tax Authority VAT'), |
333 | + 'account_id': statement.authority_vat_account_id.id, |
334 | + 'partner_id': statement.authority_partner_id.id, |
335 | + 'move_id': move_id, |
336 | + 'period_id': statement.period_id.id, |
337 | + 'journal_id': statement.journal_id.id, |
338 | + 'date': statement.period_id.date_stop, |
339 | + } |
340 | + if statement.authority_vat_amount > 0: |
341 | + end_debit_vat_data['debit'] = 0.0 |
342 | + end_debit_vat_data['credit'] = math.fabs(statement.authority_vat_amount) |
343 | + elif statement.authority_vat_amount < 0: |
344 | + end_debit_vat_data['debit'] = math.fabs(statement.authority_vat_amount) |
345 | + end_debit_vat_data['credit'] = 0.0 |
346 | + line_obj.create(cr, uid, end_debit_vat_data) |
347 | + |
348 | + move_obj.button_validate(cr, uid, [move_id], context) |
349 | + |
350 | + # voucher |
351 | + |
352 | + if statement.authority_vat_amount > 0: |
353 | + voucher_data = { |
354 | + 'partner_id': statement.authority_partner_id.id, |
355 | + 'amount': statement.authority_vat_amount, |
356 | + 'journal_id': statement.journal_id.id, |
357 | + 'type': 'payment', |
358 | + } |
359 | + vals = voucher_obj.onchange_partner_id( |
360 | + cr, uid, ids, statement.authority_partner_id.id, statement.journal_id.id, statement.authority_vat_amount, |
361 | + None, 'payment', None, context) |
362 | + voucher_data.update(vals['value']) |
363 | + |
364 | + line_dr_ids = [] |
365 | + for line_dr in voucher_data['line_dr_ids']: |
366 | + line_dr_ids.append((0,0, line_dr)) |
367 | + voucher_data['line_dr_ids'] = line_dr_ids |
368 | + voucher_data['line_ids'] = [] |
369 | + voucher_data['line_cr_ids'] = [] |
370 | + |
371 | + voucher_id = voucher_obj.create(cr, uid, voucher_data, context) |
372 | + statement.write({'voucher_id': voucher_id}) |
373 | + |
374 | + self.write(cr, uid, statement.id , {'state': 'confirmed'}) |
375 | + |
376 | + return True |
377 | + |
378 | + def _create_statement_account_line(self, cr, uid, statement_ids, tax_code_type='debit', context=None): |
379 | + if not context: |
380 | + context={} |
381 | + tax_code_pool = self.pool.get('account.tax.code') |
382 | + line_obj = self.pool.get('statement.' + tax_code_type + '.account.line') |
383 | + for statement in self.browse(cr, uid, statement_ids): |
384 | + for line in eval('statement.' + tax_code_type + '_vat_account_line_ids'): |
385 | + line.unlink() |
386 | + context['period_id'] = statement.period_id.id |
387 | + tax_code_ids = tax_code_pool.search(cr, uid, [ |
388 | + ('vat_statement_account_id', '!=', False), |
389 | + ('vat_statement_type', '=', tax_code_type), |
390 | + ], context=context) |
391 | + for tax_code in tax_code_pool.browse(cr, uid, tax_code_ids, context=context): |
392 | + line_obj.create(cr, uid, { |
393 | + 'statement_id': statement.id, |
394 | + 'account_id': tax_code.vat_statement_account_id.id, |
395 | + 'amount': tax_code.sum_period, |
396 | + }) |
397 | + return True |
398 | + |
399 | + # TODO load by default. see voucher lines |
400 | + ''' |
401 | + 'line_dr_ids': [{'account_id': 96, |
402 | + 'amount': 20.0, |
403 | + 'amount_original': 20.0, |
404 | + 'amount_unreconciled': 20.0, |
405 | + 'date_due': False, |
406 | + 'date_original': '2011-09-30', |
407 | + 'move_line_id': 17, |
408 | + 'name': u'VAT statement - 09/2011', |
409 | + 'type': 'dr'}], |
410 | + ''' |
411 | + |
412 | + def load_debit_accounts(self, cr, uid, ids, context=None): |
413 | + if not context: |
414 | + context={} |
415 | + self._create_statement_account_line(cr, uid, ids, tax_code_type='debit', context=context) |
416 | + return True |
417 | + |
418 | + def load_credit_accounts(self, cr, uid, ids, context=None): |
419 | + if not context: |
420 | + context={} |
421 | + self._create_statement_account_line(cr, uid, ids, tax_code_type='credit', context=context) |
422 | + return True |
423 | + |
424 | + def open_chart_of_taxes(self, cr, uid, ids, context=None): |
425 | + result = {} |
426 | + if context is None: |
427 | + context = {} |
428 | + for statement in self.browse(cr, uid, ids, context): |
429 | + mod_obj = self.pool.get('ir.model.data') |
430 | + act_obj = self.pool.get('ir.actions.act_window') |
431 | + period_obj = self.pool.get('account.period') |
432 | + result = mod_obj.get_object_reference(cr, uid, 'account', 'action_tax_code_tree') |
433 | + id = result and result[1] or False |
434 | + result = act_obj.read(cr, uid, [id], context=context)[0] |
435 | + |
436 | + fiscalyear_id = statement.period_id.fiscalyear_id.id |
437 | + result['context'] = str({'period_id': statement.period_id.id, \ |
438 | + 'fiscalyear_id': fiscalyear_id, \ |
439 | + 'state': 'posted'}) |
440 | + |
441 | + period_code = statement.period_id.code |
442 | + result['name'] += period_code and (':' + period_code) or '' |
443 | + result['nodestroy'] = True |
444 | + return result |
445 | + |
446 | + def on_change_partner_id(self, cr, uid, ids, partner_id, context=None): |
447 | + partner = self.pool.get('res.partner').browse(cr, uid, partner_id, context) |
448 | + return {'value': {'authority_vat_account_id': partner.property_account_payable.id}} |
449 | + |
450 | + def on_change_period_id(self, cr, uid, ids, period_id, context=None): |
451 | + if not context: |
452 | + context={} |
453 | + res = {'value': {}} |
454 | + period_pool = self.pool.get('account.period') |
455 | + period = period_pool.browse(cr, uid, period_id, context) |
456 | + start_period = datetime.strptime(period.date_start, '%Y-%m-%d') |
457 | + prev_period_stop = start_period - relativedelta(days=1) |
458 | + prev_period_ids = period_pool.search(cr, uid, [('date_stop', '=', prev_period_stop)]) |
459 | + if prev_period_ids: |
460 | + prev_statement_ids = self.search(cr, uid, [('period_id', '=', prev_period_ids[0])]) |
461 | + if prev_statement_ids: |
462 | + prev_statement = self.browse(cr, uid, prev_statement_ids[0]) |
463 | + if prev_statement.state == 'confirmed': |
464 | + if prev_statement.authority_vat_amount > 0: |
465 | + res['value']['previous_debit_vat_amount'] = prev_statement.authority_vat_amount |
466 | + elif prev_statement.authority_vat_amount < 0: |
467 | + res['value']['previous_credit_vat_amount'] = math.fabs(prev_statement.authority_vat_amount) |
468 | + |
469 | + statement_ids = self.search(cr, uid, [('period_id', '=', period_id)]) |
470 | + if statement_ids: |
471 | + statement = self.browse(cr, uid, statement_ids[0]) |
472 | + for debit_line in statement.debit_vat_account_line_ids: |
473 | + debit_line.unlink() |
474 | + for credit_line in statement.credit_vat_account_line_ids: |
475 | + credit_line.unlink() |
476 | + |
477 | + context['period_id'] = period_id |
478 | + credit_line_ids = [] |
479 | + debit_line_ids = [] |
480 | + tax_code_pool = self.pool.get('account.tax.code') |
481 | + |
482 | + debit_tax_code_ids = tax_code_pool.search(cr, uid, [ |
483 | + ('vat_statement_account_id', '!=', False), |
484 | + ('vat_statement_type', '=', 'debit'), |
485 | + ], context=context) |
486 | + for debit_tax_code in tax_code_pool.browse(cr, uid, debit_tax_code_ids, context=context): |
487 | + debit_line_ids.append({ |
488 | + 'account_id': debit_tax_code.vat_statement_account_id.id, |
489 | + 'amount': debit_tax_code.sum_period, |
490 | + }) |
491 | + |
492 | + credit_tax_code_ids = tax_code_pool.search(cr, uid, [ |
493 | + ('vat_statement_account_id', '!=', False), |
494 | + ('vat_statement_type', '=', 'credit'), |
495 | + ], context=context) |
496 | + for credit_tax_code in tax_code_pool.browse(cr, uid, credit_tax_code_ids, context=context): |
497 | + credit_line_ids.append({ |
498 | + 'account_id': credit_tax_code.vat_statement_account_id.id, |
499 | + 'amount': credit_tax_code.sum_period, |
500 | + }) |
501 | + |
502 | + res['value']['debit_vat_account_line_ids'] = debit_line_ids |
503 | + res['value']['credit_vat_account_line_ids'] = credit_line_ids |
504 | + |
505 | + return res |
506 | + |
507 | +account_vat_period_end_statement() |
508 | + |
509 | +class statement_debit_account_line(osv.osv): |
510 | + _name='statement.debit.account.line' |
511 | + _columns = { |
512 | + 'account_id': fields.many2one('account.account', 'Account', required=True), |
513 | + 'statement_id': fields.many2one('account.vat.period.end.statement', 'VAT statement'), |
514 | + 'amount': fields.float('Amount', digits_compute= dp.get_precision('Account'), required=True), |
515 | + } |
516 | + |
517 | +statement_debit_account_line() |
518 | + |
519 | +class statement_credit_account_line(osv.osv): |
520 | + _name='statement.credit.account.line' |
521 | + _columns = { |
522 | + 'account_id': fields.many2one('account.account', 'Account', required=True), |
523 | + 'statement_id': fields.many2one('account.vat.period.end.statement', 'VAT statement'), |
524 | + 'amount': fields.float('Amount', digits_compute= dp.get_precision('Account'), required=True), |
525 | + } |
526 | + |
527 | +statement_credit_account_line() |
528 | + |
529 | +class statement_generic_account_line(osv.osv): |
530 | + _name='statement.generic.account.line' |
531 | + _columns = { |
532 | + 'account_id': fields.many2one('account.account', 'Account', required=True), |
533 | + 'statement_id': fields.many2one('account.vat.period.end.statement', 'VAT statement'), |
534 | + 'amount': fields.float('Amount', digits_compute= dp.get_precision('Account'), required=True), |
535 | + } |
536 | + |
537 | + def on_change_vat_account_id(self, cr, uid, ids, vat_account_id=False, context=None): |
538 | + res = {} |
539 | + res['value'] = {} |
540 | + if not vat_account_id: |
541 | + return res |
542 | + res['value']['amount'] = self.pool.get('account.account').browse(cr, uid, vat_account_id, |
543 | + context).balance |
544 | + return res |
545 | + |
546 | +statement_generic_account_line() |
547 | + |
548 | +class account_tax_code(osv.osv): |
549 | + _inherit = "account.tax.code" |
550 | + _columns = { |
551 | + 'vat_statement_account_id': fields.many2one('account.account', "Account used for VAT statement"), |
552 | + 'vat_statement_type': fields.selection([('credit','Credit'),('debit','Debit')], 'Type', help="This establish whether amount will be loaded as debit or credit"), |
553 | + } |
554 | + _defaults = { |
555 | + 'vat_statement_type': 'debit', |
556 | + } |
557 | +account_tax_code() |
558 | + |
559 | +class account_voucher(osv.osv): |
560 | + _inherit = "account.voucher" |
561 | + |
562 | + def proforma_voucher(self, cr, uid, ids, context=None): |
563 | + res = super(account_voucher, self).proforma_voucher(cr, uid, ids, context=context) |
564 | + statement_pool = self.pool.get('account.vat.period.end.statement') |
565 | + for voucher_id in ids: |
566 | + statement_ids = statement_pool.search(cr, uid, [('voucher_id', '=', voucher_id)]) |
567 | + for statement_id in statement_ids: |
568 | + wf_service = netsvc.LocalService("workflow") |
569 | + wf_service.trg_validate(uid, 'account.vat.period.end.statement', statement_id, 'set_paid', cr) |
570 | + return res |
571 | + |
572 | +account_voucher() |
573 | |
574 | === added file 'account_vat_period_end_statement/account_view.xml' |
575 | --- account_vat_period_end_statement/account_view.xml 1970-01-01 00:00:00 +0000 |
576 | +++ account_vat_period_end_statement/account_view.xml 2011-10-05 08:15:22 +0000 |
577 | @@ -0,0 +1,120 @@ |
578 | +<?xml version="1.0" encoding="utf-8"?> |
579 | +<openerp> |
580 | + <data> |
581 | + |
582 | +<!-- Statement --> |
583 | + |
584 | + <record id="view_account_vat_period_end_statement" model="ir.ui.view"> |
585 | + <field name="name">account.vat.period.end.statement.form</field> |
586 | + <field name="model">account.vat.period.end.statement</field> |
587 | + <field name="type">form</field> |
588 | + <field name="arch" type="xml"> |
589 | + <form string="Vat statement"> |
590 | + <field name="journal_id" widget="selection" select="1"/> |
591 | + <group col="3" colspan="2"> |
592 | + <field name="period_id" select="1" on_change="on_change_period_id(period_id)"/> |
593 | + <button name="open_chart_of_taxes" string="View chart of taxes for selected period" type="object"/> |
594 | + </group> |
595 | + <field name="move_id" select="1"/> |
596 | + <field name="voucher_id" select="1" context="{'form_view_ref' : 'account_voucher.view_vendor_payment_form'}"/> |
597 | + <notebook colspan="4"> |
598 | + <page string="General"> |
599 | + <group colspan="4" col="3"> |
600 | + <group col="2" colspan="3"> |
601 | + <field name="debit_vat_account_line_ids" nolabel="1" > |
602 | + <tree editable="bottom" string="Debit Account Lines"> |
603 | + <field name="account_id" /> |
604 | + <field name="amount" /> |
605 | + </tree> |
606 | + <form editable="bottom"> |
607 | + <field name="account_id" /> |
608 | + <field name="amount" /> |
609 | + </form> |
610 | + </field> |
611 | + <field name="credit_vat_account_line_ids" nolabel="1"> |
612 | + <tree editable="bottom" string="Credit Account Lines"> |
613 | + <field name="account_id" /> |
614 | + <field name="amount" /> |
615 | + </tree> |
616 | + <form editable="bottom"> |
617 | + <field name="account_id" /> |
618 | + <field name="amount" /> |
619 | + </form> |
620 | + </field> |
621 | + <button name="load_debit_accounts" string="Load chargeable VAT" type="object"/> |
622 | + <button name="load_credit_accounts" string="Load deductible VAT" type="object"/> |
623 | + </group> |
624 | + <separator colspan="3" string="Previous Credits VAT"/> |
625 | + <field name="previous_credit_vat_account_id" attrs="{'required':[('previous_credit_vat_amount','!=',0)]}"/> |
626 | + <field name="previous_credit_vat_amount" nolabel="1"/> |
627 | + <separator colspan="3" string="Previous Debits VAT"/> |
628 | + <field name="previous_debit_vat_account_id" attrs="{'required':[('previous_debit_vat_amount','!=',0)]}"/> |
629 | + <field name="previous_debit_vat_amount" nolabel="1"/> |
630 | + <separator colspan="3" string="Other VAT Credits / Debits or Tax Compensations (Positive amounts for credits, negative for debits)"/> |
631 | + <field name="generic_vat_account_line_ids" colspan="3" nolabel="1"> |
632 | + <tree editable="bottom" string="Account Lines"> |
633 | + <field name="account_id" on_change="on_change_vat_account_id(account_id)"/> |
634 | + <field name="amount" /> |
635 | + </tree> |
636 | + <form editable="bottom"> |
637 | + <field name="account_id" /> |
638 | + <field name="amount" /> |
639 | + </form> |
640 | + </field> |
641 | + </group> |
642 | + </page> |
643 | + <page string="Tax Authority"> |
644 | + <field name="authority_partner_id" select="1" on_change="on_change_partner_id(authority_partner_id)"/> |
645 | + <newline/> |
646 | + <field name="authority_vat_account_id" select="1" /> |
647 | + <field name="authority_vat_amount" nolabel="1"/> |
648 | + </page> |
649 | + </notebook> |
650 | + <field name="state" select="1"/> |
651 | + <button name="create_move" states="draft" string="Create Move"/> |
652 | + <button name="set_draft" states="confirmed,paid" string="Set to draft"/> |
653 | + </form> |
654 | + </field> |
655 | + </record> |
656 | + <record id="view_account_vat_period_end_statement_tree" model="ir.ui.view"> |
657 | + <field name="name">account.vat.period.end.statement.tree</field> |
658 | + <field name="model">account.vat.period.end.statement</field> |
659 | + <field name="type">tree</field> |
660 | + <field name="arch" type="xml"> |
661 | + <tree string="Vat statement"> |
662 | + <field name="period_id" /> |
663 | + <field name="journal_id" /> |
664 | + <field name="authority_vat_amount" /> |
665 | + <field name="state" /> |
666 | + </tree> |
667 | + </field> |
668 | + </record> |
669 | + |
670 | + <record id="action_account_vat_period_end_statement" model="ir.actions.act_window"> |
671 | + <field name="name">Vat statement</field> |
672 | + <field name="res_model">account.vat.period.end.statement</field> |
673 | + </record> |
674 | + |
675 | + <menuitem id="menu_account_vat_period_end_statement" action="action_account_vat_period_end_statement" |
676 | + name="VAT statements" parent="account.menu_account_end_year_treatments"/> |
677 | + |
678 | +<!-- tax code --> |
679 | + |
680 | + <record id="view_tax_code_form" model="ir.ui.view"> |
681 | + <field name="name">account.tax.code.form</field> |
682 | + <field name="model">account.tax.code</field> |
683 | + <field name="inherit_id" ref="account.view_tax_code_form"></field> |
684 | + <field name="type">form</field> |
685 | + <field name="arch" type="xml"> |
686 | + <separator string="Description" position="before"> |
687 | + <group colspan="2" col="2"> |
688 | + <separator string="VAT statement" colspan="4"/> |
689 | + <field name="vat_statement_account_id"/> |
690 | + <field name="vat_statement_type"/> |
691 | + </group> |
692 | + </separator> |
693 | + </field> |
694 | + </record> |
695 | + |
696 | + </data> |
697 | +</openerp> |
698 | |
699 | === added directory 'account_vat_period_end_statement/i18n' |
700 | === added file 'account_vat_period_end_statement/i18n/account_vat_period_end_statement.pot' |
701 | --- account_vat_period_end_statement/i18n/account_vat_period_end_statement.pot 1970-01-01 00:00:00 +0000 |
702 | +++ account_vat_period_end_statement/i18n/account_vat_period_end_statement.pot 2011-10-05 08:15:22 +0000 |
703 | @@ -0,0 +1,379 @@ |
704 | +# Translation of OpenERP Server. |
705 | +# This file contains the translation of the following modules: |
706 | +# * account_vat_period_end_statement |
707 | +# |
708 | +msgid "" |
709 | +msgstr "" |
710 | +"Project-Id-Version: OpenERP Server 6.0.3\n" |
711 | +"Report-Msgid-Bugs-To: support@openerp.com\n" |
712 | +"POT-Creation-Date: 2011-09-10 08:34+0000\n" |
713 | +"PO-Revision-Date: 2011-09-10 08:34+0000\n" |
714 | +"Last-Translator: <>\n" |
715 | +"Language-Team: \n" |
716 | +"MIME-Version: 1.0\n" |
717 | +"Content-Type: text/plain; charset=UTF-8\n" |
718 | +"Content-Transfer-Encoding: \n" |
719 | +"Plural-Forms: \n" |
720 | + |
721 | +#. module: account_vat_period_end_statement |
722 | +#: field:account.vat.period.end.statement,voucher_id:0 |
723 | +msgid "VAT payment" |
724 | +msgstr "" |
725 | + |
726 | +#. module: account_vat_period_end_statement |
727 | +#: selection:account.vat.period.end.statement,state:0 |
728 | +msgid "Confirmed" |
729 | +msgstr "" |
730 | + |
731 | +#. module: account_vat_period_end_statement |
732 | +#: view:account.vat.period.end.statement:0 |
733 | +msgid "Credit Account Lines" |
734 | +msgstr "" |
735 | + |
736 | +#. module: account_vat_period_end_statement |
737 | +#: model:ir.model,name:account_vat_period_end_statement.model_statement_generic_account_line |
738 | +msgid "statement.generic.account.line" |
739 | +msgstr "" |
740 | + |
741 | +#. module: account_vat_period_end_statement |
742 | +#: code:addons/account_vat_period_end_statement/account.py:225 |
743 | +#, python-format |
744 | +msgid "Other VAT Credits / Debits" |
745 | +msgstr "" |
746 | + |
747 | +#. module: account_vat_period_end_statement |
748 | +#: model:ir.model,name:account_vat_period_end_statement.model_account_tax_code |
749 | +msgid "Tax Code" |
750 | +msgstr "" |
751 | + |
752 | +#. module: account_vat_period_end_statement |
753 | +#: model:ir.model,name:account_vat_period_end_statement.model_account_vat_period_end_statement |
754 | +msgid "account.vat.period.end.statement" |
755 | +msgstr "" |
756 | + |
757 | +#. module: account_vat_period_end_statement |
758 | +#: report:addons/account_vat_period_end_statement/report/vat_period_end_statement.mako:18 |
759 | +msgid "Payable VAT" |
760 | +msgstr "" |
761 | + |
762 | +#. module: account_vat_period_end_statement |
763 | +#: view:account.vat.period.end.statement:0 |
764 | +#: field:account.vat.period.end.statement,previous_debit_vat_account_id:0 |
765 | +#: code:addons/account_vat_period_end_statement/account.py:208 |
766 | +#: report:addons/account_vat_period_end_statement/report/vat_period_end_statement.mako:58 |
767 | +#, python-format |
768 | +msgid "Previous Debits VAT" |
769 | +msgstr "" |
770 | + |
771 | +#. module: account_vat_period_end_statement |
772 | +#: view:account.vat.period.end.statement:0 |
773 | +msgid "Set to draft" |
774 | +msgstr "" |
775 | + |
776 | +#. module: account_vat_period_end_statement |
777 | +#: help:account.vat.period.end.statement,previous_credit_vat_account_id:0 |
778 | +msgid "Credit VAT from previous periods" |
779 | +msgstr "" |
780 | + |
781 | +#. module: account_vat_period_end_statement |
782 | +#: view:account.vat.period.end.statement:0 |
783 | +msgid "Tax Authority" |
784 | +msgstr "" |
785 | + |
786 | +#. module: account_vat_period_end_statement |
787 | +#: field:account.vat.period.end.statement,state:0 |
788 | +msgid "State" |
789 | +msgstr "" |
790 | + |
791 | +#. module: account_vat_period_end_statement |
792 | +#: selection:account.vat.period.end.statement,state:0 |
793 | +msgid "Draft" |
794 | +msgstr "" |
795 | + |
796 | +#. module: account_vat_period_end_statement |
797 | +#: view:account.vat.period.end.statement:0 |
798 | +msgid "Load chargeable VAT" |
799 | +msgstr "" |
800 | + |
801 | +#. module: account_vat_period_end_statement |
802 | +#: selection:account.tax.code,vat_statement_type:0 |
803 | +msgid "Debit" |
804 | +msgstr "" |
805 | + |
806 | +#. module: account_vat_period_end_statement |
807 | +#: code:addons/account_vat_period_end_statement/account.py:241 |
808 | +#, python-format |
809 | +msgid "Tax Authority VAT" |
810 | +msgstr "" |
811 | + |
812 | +#. module: account_vat_period_end_statement |
813 | +#: model:ir.ui.menu,name:account_vat_period_end_statement.menu_account_vat_period_end_statement |
814 | +msgid "VAT statements" |
815 | +msgstr "" |
816 | + |
817 | +#. module: account_vat_period_end_statement |
818 | +#: field:account.tax.code,vat_statement_type:0 |
819 | +msgid "Type" |
820 | +msgstr "" |
821 | + |
822 | +#. module: account_vat_period_end_statement |
823 | +#: field:account.vat.period.end.statement,previous_debit_vat_amount:0 |
824 | +msgid "Previous Debits VAT Amount" |
825 | +msgstr "" |
826 | + |
827 | +#. module: account_vat_period_end_statement |
828 | +#: field:account.vat.period.end.statement,credit_vat_account_line_ids:0 |
829 | +#: code:addons/account_vat_period_end_statement/account.py:174 |
830 | +#, python-format |
831 | +msgid "Credit VAT" |
832 | +msgstr "" |
833 | + |
834 | +#. module: account_vat_period_end_statement |
835 | +#: view:account.vat.period.end.statement:0 |
836 | +msgid "Debit Account Lines" |
837 | +msgstr "" |
838 | + |
839 | +#. module: account_vat_period_end_statement |
840 | +#: field:account.vat.period.end.statement,journal_id:0 |
841 | +msgid "Journal" |
842 | +msgstr "" |
843 | + |
844 | +#. module: account_vat_period_end_statement |
845 | +#: field:account.vat.period.end.statement,payable_vat_amount:0 |
846 | +msgid "Payable VAT Amount" |
847 | +msgstr "" |
848 | + |
849 | +#. module: account_vat_period_end_statement |
850 | +#: selection:account.vat.period.end.statement,state:0 |
851 | +msgid "Paid" |
852 | +msgstr "" |
853 | + |
854 | +#. module: account_vat_period_end_statement |
855 | +#: view:account.tax.code:0 |
856 | +#: code:addons/account_vat_period_end_statement/account.py:147 |
857 | +#: field:statement.credit.account.line,statement_id:0 |
858 | +#: field:statement.debit.account.line,statement_id:0 |
859 | +#: field:statement.generic.account.line,statement_id:0 |
860 | +#, python-format |
861 | +msgid "VAT statement" |
862 | +msgstr "" |
863 | + |
864 | +#. module: account_vat_period_end_statement |
865 | +#: model:ir.module.module,description:account_vat_period_end_statement.module_meta_information |
866 | +msgid "This module helps to register the VAT statement of period end. The 'VAT statement' object allows to specify every amount and relative account used by the statement.\n" |
867 | +"By default, the amounts of debit and credit taxes are automatically loaded from the tax codes of the selected period. Previous debit or credit is loaded from previous VAT statement.\n" |
868 | +"In order to load the correct amount from tax code, the tax code has to be associated to the account involved in the statement, through the tax code form.\n" |
869 | +"Confirming the statement, the account.move is created along with a draft payment voucher.\n" |
870 | +"\n" |
871 | +"Specification: http://wiki.openerp-italia.org/doku.php/moduli/vat_period_end_statement" |
872 | +msgstr "" |
873 | + |
874 | +#. module: account_vat_period_end_statement |
875 | +#: model:ir.model,name:account_vat_period_end_statement.model_statement_credit_account_line |
876 | +msgid "statement.credit.account.line" |
877 | +msgstr "" |
878 | + |
879 | +#. module: account_vat_period_end_statement |
880 | +#: code:addons/account_vat_period_end_statement/account.py:119 |
881 | +#: code:addons/account_vat_period_end_statement/account.py:142 |
882 | +#, python-format |
883 | +msgid "Error!" |
884 | +msgstr "" |
885 | + |
886 | +#. module: account_vat_period_end_statement |
887 | +#: field:account.vat.period.end.statement,move_id:0 |
888 | +msgid "VAT statement move" |
889 | +msgstr "" |
890 | + |
891 | +#. module: account_vat_period_end_statement |
892 | +#: code:addons/account_vat_period_end_statement/account.py:119 |
893 | +#, python-format |
894 | +msgid "You cannot delete a confirmed or paid statement" |
895 | +msgstr "" |
896 | + |
897 | +#. module: account_vat_period_end_statement |
898 | +#: report:addons/account_vat_period_end_statement/report/vat_period_end_statement.mako:10 |
899 | +#: model:ir.actions.report.xml,name:account_vat_period_end_statement.print_vat_period_end_statement |
900 | +msgid "VAT Statement Summary" |
901 | +msgstr "" |
902 | + |
903 | +#. module: account_vat_period_end_statement |
904 | +#: view:account.vat.period.end.statement:0 |
905 | +msgid "Account Lines" |
906 | +msgstr "" |
907 | + |
908 | +#. module: account_vat_period_end_statement |
909 | +#: field:statement.credit.account.line,account_id:0 |
910 | +#: field:statement.debit.account.line,account_id:0 |
911 | +#: field:statement.generic.account.line,account_id:0 |
912 | +msgid "Account" |
913 | +msgstr "" |
914 | + |
915 | +#. module: account_vat_period_end_statement |
916 | +#: field:account.vat.period.end.statement,generic_vat_account_line_ids:0 |
917 | +msgid "Other VAT Credits / Debits or Tax Compensations" |
918 | +msgstr "" |
919 | + |
920 | +#. module: account_vat_period_end_statement |
921 | +#: help:account.tax.code,vat_statement_type:0 |
922 | +msgid "This establish whether amount will be loaded as debit or credit" |
923 | +msgstr "" |
924 | + |
925 | +#. module: account_vat_period_end_statement |
926 | +#: view:account.vat.period.end.statement:0 |
927 | +#: field:account.vat.period.end.statement,previous_credit_vat_account_id:0 |
928 | +#: code:addons/account_vat_period_end_statement/account.py:191 |
929 | +#: report:addons/account_vat_period_end_statement/report/vat_period_end_statement.mako:54 |
930 | +#, python-format |
931 | +msgid "Previous Credits VAT" |
932 | +msgstr "" |
933 | + |
934 | +#. module: account_vat_period_end_statement |
935 | +#: field:account.vat.period.end.statement,authority_vat_account_id:0 |
936 | +msgid "Tax Authority VAT Account" |
937 | +msgstr "" |
938 | + |
939 | +#. module: account_vat_period_end_statement |
940 | +#: model:ir.module.module,shortdesc:account_vat_period_end_statement.module_meta_information |
941 | +msgid "Period End VAT Statement" |
942 | +msgstr "" |
943 | + |
944 | +#. module: account_vat_period_end_statement |
945 | +#: field:account.vat.period.end.statement,previous_credit_vat_amount:0 |
946 | +msgid "Previous Credits VAT Amount" |
947 | +msgstr "" |
948 | + |
949 | +#. module: account_vat_period_end_statement |
950 | +#: field:account.tax.code,vat_statement_account_id:0 |
951 | +msgid "Account used for VAT statement" |
952 | +msgstr "" |
953 | + |
954 | +#. module: account_vat_period_end_statement |
955 | +#: model:ir.model,name:account_vat_period_end_statement.model_statement_debit_account_line |
956 | +msgid "statement.debit.account.line" |
957 | +msgstr "" |
958 | + |
959 | +#. module: account_vat_period_end_statement |
960 | +#: field:account.vat.period.end.statement,deductible_vat_amount:0 |
961 | +msgid "Deductible VAT Amount" |
962 | +msgstr "" |
963 | + |
964 | +#. module: account_vat_period_end_statement |
965 | +#: report:addons/account_vat_period_end_statement/report/vat_period_end_statement.mako:15 |
966 | +#: field:statement.credit.account.line,amount:0 |
967 | +#: field:statement.debit.account.line,amount:0 |
968 | +#: field:statement.generic.account.line,amount:0 |
969 | +msgid "Amount" |
970 | +msgstr "" |
971 | + |
972 | +#. module: account_vat_period_end_statement |
973 | +#: help:account.vat.period.end.statement,previous_debit_vat_account_id:0 |
974 | +msgid "Debit VAT from previous periods" |
975 | +msgstr "" |
976 | + |
977 | +#. module: account_vat_period_end_statement |
978 | +#: code:addons/account_vat_period_end_statement/account.py:142 |
979 | +#, python-format |
980 | +msgid "The current period has VAT statement yet" |
981 | +msgstr "" |
982 | + |
983 | +#. module: account_vat_period_end_statement |
984 | +#: field:account.vat.period.end.statement,authority_partner_id:0 |
985 | +msgid "Tax Authority Partner" |
986 | +msgstr "" |
987 | + |
988 | +#. module: account_vat_period_end_statement |
989 | +#: report:addons/account_vat_period_end_statement/report/vat_period_end_statement.mako:72 |
990 | +msgid "Amount to pay" |
991 | +msgstr "" |
992 | + |
993 | +#. module: account_vat_period_end_statement |
994 | +#: view:account.vat.period.end.statement:0 |
995 | +msgid "Load deductible VAT" |
996 | +msgstr "" |
997 | + |
998 | +#. module: account_vat_period_end_statement |
999 | +#: view:account.tax.code:0 |
1000 | +msgid "Description" |
1001 | +msgstr "" |
1002 | + |
1003 | +#. module: account_vat_period_end_statement |
1004 | +#: view:account.vat.period.end.statement:0 |
1005 | +msgid "View chart of taxes for selected period" |
1006 | +msgstr "" |
1007 | + |
1008 | +#. module: account_vat_period_end_statement |
1009 | +#: help:account.vat.period.end.statement,debit_vat_account_line_ids:0 |
1010 | +msgid "The accounts containing the debit VAT amount to write-off" |
1011 | +msgstr "" |
1012 | + |
1013 | +#. module: account_vat_period_end_statement |
1014 | +#: constraint:account.tax.code:0 |
1015 | +msgid "Error ! You can not create recursive accounts." |
1016 | +msgstr "" |
1017 | + |
1018 | +#. module: account_vat_period_end_statement |
1019 | +#: selection:account.tax.code,vat_statement_type:0 |
1020 | +msgid "Credit" |
1021 | +msgstr "" |
1022 | + |
1023 | +#. module: account_vat_period_end_statement |
1024 | +#: view:account.vat.period.end.statement:0 |
1025 | +#: model:ir.actions.act_window,name:account_vat_period_end_statement.action_account_vat_period_end_statement |
1026 | +msgid "Vat statement" |
1027 | +msgstr "" |
1028 | + |
1029 | +#. module: account_vat_period_end_statement |
1030 | +#: field:account.vat.period.end.statement,debit_vat_account_line_ids:0 |
1031 | +#: code:addons/account_vat_period_end_statement/account.py:157 |
1032 | +#, python-format |
1033 | +msgid "Debit VAT" |
1034 | +msgstr "" |
1035 | + |
1036 | +#. module: account_vat_period_end_statement |
1037 | +#: model:ir.model,name:account_vat_period_end_statement.model_account_voucher |
1038 | +msgid "Accounting Voucher" |
1039 | +msgstr "" |
1040 | + |
1041 | +#. module: account_vat_period_end_statement |
1042 | +#: field:account.vat.period.end.statement,period_id:0 |
1043 | +#: report:addons/account_vat_period_end_statement/report/vat_period_end_statement.mako:11 |
1044 | +msgid "Period" |
1045 | +msgstr "" |
1046 | + |
1047 | +#. module: account_vat_period_end_statement |
1048 | +#: view:account.vat.period.end.statement:0 |
1049 | +msgid "General" |
1050 | +msgstr "" |
1051 | + |
1052 | +#. module: account_vat_period_end_statement |
1053 | +#: field:account.vat.period.end.statement,authority_vat_amount:0 |
1054 | +msgid "Authority VAT Amount" |
1055 | +msgstr "" |
1056 | + |
1057 | +#. module: account_vat_period_end_statement |
1058 | +#: view:account.vat.period.end.statement:0 |
1059 | +msgid "Other VAT Credits / Debits or Tax Compensations (Positive amounts for credits, negative for debits)" |
1060 | +msgstr "" |
1061 | + |
1062 | +#. module: account_vat_period_end_statement |
1063 | +#: view:account.vat.period.end.statement:0 |
1064 | +msgid "Create Move" |
1065 | +msgstr "" |
1066 | + |
1067 | +#. module: account_vat_period_end_statement |
1068 | +#: help:account.vat.period.end.statement,credit_vat_account_line_ids:0 |
1069 | +msgid "The accounts containing the credit VAT amount to write-off" |
1070 | +msgstr "" |
1071 | + |
1072 | +#. module: account_vat_period_end_statement |
1073 | +#: report:addons/account_vat_period_end_statement/report/vat_period_end_statement.mako:28 |
1074 | +#: report:addons/account_vat_period_end_statement/report/vat_period_end_statement.mako:46 |
1075 | +msgid "Total" |
1076 | +msgstr "" |
1077 | + |
1078 | +#. module: account_vat_period_end_statement |
1079 | +#: report:addons/account_vat_period_end_statement/report/vat_period_end_statement.mako:36 |
1080 | +msgid "Deductible VAT" |
1081 | +msgstr "" |
1082 | + |
1083 | |
1084 | === added file 'account_vat_period_end_statement/i18n/it.po' |
1085 | --- account_vat_period_end_statement/i18n/it.po 1970-01-01 00:00:00 +0000 |
1086 | +++ account_vat_period_end_statement/i18n/it.po 2011-10-05 08:15:22 +0000 |
1087 | @@ -0,0 +1,386 @@ |
1088 | +# Translation of OpenERP Server. |
1089 | +# This file contains the translation of the following modules: |
1090 | +# * account_vat_period_end_statement |
1091 | +# |
1092 | +msgid "" |
1093 | +msgstr "" |
1094 | +"Project-Id-Version: OpenERP Server 6.0.3\n" |
1095 | +"Report-Msgid-Bugs-To: support@openerp.com\n" |
1096 | +"POT-Creation-Date: 2011-09-10 08:35+0000\n" |
1097 | +"PO-Revision-Date: 2011-09-10 10:37+0100\n" |
1098 | +"Last-Translator: Lorenzo Battistini <lorenzo.battistini@agilebg.com>\n" |
1099 | +"Language-Team: \n" |
1100 | +"MIME-Version: 1.0\n" |
1101 | +"Content-Type: text/plain; charset=UTF-8\n" |
1102 | +"Content-Transfer-Encoding: 8bit\n" |
1103 | +"Plural-Forms: \n" |
1104 | + |
1105 | +#. module: account_vat_period_end_statement |
1106 | +#: field:account.vat.period.end.statement,voucher_id:0 |
1107 | +msgid "VAT payment" |
1108 | +msgstr "Versamento IVA" |
1109 | + |
1110 | +#. module: account_vat_period_end_statement |
1111 | +#: selection:account.vat.period.end.statement,state:0 |
1112 | +msgid "Confirmed" |
1113 | +msgstr "Confermato" |
1114 | + |
1115 | +#. module: account_vat_period_end_statement |
1116 | +#: view:account.vat.period.end.statement:0 |
1117 | +msgid "Credit Account Lines" |
1118 | +msgstr "Righe conti di credito" |
1119 | + |
1120 | +#. module: account_vat_period_end_statement |
1121 | +#: model:ir.model,name:account_vat_period_end_statement.model_statement_generic_account_line |
1122 | +msgid "statement.generic.account.line" |
1123 | +msgstr "statement.generic.account.line" |
1124 | + |
1125 | +#. module: account_vat_period_end_statement |
1126 | +#: code:addons/account_vat_period_end_statement/account.py:225 |
1127 | +#, python-format |
1128 | +msgid "Other VAT Credits / Debits" |
1129 | +msgstr "Altri Crediti / Debiti per IVA" |
1130 | + |
1131 | +#. module: account_vat_period_end_statement |
1132 | +#: model:ir.model,name:account_vat_period_end_statement.model_account_tax_code |
1133 | +msgid "Tax Code" |
1134 | +msgstr "Codice imposta" |
1135 | + |
1136 | +#. module: account_vat_period_end_statement |
1137 | +#: model:ir.model,name:account_vat_period_end_statement.model_account_vat_period_end_statement |
1138 | +msgid "account.vat.period.end.statement" |
1139 | +msgstr "account.vat.period.end.statement" |
1140 | + |
1141 | +#. module: account_vat_period_end_statement |
1142 | +#: report:addons/account_vat_period_end_statement/report/vat_period_end_statement.mako:18 |
1143 | +msgid "Payable VAT" |
1144 | +msgstr "IVA Esigibile" |
1145 | + |
1146 | +#. module: account_vat_period_end_statement |
1147 | +#: view:account.vat.period.end.statement:0 |
1148 | +#: field:account.vat.period.end.statement,previous_debit_vat_account_id:0 |
1149 | +#: code:addons/account_vat_period_end_statement/account.py:208 |
1150 | +#: report:addons/account_vat_period_end_statement/report/vat_period_end_statement.mako:58 |
1151 | +#, python-format |
1152 | +msgid "Previous Debits VAT" |
1153 | +msgstr "IVA debiti precedenti" |
1154 | + |
1155 | +#. module: account_vat_period_end_statement |
1156 | +#: view:account.vat.period.end.statement:0 |
1157 | +msgid "Set to draft" |
1158 | +msgstr "Imposta a bozza" |
1159 | + |
1160 | +#. module: account_vat_period_end_statement |
1161 | +#: help:account.vat.period.end.statement,previous_credit_vat_account_id:0 |
1162 | +msgid "Credit VAT from previous periods" |
1163 | +msgstr "IVA a credito da periodi precedenti" |
1164 | + |
1165 | +#. module: account_vat_period_end_statement |
1166 | +#: view:account.vat.period.end.statement:0 |
1167 | +msgid "Tax Authority" |
1168 | +msgstr "Erario" |
1169 | + |
1170 | +#. module: account_vat_period_end_statement |
1171 | +#: field:account.vat.period.end.statement,state:0 |
1172 | +msgid "State" |
1173 | +msgstr "Stato" |
1174 | + |
1175 | +#. module: account_vat_period_end_statement |
1176 | +#: selection:account.vat.period.end.statement,state:0 |
1177 | +msgid "Draft" |
1178 | +msgstr "Bozza" |
1179 | + |
1180 | +#. module: account_vat_period_end_statement |
1181 | +#: view:account.vat.period.end.statement:0 |
1182 | +msgid "Load chargeable VAT" |
1183 | +msgstr "Carica IVA esigibile" |
1184 | + |
1185 | +#. module: account_vat_period_end_statement |
1186 | +#: selection:account.tax.code,vat_statement_type:0 |
1187 | +msgid "Debit" |
1188 | +msgstr "Debito" |
1189 | + |
1190 | +#. module: account_vat_period_end_statement |
1191 | +#: code:addons/account_vat_period_end_statement/account.py:241 |
1192 | +#, python-format |
1193 | +msgid "Tax Authority VAT" |
1194 | +msgstr "IVA Erario" |
1195 | + |
1196 | +#. module: account_vat_period_end_statement |
1197 | +#: model:ir.ui.menu,name:account_vat_period_end_statement.menu_account_vat_period_end_statement |
1198 | +msgid "VAT statements" |
1199 | +msgstr "Liquidazioni IVA" |
1200 | + |
1201 | +#. module: account_vat_period_end_statement |
1202 | +#: field:account.tax.code,vat_statement_type:0 |
1203 | +msgid "Type" |
1204 | +msgstr "Tipo" |
1205 | + |
1206 | +#. module: account_vat_period_end_statement |
1207 | +#: field:account.vat.period.end.statement,previous_debit_vat_amount:0 |
1208 | +msgid "Previous Debits VAT Amount" |
1209 | +msgstr "Importo IVA debiti precedenti" |
1210 | + |
1211 | +#. module: account_vat_period_end_statement |
1212 | +#: field:account.vat.period.end.statement,credit_vat_account_line_ids:0 |
1213 | +#: code:addons/account_vat_period_end_statement/account.py:174 |
1214 | +#, python-format |
1215 | +msgid "Credit VAT" |
1216 | +msgstr "IVA a credito" |
1217 | + |
1218 | +#. module: account_vat_period_end_statement |
1219 | +#: view:account.vat.period.end.statement:0 |
1220 | +msgid "Debit Account Lines" |
1221 | +msgstr "Righe conti di debito" |
1222 | + |
1223 | +#. module: account_vat_period_end_statement |
1224 | +#: field:account.vat.period.end.statement,journal_id:0 |
1225 | +msgid "Journal" |
1226 | +msgstr "Sezionale" |
1227 | + |
1228 | +#. module: account_vat_period_end_statement |
1229 | +#: field:account.vat.period.end.statement,payable_vat_amount:0 |
1230 | +msgid "Payable VAT Amount" |
1231 | +msgstr "Importo IVA Esigibile" |
1232 | + |
1233 | +#. module: account_vat_period_end_statement |
1234 | +#: selection:account.vat.period.end.statement,state:0 |
1235 | +msgid "Paid" |
1236 | +msgstr "Pagato" |
1237 | + |
1238 | +#. module: account_vat_period_end_statement |
1239 | +#: view:account.tax.code:0 |
1240 | +#: code:addons/account_vat_period_end_statement/account.py:147 |
1241 | +#: field:statement.credit.account.line,statement_id:0 |
1242 | +#: field:statement.debit.account.line,statement_id:0 |
1243 | +#: field:statement.generic.account.line,statement_id:0 |
1244 | +#, python-format |
1245 | +msgid "VAT statement" |
1246 | +msgstr "Liquidazione IVA" |
1247 | + |
1248 | +#. module: account_vat_period_end_statement |
1249 | +#: model:ir.module.module,description:account_vat_period_end_statement.module_meta_information |
1250 | +msgid "" |
1251 | +"This module helps to register the VAT statement of period end. The 'VAT statement' object allows to specify every amount and relative account used by the statement.\n" |
1252 | +"By default, the amounts of debit and credit taxes are automatically loaded from the tax codes of the selected period. Previous debit or credit is loaded from previous VAT statement.\n" |
1253 | +"In order to load the correct amount from tax code, the tax code has to be associated to the account involved in the statement, through the tax code form.\n" |
1254 | +"Confirming the statement, the account.move is created along with a draft payment voucher.\n" |
1255 | +"\n" |
1256 | +"Specification: http://wiki.openerp-italia.org/doku.php/moduli/vat_period_end_statement" |
1257 | +msgstr "" |
1258 | +"This module helps to register the VAT statement of period end. The 'VAT statement' object allows to specify every amount and relative account used by the statement.\n" |
1259 | +"By default, the amounts of debit and credit taxes are automatically loaded from the tax codes of the selected period. Previous debit or credit is loaded from previous VAT statement.\n" |
1260 | +"In order to load the correct amount from tax code, the tax code has to be associated to the account involved in the statement, through the tax code form.\n" |
1261 | +"Confirming the statement, the account.move is created along with a draft payment voucher.\n" |
1262 | +"\n" |
1263 | +"Specification: http://wiki.openerp-italia.org/doku.php/moduli/vat_period_end_statement" |
1264 | + |
1265 | +#. module: account_vat_period_end_statement |
1266 | +#: model:ir.model,name:account_vat_period_end_statement.model_statement_credit_account_line |
1267 | +msgid "statement.credit.account.line" |
1268 | +msgstr "statement.credit.account.line" |
1269 | + |
1270 | +#. module: account_vat_period_end_statement |
1271 | +#: code:addons/account_vat_period_end_statement/account.py:119 |
1272 | +#: code:addons/account_vat_period_end_statement/account.py:142 |
1273 | +#, python-format |
1274 | +msgid "Error!" |
1275 | +msgstr "Errore!" |
1276 | + |
1277 | +#. module: account_vat_period_end_statement |
1278 | +#: field:account.vat.period.end.statement,move_id:0 |
1279 | +msgid "VAT statement move" |
1280 | +msgstr "Movimento liquidazione IVA" |
1281 | + |
1282 | +#. module: account_vat_period_end_statement |
1283 | +#: code:addons/account_vat_period_end_statement/account.py:119 |
1284 | +#, python-format |
1285 | +msgid "You cannot delete a confirmed or paid statement" |
1286 | +msgstr "Non ĆØ possibile eliminare una liquidazione confermata o pagata" |
1287 | + |
1288 | +#. module: account_vat_period_end_statement |
1289 | +#: report:addons/account_vat_period_end_statement/report/vat_period_end_statement.mako:10 |
1290 | +#: model:ir.actions.report.xml,name:account_vat_period_end_statement.print_vat_period_end_statement |
1291 | +msgid "VAT Statement Summary" |
1292 | +msgstr "Prospetto liquidazione IVA" |
1293 | + |
1294 | +#. module: account_vat_period_end_statement |
1295 | +#: view:account.vat.period.end.statement:0 |
1296 | +msgid "Account Lines" |
1297 | +msgstr "Righe conti" |
1298 | + |
1299 | +#. module: account_vat_period_end_statement |
1300 | +#: field:statement.credit.account.line,account_id:0 |
1301 | +#: field:statement.debit.account.line,account_id:0 |
1302 | +#: field:statement.generic.account.line,account_id:0 |
1303 | +msgid "Account" |
1304 | +msgstr "Conto" |
1305 | + |
1306 | +#. module: account_vat_period_end_statement |
1307 | +#: field:account.vat.period.end.statement,generic_vat_account_line_ids:0 |
1308 | +msgid "Other VAT Credits / Debits or Tax Compensations" |
1309 | +msgstr "Altri Crediti / Debiti per IVA o compensazioni di imposta" |
1310 | + |
1311 | +#. module: account_vat_period_end_statement |
1312 | +#: help:account.tax.code,vat_statement_type:0 |
1313 | +msgid "This establish whether amount will be loaded as debit or credit" |
1314 | +msgstr "Questo stabilisce se il saldo debba essere caricato come debito o come credito" |
1315 | + |
1316 | +#. module: account_vat_period_end_statement |
1317 | +#: view:account.vat.period.end.statement:0 |
1318 | +#: field:account.vat.period.end.statement,previous_credit_vat_account_id:0 |
1319 | +#: code:addons/account_vat_period_end_statement/account.py:191 |
1320 | +#: report:addons/account_vat_period_end_statement/report/vat_period_end_statement.mako:54 |
1321 | +#, python-format |
1322 | +msgid "Previous Credits VAT" |
1323 | +msgstr "IVA crediti precedenti" |
1324 | + |
1325 | +#. module: account_vat_period_end_statement |
1326 | +#: field:account.vat.period.end.statement,authority_vat_account_id:0 |
1327 | +msgid "Tax Authority VAT Account" |
1328 | +msgstr "Conto IVA Erario" |
1329 | + |
1330 | +#. module: account_vat_period_end_statement |
1331 | +#: model:ir.module.module,shortdesc:account_vat_period_end_statement.module_meta_information |
1332 | +msgid "Period End VAT Statement" |
1333 | +msgstr "Liquidazione IVA di fine periodo" |
1334 | + |
1335 | +#. module: account_vat_period_end_statement |
1336 | +#: field:account.vat.period.end.statement,previous_credit_vat_amount:0 |
1337 | +msgid "Previous Credits VAT Amount" |
1338 | +msgstr "Importo IVA crediti precedenti" |
1339 | + |
1340 | +#. module: account_vat_period_end_statement |
1341 | +#: field:account.tax.code,vat_statement_account_id:0 |
1342 | +msgid "Account used for VAT statement" |
1343 | +msgstr "Conto utilizzato per la liquidazione IVA" |
1344 | + |
1345 | +#. module: account_vat_period_end_statement |
1346 | +#: model:ir.model,name:account_vat_period_end_statement.model_statement_debit_account_line |
1347 | +msgid "statement.debit.account.line" |
1348 | +msgstr "statement.debit.account.line" |
1349 | + |
1350 | +#. module: account_vat_period_end_statement |
1351 | +#: field:account.vat.period.end.statement,deductible_vat_amount:0 |
1352 | +msgid "Deductible VAT Amount" |
1353 | +msgstr "Importo IVA Deducibile" |
1354 | + |
1355 | +#. module: account_vat_period_end_statement |
1356 | +#: report:addons/account_vat_period_end_statement/report/vat_period_end_statement.mako:15 |
1357 | +#: field:statement.credit.account.line,amount:0 |
1358 | +#: field:statement.debit.account.line,amount:0 |
1359 | +#: field:statement.generic.account.line,amount:0 |
1360 | +msgid "Amount" |
1361 | +msgstr "Importo" |
1362 | + |
1363 | +#. module: account_vat_period_end_statement |
1364 | +#: help:account.vat.period.end.statement,previous_debit_vat_account_id:0 |
1365 | +msgid "Debit VAT from previous periods" |
1366 | +msgstr "IVA a debito da periodi precedenti" |
1367 | + |
1368 | +#. module: account_vat_period_end_statement |
1369 | +#: code:addons/account_vat_period_end_statement/account.py:142 |
1370 | +#, python-format |
1371 | +msgid "The current period has VAT statement yet" |
1372 | +msgstr "Il periodo selezionato ha giĆ una dichiarazione IVA" |
1373 | + |
1374 | +#. module: account_vat_period_end_statement |
1375 | +#: field:account.vat.period.end.statement,authority_partner_id:0 |
1376 | +msgid "Tax Authority Partner" |
1377 | +msgstr "Partner Erario" |
1378 | + |
1379 | +#. module: account_vat_period_end_statement |
1380 | +#: report:addons/account_vat_period_end_statement/report/vat_period_end_statement.mako:72 |
1381 | +msgid "Amount to pay" |
1382 | +msgstr "Totale da pagare" |
1383 | + |
1384 | +#. module: account_vat_period_end_statement |
1385 | +#: view:account.vat.period.end.statement:0 |
1386 | +msgid "Load deductible VAT" |
1387 | +msgstr "Carica IVA detraibile" |
1388 | + |
1389 | +#. module: account_vat_period_end_statement |
1390 | +#: view:account.tax.code:0 |
1391 | +msgid "Description" |
1392 | +msgstr "Descrizione" |
1393 | + |
1394 | +#. module: account_vat_period_end_statement |
1395 | +#: view:account.vat.period.end.statement:0 |
1396 | +msgid "View chart of taxes for selected period" |
1397 | +msgstr "Visualizza i conti imposta per il periodo selezionato" |
1398 | + |
1399 | +#. module: account_vat_period_end_statement |
1400 | +#: help:account.vat.period.end.statement,debit_vat_account_line_ids:0 |
1401 | +msgid "The accounts containing the debit VAT amount to write-off" |
1402 | +msgstr "I conti contenenti l'IVA a debito da stornare" |
1403 | + |
1404 | +#. module: account_vat_period_end_statement |
1405 | +#: constraint:account.tax.code:0 |
1406 | +msgid "Error ! You can not create recursive accounts." |
1407 | +msgstr "Errore! Non puoi creare conti ricorsivi" |
1408 | + |
1409 | +#. module: account_vat_period_end_statement |
1410 | +#: selection:account.tax.code,vat_statement_type:0 |
1411 | +msgid "Credit" |
1412 | +msgstr "Credito" |
1413 | + |
1414 | +#. module: account_vat_period_end_statement |
1415 | +#: view:account.vat.period.end.statement:0 |
1416 | +#: model:ir.actions.act_window,name:account_vat_period_end_statement.action_account_vat_period_end_statement |
1417 | +msgid "Vat statement" |
1418 | +msgstr "Liquidazione IVA" |
1419 | + |
1420 | +#. module: account_vat_period_end_statement |
1421 | +#: field:account.vat.period.end.statement,debit_vat_account_line_ids:0 |
1422 | +#: code:addons/account_vat_period_end_statement/account.py:157 |
1423 | +#, python-format |
1424 | +msgid "Debit VAT" |
1425 | +msgstr "IVA a debito" |
1426 | + |
1427 | +#. module: account_vat_period_end_statement |
1428 | +#: model:ir.model,name:account_vat_period_end_statement.model_account_voucher |
1429 | +msgid "Accounting Voucher" |
1430 | +msgstr "Voucher contabile" |
1431 | + |
1432 | +#. module: account_vat_period_end_statement |
1433 | +#: field:account.vat.period.end.statement,period_id:0 |
1434 | +#: report:addons/account_vat_period_end_statement/report/vat_period_end_statement.mako:11 |
1435 | +msgid "Period" |
1436 | +msgstr "Periodo" |
1437 | + |
1438 | +#. module: account_vat_period_end_statement |
1439 | +#: view:account.vat.period.end.statement:0 |
1440 | +msgid "General" |
1441 | +msgstr "Generale" |
1442 | + |
1443 | +#. module: account_vat_period_end_statement |
1444 | +#: field:account.vat.period.end.statement,authority_vat_amount:0 |
1445 | +msgid "Authority VAT Amount" |
1446 | +msgstr "Importo IVA Erario" |
1447 | + |
1448 | +#. module: account_vat_period_end_statement |
1449 | +#: view:account.vat.period.end.statement:0 |
1450 | +msgid "Other VAT Credits / Debits or Tax Compensations (Positive amounts for credits, negative for debits)" |
1451 | +msgstr "Altri crediti / debiti per IVA o compensazioni di imposta (importi positivi per i crediti, negativi per i debiti)" |
1452 | + |
1453 | +#. module: account_vat_period_end_statement |
1454 | +#: view:account.vat.period.end.statement:0 |
1455 | +msgid "Create Move" |
1456 | +msgstr "Crea movimento" |
1457 | + |
1458 | +#. module: account_vat_period_end_statement |
1459 | +#: help:account.vat.period.end.statement,credit_vat_account_line_ids:0 |
1460 | +msgid "The accounts containing the credit VAT amount to write-off" |
1461 | +msgstr "I conti contenenti l'IVA a credito da stornare" |
1462 | + |
1463 | +#. module: account_vat_period_end_statement |
1464 | +#: report:addons/account_vat_period_end_statement/report/vat_period_end_statement.mako:28 |
1465 | +#: report:addons/account_vat_period_end_statement/report/vat_period_end_statement.mako:46 |
1466 | +msgid "Total" |
1467 | +msgstr "Totale" |
1468 | + |
1469 | +#. module: account_vat_period_end_statement |
1470 | +#: report:addons/account_vat_period_end_statement/report/vat_period_end_statement.mako:36 |
1471 | +msgid "Deductible VAT" |
1472 | +msgstr "IVA Deducibile" |
1473 | + |
1474 | |
1475 | === added directory 'account_vat_period_end_statement/report' |
1476 | === added file 'account_vat_period_end_statement/report/__init__.py' |
1477 | --- account_vat_period_end_statement/report/__init__.py 1970-01-01 00:00:00 +0000 |
1478 | +++ account_vat_period_end_statement/report/__init__.py 2011-10-05 08:15:22 +0000 |
1479 | @@ -0,0 +1,21 @@ |
1480 | +# -*- coding: utf-8 -*- |
1481 | +############################################################################## |
1482 | +# |
1483 | +# OpenERP, Open Source Management Solution |
1484 | +# Copyright (C) 2011 Domsense s.r.l. (<http://www.domsense.com>). |
1485 | +# |
1486 | +# This program is free software: you can redistribute it and/or modify |
1487 | +# it under the terms of the GNU Affero General Public License as |
1488 | +# published by the Free Software Foundation, either version 3 of the |
1489 | +# License, or (at your option) any later version. |
1490 | +# |
1491 | +# This program is distributed in the hope that it will be useful, |
1492 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of |
1493 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
1494 | +# GNU Affero General Public License for more details. |
1495 | +# |
1496 | +# You should have received a copy of the GNU Affero General Public License |
1497 | +# along with this program. If not, see <http://www.gnu.org/licenses/>. |
1498 | +# |
1499 | +############################################################################## |
1500 | +import vat_period_end_statement |
1501 | |
1502 | === added file 'account_vat_period_end_statement/report/vat_period_end_statement.mako' |
1503 | --- account_vat_period_end_statement/report/vat_period_end_statement.mako 1970-01-01 00:00:00 +0000 |
1504 | +++ account_vat_period_end_statement/report/vat_period_end_statement.mako 2011-10-05 08:15:22 +0000 |
1505 | @@ -0,0 +1,78 @@ |
1506 | +<html> |
1507 | +<head> |
1508 | + <style type="text/css"> |
1509 | + ${css} |
1510 | + </style> |
1511 | +</head> |
1512 | +<body> |
1513 | +<% setLang(company.partner_id.lang) %> |
1514 | +% for statement in objects: |
1515 | +<h1>${_("VAT Statement Summary")} </h1> |
1516 | +<h2>${_("Period")}: ${statement.period_id.name|entity}</h2> |
1517 | +<table class="list_table" width="90%"> |
1518 | + <tr> |
1519 | + <th></th> |
1520 | + <th> ${ _('Amount') }</th> |
1521 | + </tr> |
1522 | + <tr style="page-break-inside: avoid; vertical-align:text-top;"> |
1523 | + <td><strong>${_("Payable VAT")}</strong></td> |
1524 | + <td></td> |
1525 | + </tr> |
1526 | + %for debit_line in statement.debit_vat_account_line_ids : |
1527 | + <tr style="page-break-inside: avoid; vertical-align:text-top;"> |
1528 | + <td>${ debit_line.account_id.name|entity }</td> |
1529 | + <td>${ debit_line.amount|entity }</td> |
1530 | + </tr> |
1531 | + %endfor |
1532 | + <tr style="page-break-inside: avoid; vertical-align:text-top;"> |
1533 | + <td>${_("Total")}</td> |
1534 | + <td>${ statement.payable_vat_amount|entity }</td> |
1535 | + </tr> |
1536 | + <tr style="page-break-inside: avoid; vertical-align:text-top;"> |
1537 | + <td></td> |
1538 | + <td></td> |
1539 | + </tr> |
1540 | + <tr style="page-break-inside: avoid; vertical-align:text-top;"> |
1541 | + <td><strong>${_("Deductible VAT")}</strong></td> |
1542 | + <td></td> |
1543 | + </tr> |
1544 | + %for credit_line in statement.credit_vat_account_line_ids : |
1545 | + <tr style="page-break-inside: avoid; vertical-align:text-top;"> |
1546 | + <td>${ credit_line.account_id.name|entity }</td> |
1547 | + <td>${ credit_line.amount|entity }</td> |
1548 | + </tr> |
1549 | + %endfor |
1550 | + <tr style="page-break-inside: avoid; vertical-align:text-top;"> |
1551 | + <td>${_("Total")}</td> |
1552 | + <td>${ statement.deductible_vat_amount|entity }</td> |
1553 | + </tr> |
1554 | + <tr style="page-break-inside: avoid; vertical-align:text-top;"> |
1555 | + <td></td> |
1556 | + <td></td> |
1557 | + </tr> |
1558 | + <tr style="page-break-inside: avoid; vertical-align:text-top;"> |
1559 | + <td>${_("Previous Credits VAT")}</td> |
1560 | + <td>${ statement.previous_credit_vat_amount|entity }</td> |
1561 | + </tr> |
1562 | + <tr style="page-break-inside: avoid; vertical-align:text-top;"> |
1563 | + <td>${_("Previous Debits VAT")}</td> |
1564 | + <td>${ statement.previous_debit_vat_amount|entity }</td> |
1565 | + </tr> |
1566 | + %for generic_line in statement.generic_vat_account_line_ids : |
1567 | + <tr style="page-break-inside: avoid; vertical-align:text-top;"> |
1568 | + <td>${ generic_line.account_id.name|entity }</td> |
1569 | + <td>${ generic_line.amount|entity }</td> |
1570 | + </tr> |
1571 | + %endfor |
1572 | + <tr style="page-break-inside: avoid; vertical-align:text-top;"> |
1573 | + <td></td> |
1574 | + <td></td> |
1575 | + </tr> |
1576 | + <tr style="page-break-inside: avoid; vertical-align:text-top;"> |
1577 | + <td><strong>${_("Amount to pay")}</strong></td> |
1578 | + <td><strong>${ statement.authority_vat_amount|entity }</strong></td> |
1579 | + </tr> |
1580 | +</table> |
1581 | +%endfor |
1582 | +</body> |
1583 | +</html> |
1584 | |
1585 | === added file 'account_vat_period_end_statement/report/vat_period_end_statement.py' |
1586 | --- account_vat_period_end_statement/report/vat_period_end_statement.py 1970-01-01 00:00:00 +0000 |
1587 | +++ account_vat_period_end_statement/report/vat_period_end_statement.py 2011-10-05 08:15:22 +0000 |
1588 | @@ -0,0 +1,43 @@ |
1589 | +# -*- coding: utf-8 -*- |
1590 | +############################################################################## |
1591 | +# |
1592 | +# OpenERP, Open Source Management Solution |
1593 | +# Copyright (C) 2011 Domsense s.r.l. (<http://www.domsense.com>). |
1594 | +# |
1595 | +# This program is free software: you can redistribute it and/or modify |
1596 | +# it under the terms of the GNU Affero General Public License as |
1597 | +# published by the Free Software Foundation, either version 3 of the |
1598 | +# License, or (at your option) any later version. |
1599 | +# |
1600 | +# This program is distributed in the hope that it will be useful, |
1601 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of |
1602 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
1603 | +# GNU Affero General Public License for more details. |
1604 | +# |
1605 | +# You should have received a copy of the GNU Affero General Public License |
1606 | +# along with this program. If not, see <http://www.gnu.org/licenses/>. |
1607 | +# |
1608 | +############################################################################## |
1609 | + |
1610 | +import time |
1611 | +from report import report_sxw |
1612 | + |
1613 | +class print_vat_period_end_statement(report_sxw.rml_parse): |
1614 | + _name = 'parser.vat.period.end.statement' |
1615 | + |
1616 | + def __init__(self, cr, uid, name, context=None): |
1617 | + if context is None: |
1618 | + context = {} |
1619 | + super(print_vat_period_end_statement, self).__init__(cr, uid, name, context=context) |
1620 | + self.localcontext.update( { |
1621 | + 'time': time, |
1622 | + }) |
1623 | + self.context = context |
1624 | + |
1625 | +report_sxw.report_sxw('report.account.print.vat.period.end.statement', |
1626 | + 'account.vat.period.end.statement', |
1627 | + 'addons/account_vat_period_end_statement/report/vat_period_end_statement.mako', |
1628 | + parser=print_vat_period_end_statement) |
1629 | + |
1630 | + |
1631 | +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: |
1632 | |
1633 | === added file 'account_vat_period_end_statement/reports.xml' |
1634 | --- account_vat_period_end_statement/reports.xml 1970-01-01 00:00:00 +0000 |
1635 | +++ account_vat_period_end_statement/reports.xml 2011-10-05 08:15:22 +0000 |
1636 | @@ -0,0 +1,16 @@ |
1637 | +<?xml version="1.0"?> |
1638 | +<openerp> |
1639 | + <data> |
1640 | + |
1641 | + <report |
1642 | + auto="False" |
1643 | + id="print_vat_period_end_statement" |
1644 | + model="account.vat.period.end.statement" |
1645 | + name="account.print.vat.period.end.statement" |
1646 | + file="account_vat_period_end_statement/report/vat_period_end_statement.mako" |
1647 | + string="VAT Statement Summary" |
1648 | + report_type="webkit" /> |
1649 | + |
1650 | + </data> |
1651 | +</openerp> |
1652 | + |
1653 | |
1654 | === added directory 'account_vat_period_end_statement/security' |
1655 | === added file 'account_vat_period_end_statement/security/ir.model.access.csv' |
1656 | --- account_vat_period_end_statement/security/ir.model.access.csv 1970-01-01 00:00:00 +0000 |
1657 | +++ account_vat_period_end_statement/security/ir.model.access.csv 2011-10-05 08:15:22 +0000 |
1658 | @@ -0,0 +1,9 @@ |
1659 | +"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink" |
1660 | +"access_account_vat_period_end_statement_accountant","access_account_vat_period_end_statement_accountant","model_account_vat_period_end_statement","account.group_account_user","1","1","1","1" |
1661 | +"access_account_vat_period_end_statement_manager","access_account_vat_period_end_statement_manager","model_account_vat_period_end_statement","account.group_account_manager","1","1","1","1" |
1662 | +"access_statement_debit_account_line_accountant","access_statement_debit_account_line_accountant","model_statement_debit_account_line","account.group_account_user","1","1","1","1" |
1663 | +"access_statement_debit_account_line_manager","access_statement_debit_account_line_manager","model_statement_debit_account_line","account.group_account_manager","1","1","1","1" |
1664 | +"access_statement_credit_account_line_accountant","access_statement_credit_account_line_accountant","model_statement_credit_account_line","account.group_account_user","1","1","1","1" |
1665 | +"access_statement_credit_account_line_manager","access_statement_credit_account_line_manager","model_statement_credit_account_line","account.group_account_manager","1","1","1","1" |
1666 | +"access_statement_generic_account_line_accountant","access_statement_generic_account_line_accountant","model_statement_generic_account_line","account.group_account_user","1","1","1","1" |
1667 | +"access_statement_generic_account_line_manager","access_statement_generic_account_line_manager","model_statement_generic_account_line","account.group_account_manager","1","1","1","1" |
1668 | |
1669 | === added file 'account_vat_period_end_statement/statement_workflow.xml' |
1670 | --- account_vat_period_end_statement/statement_workflow.xml 1970-01-01 00:00:00 +0000 |
1671 | +++ account_vat_period_end_statement/statement_workflow.xml 2011-10-05 08:15:22 +0000 |
1672 | @@ -0,0 +1,58 @@ |
1673 | +<?xml version="1.0"?> |
1674 | +<openerp> |
1675 | + <data> |
1676 | + <record model="workflow" id="wkf_vat_period_end_statement"> |
1677 | + <field name="name">workflow.vat.period.end.statement</field> |
1678 | + <field name="osv">account.vat.period.end.statement</field> |
1679 | + <field name="on_create">True</field> |
1680 | + </record> |
1681 | + |
1682 | + <record model="workflow.activity" id="act_draft"> |
1683 | + <field name="wkf_id" ref="wkf_vat_period_end_statement" /> |
1684 | + <field name="flow_start">True</field> |
1685 | + <field name="name">draft</field> |
1686 | + <field name="kind">function</field> |
1687 | + <field name="action">statement_draft()</field> |
1688 | + </record> |
1689 | + |
1690 | + <record model="workflow.activity" id="act_move_created"> |
1691 | + <field name="wkf_id" ref="wkf_vat_period_end_statement" /> |
1692 | + <field name="name">created</field> |
1693 | + <field name="kind">function</field> |
1694 | + <field name="action">create_move()</field> |
1695 | + </record> |
1696 | + |
1697 | + <record model="workflow.activity" id="act_statement_paid"> |
1698 | + <field name="wkf_id" ref="wkf_vat_period_end_statement" /> |
1699 | + <field name="name">paid</field> |
1700 | + <field name="kind">function</field> |
1701 | + <field name="action">statement_paid()</field> |
1702 | +<!-- <field name="flow_stop">True</field> --> |
1703 | + </record> |
1704 | + |
1705 | + <record model="workflow.transition" id="t1"> |
1706 | + <field name="act_from" ref="act_draft" /> |
1707 | + <field name="act_to" ref="act_move_created" /> |
1708 | + <field name="signal">create_move</field> |
1709 | + </record> |
1710 | + |
1711 | + <record model="workflow.transition" id="t2"> |
1712 | + <field name="act_to" ref="act_draft" /> |
1713 | + <field name="act_from" ref="act_move_created" /> |
1714 | + <field name="signal">set_draft</field> |
1715 | + </record> |
1716 | + |
1717 | + <record model="workflow.transition" id="t3"> |
1718 | + <field name="act_to" ref="act_statement_paid" /> |
1719 | + <field name="act_from" ref="act_move_created" /> |
1720 | + <field name="signal">set_paid</field> |
1721 | + </record> |
1722 | + |
1723 | + <record model="workflow.transition" id="t4"> |
1724 | + <field name="act_to" ref="act_draft" /> |
1725 | + <field name="act_from" ref="act_statement_paid" /> |
1726 | + <field name="signal">set_draft</field> |
1727 | + </record> |
1728 | + |
1729 | + </data> |
1730 | +</openerp> |