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

Proposed by Franco Tampieri
Status: Superseded
Proposed branch: lp:~openobject-italia-core-devs/openobject-italia/add_abi_cab
Merge into: lp:~openobject-italia-core-devs/openobject-italia/italian-addons-6.1
Diff against target: 1310 lines (+941/-182)
25 files modified
l10n_it_abicab/AUTHORS.txt (+1/-0)
l10n_it_abicab/__init__.py (+24/-0)
l10n_it_abicab/__openerp__.py (+37/-0)
l10n_it_abicab/abicab.py (+46/-0)
l10n_it_abicab/abicab_view.xml (+46/-0)
l10n_it_abicab/i18n/it.po (+37/-0)
l10n_it_account/AUTHORS.txt (+1/-0)
l10n_it_account/__init__.py (+2/-3)
l10n_it_account/__openerp__.py (+4/-4)
l10n_it_account/account/__init__.py (+2/-3)
l10n_it_account/account/account.py (+0/-136)
l10n_it_account/account/partner_view.xml (+0/-27)
l10n_it_fiscalcode/AUTHORS.txt (+10/-0)
l10n_it_fiscalcode/__init__.py (+25/-0)
l10n_it_fiscalcode/__openerp__.py (+46/-0)
l10n_it_fiscalcode/fiscalcode.py (+49/-0)
l10n_it_fiscalcode/fiscalcode_view.xml (+24/-0)
l10n_it_fiscalcode/i18n/it.po (+113/-0)
l10n_it_fiscalcode/i18n/l10n_it_account.pot (+117/-0)
l10n_it_fiscalcode/wizard/__init__.py (+24/-0)
l10n_it_fiscalcode/wizard/compute_fc.py (+125/-0)
l10n_it_fiscalcode/wizard/compute_fc_view.xml (+50/-0)
l10n_it_sale/AUTHORS.txt (+1/-1)
l10n_it_sale/partner/partner_view.xml (+7/-8)
l10n_it_withholding_tax/i18n/it.po (+150/-0)
To merge this branch: bzr merge lp:~openobject-italia-core-devs/openobject-italia/add_abi_cab
Reviewer Review Type Date Requested Status
Lorenzo Battistini Disapprove
Review via email: mp+129575@code.launchpad.net

This proposal supersedes a proposal from 2012-10-11.

This proposal has been superseded by a proposal from 2012-10-13.

Description of the change

[Add] Abi/Cab code
[Add] New fiscal Code Management
[Add] l10n_it_ricevute_bancarie it translation
[Mod] l10n_it_account removed the fiscal code management.

To post a comment you must log in.
207. By Franco Tampieri

[Fix] Add some usability improvement

Revision history for this message
Lorenzo Battistini (elbati) wrote : Posted in a previous version of this proposal
review: Disapprove
Revision history for this message
Lorenzo Battistini (elbati) wrote :
review: Disapprove
208. By Lorenzo Battistini

[fix] reverting l10n_it_account to 6.1 version

209. By Lorenzo Battistini

[fix] l10n_it_account reverted

210. By Lorenzo Battistini

[FIX] l10n_it_fiscalcode - view

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== added directory 'l10n_it_abicab'
=== added file 'l10n_it_abicab/AUTHORS.txt'
--- l10n_it_abicab/AUTHORS.txt 1970-01-01 00:00:00 +0000
+++ l10n_it_abicab/AUTHORS.txt 2012-10-13 22:49:20 +0000
@@ -0,0 +1,1 @@
1Franco Tampieri <franco.tampieri@agilebg.com>
02
=== added file 'l10n_it_abicab/__init__.py'
--- l10n_it_abicab/__init__.py 1970-01-01 00:00:00 +0000
+++ l10n_it_abicab/__init__.py 2012-10-13 22:49:20 +0000
@@ -0,0 +1,24 @@
1# -*- encoding: utf-8 -*-
2##############################################################################
3#
4# OpenERP, Open Source Management Solution
5# Copyright (C) 2012
6# Associazione OpenERP Italia (<http://www.openerp-italia.org>)
7#
8# This program is free software: you can redistribute it and/or modify
9# it under the terms of the GNU Affero General Public License as
10# published by the Free Software Foundation, either version 3 of the
11# License, or (at your option) any later version.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU Affero General Public License for more details.
17#
18# You should have received a copy of the GNU Affero General Public License
19# along with this program. If not, see <http://www.gnu.org/licenses/>.
20#
21#############################################################################
22
23import abicab
24
025
=== added file 'l10n_it_abicab/__openerp__.py'
--- l10n_it_abicab/__openerp__.py 1970-01-01 00:00:00 +0000
+++ l10n_it_abicab/__openerp__.py 2012-10-13 22:49:20 +0000
@@ -0,0 +1,37 @@
1# -*- encoding: utf-8 -*-
2##############################################################################
3#
4# OpenERP, Open Source Management Solution
5# Copyright (C) 2012
6# Associazione OpenERP Italia (<http://www.openerp-italia.org>)
7#
8# This program is free software: you can redistribute it and/or modify
9# it under the terms of the GNU Affero General Public License as
10# published by the Free Software Foundation, either version 3 of the
11# License, or (at your option) any later version.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU Affero General Public License for more details.
17#
18# You should have received a copy of the GNU Affero General Public License
19# along with this program. If not, see <http://www.gnu.org/licenses/>.
20#
21#############################################################################
22
23{
24 'name': 'Italian Localisation - Base Bank ABI/CAB codes',
25 'version': '1.0',
26 'category': 'Localisation/Italy',
27 'description': """
28 Insert in the res.bank model the proprieties of the ABI/CAB
29 """,
30 'author': 'OpenERP Italian Community',
31 'depends': ['base'],
32 'website': 'http://www.openerp-italia.org/',
33 'update_xml': ['abicab_view.xml'],
34 'installable': True,
35 'active': False,
36 'certificate': '',
37}
0\ No newline at end of file38\ No newline at end of file
139
=== added file 'l10n_it_abicab/abicab.py'
--- l10n_it_abicab/abicab.py 1970-01-01 00:00:00 +0000
+++ l10n_it_abicab/abicab.py 2012-10-13 22:49:20 +0000
@@ -0,0 +1,46 @@
1# -*- encoding: utf-8 -*-
2##############################################################################
3#
4# OpenERP, Open Source Management Solution
5# Copyright (C) 2012
6# Associazione OpenERP Italia (<http://www.openerp-italia.org>)
7#
8# This program is free software: you can redistribute it and/or modify
9# it under the terms of the GNU Affero General Public License as
10# published by the Free Software Foundation, either version 3 of the
11# License, or (at your option) any later version.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU Affero General Public License for more details.
17#
18# You should have received a copy of the GNU Affero General Public License
19# along with this program. If not, see <http://www.gnu.org/licenses/>.
20#
21#############################################################################
22
23from osv import fields, osv
24
25class res_bank(osv.osv):
26 _inherit = "res.bank"
27 _columns = {
28 'abi': fields.char('ABI', size=5),
29 'cab': fields.char('CAB', size=5),
30 }
31
32class res_partner_bank(osv.osv):
33 _inherit = "res.partner.bank"
34 _columns = {
35 'bank_abi': fields.char('ABI', size=5),
36 'bank_cab': fields.char('CAB', size=5),
37 }
38
39 def onchange_bank_id(self, cr, uid, ids, bank_id, context=None):
40 result = super(res_partner_bank, self).onchange_bank_id(cr, uid, ids, bank_id, context=context)
41 if bank_id:
42 bank = self.pool.get('res.bank').browse(cr, uid, bank_id, context=context)
43 result['value']['bank_abi'] = bank.abi
44 result['value']['bank_cab'] = bank.cab
45 return result
46
047
=== added file 'l10n_it_abicab/abicab_view.xml'
--- l10n_it_abicab/abicab_view.xml 1970-01-01 00:00:00 +0000
+++ l10n_it_abicab/abicab_view.xml 2012-10-13 22:49:20 +0000
@@ -0,0 +1,46 @@
1<?xml version="1.0" ?>
2<openerp>
3 <data>
4
5 <record id="view_bank_tree_abicab" model="ir.ui.view">
6 <field name="name">res.bank.tree.abicab</field>
7 <field name="model">res.bank</field>
8 <field name="inherit_id" ref="base.view_res_bank_tree"/>
9 <field name="arch" type="xml">
10 <field name="name" position="after">
11 <field name="abi"/>
12 <field name="cab"/>
13 </field>
14 </field>
15 </record>
16
17 <record id="view_bank_form_abicab" model="ir.ui.view">
18 <field name="name">res.bank.form.abicab</field>
19 <field name="model">res.bank</field>
20 <field name="inherit_id" ref="base.view_res_bank_form"/>
21 <field name="arch" type="xml">
22 <field name="name" position="after">
23 <newline/>
24 <separator string="Bank Details" colspan="6"/>
25 <group colspan="6" col="6">
26 <field name="abi"/>
27 <field name="cab"/>
28 </group>
29 </field>
30 </field>
31 </record>
32
33 <record id="view_partner_bank_form_abicab" model="ir.ui.view">
34 <field name="name">res.partner.bank.form</field>
35 <field name="model">res.partner</field>
36 <field name="inherit_id" ref="base.view_partner_form"/>
37 <field name="arch" type="xml">
38 <field name="bank_name" position="after">
39 <field name="bank_abi"/>
40 <field name="bank_cab"/>
41 </field>
42 </field>
43 </record>
44
45 </data>
46</openerp>
0\ No newline at end of file47\ No newline at end of file
148
=== added directory 'l10n_it_abicab/i18n'
=== added file 'l10n_it_abicab/i18n/it.mo'
2Binary files l10n_it_abicab/i18n/it.mo 1970-01-01 00:00:00 +0000 and l10n_it_abicab/i18n/it.mo 2012-10-13 22:49:20 +0000 differ49Binary files l10n_it_abicab/i18n/it.mo 1970-01-01 00:00:00 +0000 and l10n_it_abicab/i18n/it.mo 2012-10-13 22:49:20 +0000 differ
=== added file 'l10n_it_abicab/i18n/it.po'
--- l10n_it_abicab/i18n/it.po 1970-01-01 00:00:00 +0000
+++ l10n_it_abicab/i18n/it.po 2012-10-13 22:49:20 +0000
@@ -0,0 +1,37 @@
1# Translation of OpenERP Server.
2# This file contains the translation of the following modules:
3# * l10n_it_abicab
4#
5msgid ""
6msgstr ""
7"Project-Id-Version: OpenERP Server 6.0.3\n"
8"Report-Msgid-Bugs-To: support@openerp.com\n"
9"POT-Creation-Date: 2011-12-29 13:07+0000\n"
10"PO-Revision-Date: 2011-12-29 14:08+0100\n"
11"Last-Translator: Franco Tampieri <info@titdata.it>\n"
12"Language-Team: \n"
13"MIME-Version: 1.0\n"
14"Content-Type: text/plain; charset=UTF-8\n"
15"Content-Transfer-Encoding: 8bit\n"
16"Plural-Forms: \n"
17
18#. module: l10n_it_abicab
19#: field:res.bank,abi:0
20msgid "ABI"
21msgstr "ABI"
22
23#. module: l10n_it_abicab
24#: view:res.bank:0
25msgid "Bank Details"
26msgstr "Dettagli Banca"
27
28#. module: l10n_it_abicab
29#: model:ir.model,name:l10n_it_abicab.model_res_bank
30msgid "Bank"
31msgstr "Banca"
32
33#. module: l10n_it_abicab
34#: field:res.bank,cab:0
35msgid "CAB"
36msgstr "CAB"
37
038
=== modified file 'l10n_it_account/AUTHORS.txt'
--- l10n_it_account/AUTHORS.txt 2010-09-22 13:43:42 +0000
+++ l10n_it_account/AUTHORS.txt 2012-10-13 22:49:20 +0000
@@ -6,4 +6,5 @@
6Giovanni Barzan <giovanni.barzan@gmail.com>6Giovanni Barzan <giovanni.barzan@gmail.com>
7Lorenzo Battistini <lorenzo.battistini@albatos.com>7Lorenzo Battistini <lorenzo.battistini@albatos.com>
8Roberto Onnis <onnis.roberto@gmail.com>8Roberto Onnis <onnis.roberto@gmail.com>
9Franco Tampieri <franco.tampieri@agilebg.com>
910
1011
=== modified file 'l10n_it_account/__init__.py'
--- l10n_it_account/__init__.py 2012-03-09 08:52:48 +0000
+++ l10n_it_account/__init__.py 2012-10-13 22:49:20 +0000
@@ -1,8 +1,8 @@
1# -*- coding: utf-8 -*-1# -*- coding: utf-8 -*-
2##############################################################################2##############################################################################
3# 3#
4# Copyright (C) 2010 Associazione OpenERP Italia4# Copyright (C) 2010 Associazione OpenERP Italia
5# (<http://www.openerp-italia.org>). 5# (<http://www.openerp-italia.org>).
6# All Rights Reserved6# All Rights Reserved
7#7#
8# This program is free software: you can redistribute it and/or modify8# This program is free software: you can redistribute it and/or modify
@@ -21,5 +21,4 @@
21##############################################################################21##############################################################################
2222
23import account23import account
24# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
2524
2625
=== modified file 'l10n_it_account/__openerp__.py'
--- l10n_it_account/__openerp__.py 2012-03-09 08:52:48 +0000
+++ l10n_it_account/__openerp__.py 2012-10-13 22:49:20 +0000
@@ -1,8 +1,8 @@
1# -*- coding: utf-8 -*-1# -*- coding: utf-8 -*-
2##############################################################################2##############################################################################
3# 3#
4# Copyright (C) 2010-2012 Associazione OpenERP Italia4# Copyright (C) 2010-2012 Associazione OpenERP Italia
5# (<http://www.openerp-italia.org>). 5# (<http://www.openerp-italia.org>).
6# All Rights Reserved6# All Rights Reserved
7#7#
8# This program is free software: you can redistribute it and/or modify8# This program is free software: you can redistribute it and/or modify
@@ -34,8 +34,8 @@
34 'author': 'OpenERP Italian Community',34 'author': 'OpenERP Italian Community',
35 'website': 'http://www.openerp-italia.org',35 'website': 'http://www.openerp-italia.org',
36 'license': 'AGPL-3',36 'license': 'AGPL-3',
37 "depends" : ['account','base_vat','account_chart','base_iban', 'l10n_it_base'],37 "depends" : ['account','base_vat','account_chart','base_iban'],
38 "init_xml" : ['account/partner_view.xml'],38 "init_xml" : [],
39 "update_xml" : [],39 "update_xml" : [],
40 "demo_xml" : [],40 "demo_xml" : [],
41 "active": False,41 "active": False,
4242
=== modified file 'l10n_it_account/account/__init__.py'
--- l10n_it_account/account/__init__.py 2012-03-09 08:52:48 +0000
+++ l10n_it_account/account/__init__.py 2012-10-13 22:49:20 +0000
@@ -1,8 +1,8 @@
1# -*- coding: utf-8 -*-1# -*- coding: utf-8 -*-
2##############################################################################2##############################################################################
3# 3#
4# Copyright (C) 2010 Associazione OpenERP Italia4# Copyright (C) 2010 Associazione OpenERP Italia
5# (<http://www.openerp-italia.org>). 5# (<http://www.openerp-italia.org>).
6# All Rights Reserved6# All Rights Reserved
7#7#
8# This program is free software: you can redistribute it and/or modify8# This program is free software: you can redistribute it and/or modify
@@ -20,5 +20,4 @@
20#20#
21##############################################################################21##############################################################################
2222
23import account
24import invoice23import invoice
2524
=== removed file 'l10n_it_account/account/account.py'
--- l10n_it_account/account/account.py 2012-03-09 08:52:48 +0000
+++ l10n_it_account/account/account.py 1970-01-01 00:00:00 +0000
@@ -1,136 +0,0 @@
1# -*- coding: utf-8 -*-
2##############################################################################
3#
4# Copyright (C) 2010-2012 Associazione OpenERP Italia
5# (<http://www.openerp-italia.org>).
6# All Rights Reserved
7#
8# This program is free software: you can redistribute it and/or modify
9# it under the terms of the GNU Affero General Public License as published by
10# the Free Software Foundation, either version 3 of the License, or
11# (at your option) any later version.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU General Public License for more details.
17#
18# You should have received a copy of the GNU Affero General Public License
19# along with this program. If not, see <http://www.gnu.org/licenses/>.
20#
21##############################################################################
22
23from osv import fields, osv
24import datetime
25
26class res_partner(osv.osv):
27 _inherit = 'res.partner'
28
29 def check_fiscalcode(self, cr, uid, ids, context={}):
30
31 for partner in self.browse(cr, uid, ids):
32 if not partner.fiscalcode:
33 return True
34 if len(partner.fiscalcode) != 16:
35 return False
36
37 return True
38
39 _columns = {
40 'fiscalcode': fields.char('Fiscal Code', size=16, help="Italian Fiscal Code"),
41 'fiscalcode_surname': fields.char('Surname', size=64),
42 'fiscalcode_firstname': fields.char('First name', size=64),
43 'birth_date': fields.date('Date of birth'),
44 'birth_city': fields.many2one('res.city', 'City of birth'),
45 'sex': fields.selection([
46 ('M','Male'),
47 ('F', 'Female'),
48 ], "Sex"),
49 }
50 #_constraints = [(check_fiscalcode, "The fiscal code doesn't seem to be correct.", ["fiscalcode"])]
51
52
53 def _codicefiscale(self, cognome, nome, giornonascita, mesenascita, annonascita,
54 sesso, cittanascita):
55
56 MESI = 'ABCDEHLMPRST'
57 CONSONANTI = 'BCDFGHJKLMNPQRSTVWXYZ'
58 VOCALI = 'AEIOU'
59 LETTERE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
60 REGOLECONTROLLO = {
61 'A':(0,1), 'B':(1,0), 'C':(2,5), 'D':(3,7), 'E':(4,9),
62 'F':(5,13), 'G':(6,15), 'H':(7,17), 'I':(8,19), 'J':(9,21),
63 'K':(10,2), 'L':(11,4), 'M':(12,18), 'N':(13,20), 'O':(14,11),
64 'P':(15,3), 'Q':(16,6), 'R':(17,8), 'S':(18,12), 'T':(19,14),
65 'U':(20,16), 'V':(21,10), 'W':(22,22), 'X':(23,25), 'Y':(24,24),
66 'Z':(25,23),
67 '0':(0,1), '1':(1,0), '2':(2,5), '3':(3,7), '4':(4,9),
68 '5':(5,13), '6':(6,15), '7':(7,17), '8':(8,19), '9':(9,21)
69 }
70 ###
71 # Funzioni
72 ##
73
74 def _surname(stringa):
75 """Ricava, da stringa, 3 lettere in base alla convenzione dei CF."""
76 cons = [c for c in stringa if c in CONSONANTI]
77 voc = [c for c in stringa if c in VOCALI]
78 chars=cons+voc
79 if len(chars)<3:
80 chars+=['X', 'X']
81 return chars[:3]
82
83 def _name(stringa):
84 """Ricava, da stringa, 3 lettere in base alla convenzione dei CF."""
85 cons = [c for c in stringa if c in CONSONANTI]
86 voc = [c for c in stringa if c in VOCALI]
87 if len(cons)>3:
88 cons = [cons[0]] +[cons[2]] + [cons[3]]
89 chars=cons+voc
90 if len(chars)<3:
91 chars+=['X', 'X']
92 return chars[:3]
93
94 def _datan(giorno, mese, anno, sesso):
95 """Restituisce il campo data del CF."""
96 chars = (list(anno[-2:]) + [MESI[int(mese)-1]])
97 gn=int(giorno)
98 if sesso=='F':
99 gn+=40
100 chars += list("%02d" % gn)
101 return chars
102
103 def _codicecontrollo(c):
104 """Restituisce il codice di controllo, l'ultimo carattere del CF."""
105 sommone = 0
106 for i, car in enumerate(c):
107 j = 1 - i % 2
108 sommone += REGOLECONTROLLO[car][j]
109 resto = sommone % 26
110 return [LETTERE[resto]]
111
112 """Restituisce il CF costruito sulla base degli argomenti."""
113 nome=nome.upper()
114 cognome=cognome.upper()
115 sesso=sesso.upper()
116 cittanascita = cittanascita.upper()
117 chars = (_surname(cognome) +
118 _name(nome) +
119 _datan(giornonascita, mesenascita, annonascita, sesso) +
120 list(cittanascita))
121 chars += _codicecontrollo(chars)
122 return ''.join(chars)
123
124 def compute_fiscal_code(self, cr, uid, ids, context):
125 partners = self.browse(cr, uid, ids, context)
126 for partner in partners:
127 if not partner.fiscalcode_surname or not partner.fiscalcode_firstname or not partner.birth_date or not partner.birth_city or not partner.sex:
128 raise osv.except_osv('Error', 'One or more fields are missing')
129 birth_date = datetime.datetime.strptime(partner.birth_date, "%Y-%m-%d")
130 CF = self._codicefiscale(partner.fiscalcode_surname, partner.fiscalcode_firstname, str(birth_date.day),
131 str(birth_date.month), str(birth_date.year), partner.sex,
132 partner.birth_city.cadaster_code)
133 self.write(cr, uid, partner.id, {'fiscalcode': CF})
134 return True
135
136res_partner()
1370
=== removed file 'l10n_it_account/account/partner_view.xml'
--- l10n_it_account/account/partner_view.xml 2010-10-28 16:05:31 +0000
+++ l10n_it_account/account/partner_view.xml 1970-01-01 00:00:00 +0000
@@ -1,27 +0,0 @@
1<?xml version="1.0" ?>
2<openerp>
3 <data>
4
5 <record id="view_partner_form_fiscalcode_data" model="ir.ui.view">
6 <field name="name">res.partner.fiscalcode.data</field>
7 <field name="model">res.partner</field>
8 <field name="inherit_id" ref="base.view_partner_form"/>
9 <field name="arch" type="xml">
10 <page string="Notes" position="after" >
11 <page string="Fiscal Code" >
12 <separator colspan="4"/>
13 <field name="fiscalcode"/>
14 <newline/>
15 <separator string="Compute Fiscal Code" colspan="4"/>
16 <field name="fiscalcode_surname"/>
17 <field name="fiscalcode_firstname"/>
18 <field name="birth_date"/>
19 <field name="birth_city"/>
20 <field name="sex"/>
21 <button name="compute_fiscal_code" type="object" string="Compute"/>
22 </page>
23 </page>
24 </field>
25 </record>
26 </data>
27</openerp>
280
=== added directory 'l10n_it_fiscalcode'
=== added file 'l10n_it_fiscalcode/AUTHORS.txt'
--- l10n_it_fiscalcode/AUTHORS.txt 1970-01-01 00:00:00 +0000
+++ l10n_it_fiscalcode/AUTHORS.txt 2012-10-13 22:49:20 +0000
@@ -0,0 +1,10 @@
1Davide Corio <davide.corio@domsense.com>
2Luca Subiaco <subluca@gmail.com>
3Simone Orsi <simone.orsi@domsense.com>
4Mario Riva <mario.riva@domsense.com>
5Mauro Soligo <mauro.soligo@katodo.com>
6Giovanni Barzan <giovanni.barzan@gmail.com>
7Lorenzo Battistini <lorenzo.battistini@albatos.com>
8Roberto Onnis <onnis.roberto@gmail.com>
9Franco Tampieri <franco.tampieri@agilebg.com>
10
011
=== added file 'l10n_it_fiscalcode/__init__.py'
--- l10n_it_fiscalcode/__init__.py 1970-01-01 00:00:00 +0000
+++ l10n_it_fiscalcode/__init__.py 2012-10-13 22:49:20 +0000
@@ -0,0 +1,25 @@
1# -*- coding: utf-8 -*-
2##############################################################################
3#
4# Copyright (C) 2012 Associazione OpenERP Italia
5# (<http://www.openerp-italia.org>).
6# All Rights Reserved
7#
8# This program is free software: you can redistribute it and/or modify
9# it under the terms of the GNU Affero General Public License as published by
10# the Free Software Foundation, either version 3 of the License, or
11# (at your option) any later version.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU General Public License for more details.
17#
18# You should have received a copy of the GNU Affero General Public License
19# along with this program. If not, see <http://www.gnu.org/licenses/>.
20#
21##############################################################################
22
23import fiscalcode
24import wizard
25
026
=== added file 'l10n_it_fiscalcode/__openerp__.py'
--- l10n_it_fiscalcode/__openerp__.py 1970-01-01 00:00:00 +0000
+++ l10n_it_fiscalcode/__openerp__.py 2012-10-13 22:49:20 +0000
@@ -0,0 +1,46 @@
1# -*- coding: utf-8 -*-
2##############################################################################
3#
4# Copyright (C) 2010-2012 Associazione OpenERP Italia
5# (<http://www.openerp-italia.org>).
6# All Rights Reserved
7#
8# This program is free software: you can redistribute it and/or modify
9# it under the terms of the GNU Affero General Public License as published
10# by the Free Software Foundation, either version 3 of the License, or
11# (at your option) any later version.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU General Public License for more details.
17#
18# You should have received a copy of the GNU Affero General Public License
19# along with this program. If not, see <http://www.gnu.org/licenses/>.
20#
21##############################################################################
22{
23 'name': 'Italian Localisation - Fiscal Code',
24 'version': '0.1',
25 'category': 'Localisation/Italy',
26 'description': """
27This module customizes OpenERP in order to fit italian laws and mores - Account version
28
29Functionalities:
30
31- Fiscal code computation for partner
32
33""",
34 'author': 'OpenERP Italian Community',
35 'website': 'http://www.openerp-italia.org',
36 'license': 'AGPL-3',
37 "depends" : ['base', 'l10n_it_base'],
38 "init_xml" : [
39 'fiscalcode_view.xml',
40 'wizard/compute_fc_view.xml'
41 ],
42 "update_xml" : [],
43 "demo_xml" : [],
44 "active": False,
45 "installable": True
46}
047
=== added file 'l10n_it_fiscalcode/fiscalcode.py'
--- l10n_it_fiscalcode/fiscalcode.py 1970-01-01 00:00:00 +0000
+++ l10n_it_fiscalcode/fiscalcode.py 2012-10-13 22:49:20 +0000
@@ -0,0 +1,49 @@
1# -*- coding: utf-8 -*-
2##############################################################################
3#
4# Copyright (C) 2010-2012 Associazione OpenERP Italia
5# (<http://www.openerp-italia.org>).
6# All Rights Reserved
7#
8# This program is free software: you can redistribute it and/or modify
9# it under the terms of the GNU Affero General Public License as published by
10# the Free Software Foundation, either version 3 of the License, or
11# (at your option) any later version.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU General Public License for more details.
17#
18# You should have received a copy of the GNU Affero General Public License
19# along with this program. If not, see <http://www.gnu.org/licenses/>.
20#
21##############################################################################
22
23from osv import fields, osv
24import tools
25import pooler
26from tools.translate import _
27import datetime
28
29class res_partner(osv.osv):
30 _inherit = 'res.partner'
31
32 def check_fiscalcode(self, cr, uid, ids, context={}):
33
34 for partner in self.browse(cr, uid, ids):
35 if not partner.fiscalcode:
36 return True
37 elif len(partner.fiscalcode) != 16 and partner.individual:
38 return False
39 else:
40 return True
41
42 _columns = {
43 'fiscalcode': fields.char('Fiscal Code', size=16, help="Italian Fiscal Code"),
44 'individual': fields.boolean('Individual', help="If checked the C.F. is referred to a Individual Person"),
45 }
46 _defaults = {
47 'individual': False,
48 }
49 _constraints = [(check_fiscalcode, "The fiscal code doesn't seem to be correct.", ["fiscalcode"])]
0\ No newline at end of file50\ No newline at end of file
151
=== added file 'l10n_it_fiscalcode/fiscalcode_view.xml'
--- l10n_it_fiscalcode/fiscalcode_view.xml 1970-01-01 00:00:00 +0000
+++ l10n_it_fiscalcode/fiscalcode_view.xml 2012-10-13 22:49:20 +0000
@@ -0,0 +1,24 @@
1<?xml version="1.0" ?>
2<openerp>
3 <data>
4
5 <record id="view_partner_form_fiscalcode_data" model="ir.ui.view">
6 <field name="name">res.partner.fiscalcode.data</field>
7 <field name="model">res.partner</field>
8 <field name="inherit_id" ref="base.view_partner_form"/>
9 <field name="arch" type="xml">
10 <field name="property_account_payable" position="after">
11 <separator string="Fiscal Data" colspan="2"/>
12 <group colspan="2" col="6">
13 <field name="fiscalcode"/>
14 <field name="individual" colspan="1" groups="base.group_extended" />
15 </group>
16 </field>
17 <field name="property_account_position" position="before">
18 <separator string="Payment Mode" colspan="2"/>
19 </field>
20 </field>
21 </record>
22
23 </data>
24</openerp>
025
=== added directory 'l10n_it_fiscalcode/i18n'
=== added file 'l10n_it_fiscalcode/i18n/it.mo'
1Binary files l10n_it_fiscalcode/i18n/it.mo 1970-01-01 00:00:00 +0000 and l10n_it_fiscalcode/i18n/it.mo 2012-10-13 22:49:20 +0000 differ26Binary files l10n_it_fiscalcode/i18n/it.mo 1970-01-01 00:00:00 +0000 and l10n_it_fiscalcode/i18n/it.mo 2012-10-13 22:49:20 +0000 differ
=== added file 'l10n_it_fiscalcode/i18n/it.po'
--- l10n_it_fiscalcode/i18n/it.po 1970-01-01 00:00:00 +0000
+++ l10n_it_fiscalcode/i18n/it.po 2012-10-13 22:49:20 +0000
@@ -0,0 +1,113 @@
1# Translation of OpenERP Server.
2# This file contains the translation of the following modules:
3# * l10n_it_fiscalcode
4#
5msgid ""
6msgstr ""
7"Project-Id-Version: OpenERP Server 6.1\n"
8"Report-Msgid-Bugs-To: \n"
9"POT-Creation-Date: 2012-10-13 21:44+0000\n"
10"PO-Revision-Date: 2012-10-13 23:49+0100\n"
11"Last-Translator: Franco Tampieri <info@francotampieri.com>\n"
12"Language-Team: \n"
13"MIME-Version: 1.0\n"
14"Content-Type: text/plain; charset=UTF-8\n"
15"Content-Transfer-Encoding: 8bit\n"
16"Plural-Forms: \n"
17
18#. module: l10n_it_fiscalcode
19#: field:wizard.compute.fc,fiscalcode_surname:0
20msgid "Surname"
21msgstr "Cognome"
22
23#. module: l10n_it_fiscalcode
24#: model:ir.model,name:l10n_it_fiscalcode.model_res_partner
25msgid "Partner"
26msgstr "Cliente"
27
28#. module: l10n_it_fiscalcode
29#: help:res.partner,individual:0
30msgid "If checked the C.F. is referred to a Individual Person"
31msgstr "Se selezionato il Cofice Fiscale farร  riferimento a quello di una Persona Fisica"
32
33#. module: l10n_it_fiscalcode
34#: view:wizard.compute.fc:0
35msgid "Compute"
36msgstr "Calcola"
37
38#. module: l10n_it_fiscalcode
39#: field:wizard.compute.fc,birth_date:0
40msgid "Date of birth"
41msgstr "Data di nascita"
42
43#. module: l10n_it_fiscalcode
44#: view:res.partner:0
45msgid "Payment Mode"
46msgstr "Modalitร  di Pagamento"
47
48#. module: l10n_it_fiscalcode
49#: field:wizard.compute.fc,sex:0
50msgid "Sex"
51msgstr "Sesso"
52
53#. module: l10n_it_fiscalcode
54#: field:wizard.compute.fc,fiscalcode_firstname:0
55msgid "First name"
56msgstr "Nome"
57
58#. module: l10n_it_fiscalcode
59#: view:wizard.compute.fc:0
60msgid "Fiscal Code"
61msgstr "Codice Fiscale"
62
63#. module: l10n_it_fiscalcode
64#: field:res.partner,individual:0
65msgid "Individual"
66msgstr "Persona Fisica"
67
68#. module: l10n_it_fiscalcode
69#: view:wizard.compute.fc:0
70msgid "Individual Data"
71msgstr "Dati Persona Fisica"
72
73#. module: l10n_it_fiscalcode
74#: selection:wizard.compute.fc,sex:0
75msgid "Female"
76msgstr "Femmina"
77
78#. module: l10n_it_fiscalcode
79#: view:res.partner:0
80msgid "Fiscal Data"
81msgstr "Dati Fiscali"
82
83#. module: l10n_it_fiscalcode
84#: view:wizard.compute.fc:0
85msgid "Cancel"
86msgstr "Annulla"
87
88#. module: l10n_it_fiscalcode
89#: model:ir.actions.act_window,name:l10n_it_fiscalcode.action_compute_fc
90#: model:ir.model,name:l10n_it_fiscalcode.model_wizard_compute_fc
91msgid "Compute Fiscal Code"
92msgstr "Calcola il Codice Fiscale"
93
94#. module: l10n_it_fiscalcode
95#: view:res.partner:0
96msgid "Compute F.C."
97msgstr "Calcola C.F."
98
99#. module: l10n_it_fiscalcode
100#: selection:wizard.compute.fc,sex:0
101msgid "Male"
102msgstr "Maschio"
103
104#. module: l10n_it_fiscalcode
105#: field:wizard.compute.fc,birth_city:0
106msgid "City of birth"
107msgstr "Cittร  di Nascita"
108
109#. module: l10n_it_fiscalcode
110#: constraint:res.partner:0
111msgid "The fiscal code doesn't seem to be correct."
112msgstr "Il Codice Fiscale non sembra corretto per una Persona Fisica."
113
0114
=== added file 'l10n_it_fiscalcode/i18n/l10n_it_account.pot'
--- l10n_it_fiscalcode/i18n/l10n_it_account.pot 1970-01-01 00:00:00 +0000
+++ l10n_it_fiscalcode/i18n/l10n_it_account.pot 2012-10-13 22:49:20 +0000
@@ -0,0 +1,117 @@
1# Translation of OpenERP Server.
2# This file contains the translation of the following modules:
3# * l10n_it_account
4#
5msgid ""
6msgstr ""
7"Project-Id-Version: OpenERP Server 6.0.2\n"
8"Report-Msgid-Bugs-To: support@openerp.com\n"
9"POT-Creation-Date: 2011-05-05 16:44+0000\n"
10"PO-Revision-Date: 2011-05-05 16:44+0000\n"
11"Last-Translator: <>\n"
12"Language-Team: \n"
13"MIME-Version: 1.0\n"
14"Content-Type: text/plain; charset=UTF-8\n"
15"Content-Transfer-Encoding: \n"
16"Plural-Forms: \n"
17
18#. module: l10n_it_account
19#: code:addons/l10n_it_account/account/invoice.py:45
20#, python-format
21msgid "Cannot create invoice! Post the invoice with a greater date"
22msgstr ""
23
24#. module: l10n_it_account
25#: view:res.partner:0
26msgid "Compute"
27msgstr ""
28
29#. module: l10n_it_account
30#: model:ir.model,name:l10n_it_account.model_account_invoice
31msgid "Invoice"
32msgstr ""
33
34#. module: l10n_it_account
35#: field:res.partner,birth_date:0
36msgid "Date of birth"
37msgstr ""
38
39#. module: l10n_it_account
40#: view:res.partner:0
41msgid "Notes"
42msgstr ""
43
44#. module: l10n_it_account
45#: model:ir.module.module,description:l10n_it_account.module_meta_information
46msgid "This module customizes OpenERP in order to fit italian laws and mores - Account version\n"
47"\n"
48"Functionalities:\n"
49"\n"
50"- Fiscal code computation for partner\n"
51"- Check invoice date consistency\n"
52"\n"
53""
54msgstr ""
55
56#. module: l10n_it_account
57#: help:res.partner,fiscalcode:0
58msgid "Italian Fiscal Code"
59msgstr ""
60
61#. module: l10n_it_account
62#: field:res.partner,sex:0
63msgid "Sex"
64msgstr ""
65
66#. module: l10n_it_account
67#: field:res.partner,fiscalcode_surname:0
68msgid "Surname"
69msgstr ""
70
71#. module: l10n_it_account
72#: field:res.partner,fiscalcode_firstname:0
73msgid "First name"
74msgstr ""
75
76#. module: l10n_it_account
77#: view:res.partner:0
78#: field:res.partner,fiscalcode:0
79msgid "Fiscal Code"
80msgstr ""
81
82#. module: l10n_it_account
83#: model:ir.module.module,shortdesc:l10n_it_account.module_meta_information
84msgid "Italian Localisation - Account"
85msgstr ""
86
87#. module: l10n_it_account
88#: selection:res.partner,sex:0
89msgid "Female"
90msgstr ""
91
92#. module: l10n_it_account
93#: model:ir.model,name:l10n_it_account.model_res_partner
94msgid "Partner"
95msgstr ""
96
97#. module: l10n_it_account
98#: view:res.partner:0
99msgid "Compute Fiscal Code"
100msgstr ""
101
102#. module: l10n_it_account
103#: selection:res.partner,sex:0
104msgid "Male"
105msgstr ""
106
107#. module: l10n_it_account
108#: code:addons/l10n_it_account/account/invoice.py:44
109#, python-format
110msgid "Date Inconsistency"
111msgstr ""
112
113#. module: l10n_it_account
114#: field:res.partner,birth_city:0
115msgid "City of birth"
116msgstr ""
117
0118
=== added directory 'l10n_it_fiscalcode/wizard'
=== added file 'l10n_it_fiscalcode/wizard/__init__.py'
--- l10n_it_fiscalcode/wizard/__init__.py 1970-01-01 00:00:00 +0000
+++ l10n_it_fiscalcode/wizard/__init__.py 2012-10-13 22:49:20 +0000
@@ -0,0 +1,24 @@
1# -*- coding: utf-8 -*-
2##############################################################################
3#
4# Copyright (C) 2012 Associazione OpenERP Italia
5# (<http://www.openerp-italia.org>).
6# All Rights Reserved
7#
8# This program is free software: you can redistribute it and/or modify
9# it under the terms of the GNU Affero General Public License as published by
10# the Free Software Foundation, either version 3 of the License, or
11# (at your option) any later version.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU General Public License for more details.
17#
18# You should have received a copy of the GNU Affero General Public License
19# along with this program. If not, see <http://www.gnu.org/licenses/>.
20#
21##############################################################################
22
23import compute_fc
24
025
=== added file 'l10n_it_fiscalcode/wizard/compute_fc.py'
--- l10n_it_fiscalcode/wizard/compute_fc.py 1970-01-01 00:00:00 +0000
+++ l10n_it_fiscalcode/wizard/compute_fc.py 2012-10-13 22:49:20 +0000
@@ -0,0 +1,125 @@
1# -*- coding: utf-8 -*-
2##############################################################################
3#
4# Copyright (C) 2010-2012 Associazione OpenERP Italia
5# (<http://www.openerp-italia.org>).
6# All Rights Reserved
7#
8# This program is free software: you can redistribute it and/or modify
9# it under the terms of the GNU Affero General Public License as published by
10# the Free Software Foundation, either version 3 of the License, or
11# (at your option) any later version.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU General Public License for more details.
17#
18# You should have received a copy of the GNU Affero General Public License
19# along with this program. If not, see <http://www.gnu.org/licenses/>.
20#
21##############################################################################
22
23from osv import fields, osv
24import tools
25import pooler
26from tools.translate import _
27
28import datetime
29
30class wizard_compute_fc(osv.osv_memory):
31
32 _name = "wizard.compute.fc"
33 _description = "Compute Fiscal Code"
34 _columns = {
35 'fiscalcode_surname': fields.char('Surname', size=64),
36 'fiscalcode_firstname': fields.char('First name', size=64),
37 'birth_date': fields.date('Date of birth'),
38 'birth_city': fields.many2one('res.city', 'City of birth'),
39 'sex': fields.selection([('M','Male'),
40 ('F', 'Female'),
41 ], "Sex"),
42 }
43
44
45 def _codicefiscale(self, cognome, nome, giornonascita, mesenascita, annonascita, sesso, cittanascita):
46
47 MESI = 'ABCDEHLMPRST'
48 CONSONANTI = 'BCDFGHJKLMNPQRSTVWXYZ'
49 VOCALI = 'AEIOU'
50 LETTERE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
51
52 REGOLECONTROLLO = {
53 'A':(0,1), 'B':(1,0), 'C':(2,5), 'D':(3,7), 'E':(4,9),
54 'F':(5,13), 'G':(6,15), 'H':(7,17), 'I':(8,19), 'J':(9,21),
55 'K':(10,2), 'L':(11,4), 'M':(12,18), 'N':(13,20), 'O':(14,11),
56 'P':(15,3), 'Q':(16,6), 'R':(17,8), 'S':(18,12), 'T':(19,14),
57 'U':(20,16), 'V':(21,10), 'W':(22,22), 'X':(23,25), 'Y':(24,24),
58 'Z':(25,23),
59 '0':(0,1), '1':(1,0), '2':(2,5), '3':(3,7), '4':(4,9),
60 '5':(5,13), '6':(6,15), '7':(7,17), '8':(8,19), '9':(9,21)
61 }
62
63 """Funzioni per il calcolo del C.F."""
64 def _surname(stringa):
65 """Ricava, da stringa, 3 lettere in base alla convenzione dei C.F."""
66 cons = [c for c in stringa if c in CONSONANTI]
67 voc = [c for c in stringa if c in VOCALI]
68 chars=cons+voc
69 if len(chars)<3:
70 chars+=['X', 'X']
71 return chars[:3]
72
73 def _name(stringa):
74 """Ricava, da stringa, 3 lettere in base alla convenzione dei C.F."""
75 cons = [c for c in stringa if c in CONSONANTI]
76 voc = [c for c in stringa if c in VOCALI]
77 if len(cons)>3:
78 cons = [cons[0]] +[cons[2]] + [cons[3]]
79 chars=cons+voc
80 if len(chars)<3:
81 chars+=['X', 'X']
82 return chars[:3]
83
84 def _datan(giorno, mese, anno, sesso):
85 """Restituisce il campo data del CF."""
86 chars = (list(anno[-2:]) + [MESI[int(mese)-1]])
87 gn=int(giorno)
88 if sesso=='F':
89 gn+=40
90 chars += list("%02d" % gn)
91 return chars
92
93 def _codicecontrollo(c):
94 """Restituisce il codice di controllo, l'ultimo carattere del C.F."""
95 sommone = 0
96 for i, car in enumerate(c):
97 j = 1 - i % 2
98 sommone += REGOLECONTROLLO[car][j]
99 resto = sommone % 26
100 return [LETTERE[resto]]
101
102 """Restituisce il C.F costruito sulla base degli argomenti."""
103 nome=nome.upper()
104 cognome=cognome.upper()
105 sesso=sesso.upper()
106 cittanascita = cittanascita.upper()
107 chars = (_surname(cognome) +
108 _name(nome) +
109 _datan(giornonascita, mesenascita, annonascita, sesso) +
110 list(cittanascita))
111 chars += _codicecontrollo(chars)
112 return ''.join(chars)
113
114 def compute_fc(self, cr, uid, ids, context):
115 active_id = context.get('active_id', [])
116 form_obj = self.browse(cr, uid, ids, context)
117 for fields in form_obj:
118 if not fields.fiscalcode_surname or not fields.fiscalcode_firstname or not fields.birth_date or not fields.birth_city or not fields.sex:
119 raise osv.except_osv('Error', 'One or more fields are missing')
120 birth_date = datetime.datetime.strptime(fields.birth_date, "%Y-%m-%d")
121 CF = self._codicefiscale(fields.fiscalcode_surname, fields.fiscalcode_firstname, str(birth_date.day),
122 str(birth_date.month), str(birth_date.year), fields.sex,
123 fields.birth_city.cadaster_code)
124 self.pool.get('res.partner').write(cr, uid, active_id, {'fiscalcode': CF, 'individual': True})
125 return {}
0\ No newline at end of file126\ No newline at end of file
1127
=== added file 'l10n_it_fiscalcode/wizard/compute_fc_view.xml'
--- l10n_it_fiscalcode/wizard/compute_fc_view.xml 1970-01-01 00:00:00 +0000
+++ l10n_it_fiscalcode/wizard/compute_fc_view.xml 2012-10-13 22:49:20 +0000
@@ -0,0 +1,50 @@
1<?xml version="1.0" ?>
2<openerp>
3 <data>
4
5 <record id="wizard_compute_fc_form" model="ir.ui.view">
6 <field name="name">wizard.compute.fc.form</field>
7 <field name="model">wizard.compute.fc</field>
8 <field name="type">form</field>
9 <field name="arch" type="xml">
10 <form string="Fiscal Code">
11 <group col="2" width="250">
12 <group string="Individual Data">
13 <field name="fiscalcode_surname" colspan="2" default_focus="1"/>
14 <field name="fiscalcode_firstname" colspan="2"/>
15 <field name="sex" colspan="2"/>
16 <field name="birth_date" colspan="2"/>
17 <field name="birth_city" colspan="2"/>
18 </group>
19 <newline/>
20 <group col="2">
21 <button string="Cancel" special="cancel" icon="gtk-cancel" colspan="1"/>
22 <button name="compute_fc" type="object" string="Compute" colspan="1"/>
23 </group>
24 </group>
25 </form>
26 </field>
27 </record>
28
29 <record id="action_compute_fc" model="ir.actions.act_window">
30 <field name="name">Compute Fiscal Code</field>
31 <field name="type">ir.actions.act_window</field>
32 <field name="res_model">wizard.compute.fc</field>
33 <field name="view_type">form</field>
34 <field name="view_mode">form</field>
35 <field name="target">new</field>
36 </record>
37
38 <record id="view_partner_form_fiscalcode_button" model="ir.ui.view">
39 <field name="name">res.partner.fiscalcode.button</field>
40 <field name="model">res.partner</field>
41 <field name="inherit_id" ref="l10n_it_fiscalcode.view_partner_form_fiscalcode_data"/>
42 <field name="arch" type="xml">
43 <field name="fiscalcode" position="after">
44 <button name="%(l10n_it_fiscalcode.action_compute_fc)d" string="Compute F.C." type="action" icon="gtk-execute"/>
45 </field>
46 </field>
47 </record>
48
49 </data>
50</openerp>
051
=== modified file 'l10n_it_sale/AUTHORS.txt'
--- l10n_it_sale/AUTHORS.txt 2010-09-22 13:43:42 +0000
+++ l10n_it_sale/AUTHORS.txt 2012-10-13 22:49:20 +0000
@@ -6,4 +6,4 @@
6Giovanni Barzan <giovanni.barzan@gmail.com>6Giovanni Barzan <giovanni.barzan@gmail.com>
7Lorenzo Battistini <lorenzo.battistini@albatos.com>7Lorenzo Battistini <lorenzo.battistini@albatos.com>
8Roberto Onnis <onnis.roberto@gmail.com>8Roberto Onnis <onnis.roberto@gmail.com>
99Franco Tampieri <franco.tampieri@agilebg.com>
1010
=== modified file 'l10n_it_sale/partner/partner_view.xml'
--- l10n_it_sale/partner/partner_view.xml 2010-10-10 12:42:33 +0000
+++ l10n_it_sale/partner/partner_view.xml 2012-10-13 22:49:20 +0000
@@ -7,14 +7,13 @@
7 <field name="inherit_id" ref="base.view_partner_form"/>7 <field name="inherit_id" ref="base.view_partner_form"/>
8 <field name="type">form</field>8 <field name="type">form</field>
9 <field name="arch" type="xml">9 <field name="arch" type="xml">
10 <page string="Notes" position="after">10 <page string="Sales &amp; Purchases" position="inside">
11 <page string="Default shipping conditions">11 <group colspan="2" col="2" groups="base.group_extended">
12 <field name="carriage_condition_id"/>12 <separator string="Default shipping conditions" colspan="2"/>
13 <newline/>13 <field name="carriage_condition_id" groups="base.group_extended"/>
14 <field name="goods_description_id"/>14 <field name="goods_description_id" groups="base.group_extended"/>
15 <newline/>15 <field name="transportation_reason_id" groups="base.group_extended"/>
16 <field name="transportation_reason_id"/>16 </group>
17 </page>
18 </page>17 </page>
19 </field>18 </field>
20 </record>19 </record>
2120
=== added file 'l10n_it_withholding_tax/i18n/it.mo'
22Binary files l10n_it_withholding_tax/i18n/it.mo 1970-01-01 00:00:00 +0000 and l10n_it_withholding_tax/i18n/it.mo 2012-10-13 22:49:20 +0000 differ21Binary files l10n_it_withholding_tax/i18n/it.mo 1970-01-01 00:00:00 +0000 and l10n_it_withholding_tax/i18n/it.mo 2012-10-13 22:49:20 +0000 differ
=== added file 'l10n_it_withholding_tax/i18n/it.po'
--- l10n_it_withholding_tax/i18n/it.po 1970-01-01 00:00:00 +0000
+++ l10n_it_withholding_tax/i18n/it.po 2012-10-13 22:49:20 +0000
@@ -0,0 +1,150 @@
1# Translation of OpenERP Server.
2# This file contains the translation of the following modules:
3# * l10n_it_withholding_tax
4#
5msgid ""
6msgstr ""
7"Project-Id-Version: OpenERP Server 6.1\n"
8"Report-Msgid-Bugs-To: \n"
9"POT-Creation-Date: 2012-10-12 15:54+0000\n"
10"PO-Revision-Date: 2012-10-12 18:02+0100\n"
11"Last-Translator: Franco Tampieri <info@francotampieri.com>\n"
12"Language-Team: \n"
13"MIME-Version: 1.0\n"
14"Content-Type: text/plain; charset=UTF-8\n"
15"Content-Transfer-Encoding: 8bit\n"
16"Plural-Forms: \n"
17
18#. module: l10n_it_withholding_tax
19#: code:addons/l10n_it_withholding_tax/account.py:90
20#, python-format
21msgid "The company does not have an associated Withholding Payment Term"
22msgstr "L'Azienda non ha associato nessun Termine di pagamento per le Ritenute"
23
24#. module: l10n_it_withholding_tax
25#: constraint:res.company:0
26msgid "Error! You can not create recursive companies."
27msgstr "Errore! Non รจ possibile creare aziende ricorsive."
28
29#. module: l10n_it_withholding_tax
30#: code:addons/l10n_it_withholding_tax/account.py:106
31#, python-format
32msgid "The payment term %s does not have due dates"
33msgstr "The payment term %s does not have due dates"
34
35#. module: l10n_it_withholding_tax
36#: code:addons/l10n_it_withholding_tax/account.py:102
37#, python-format
38msgid "The payment term %s has too many due dates"
39msgstr "The payment term %s has too many due dates"
40
41#. module: l10n_it_withholding_tax
42#: view:account.voucher:0
43msgid "Withholding tax entries"
44msgstr "Voci Tasse Ritenute"
45
46#. module: l10n_it_withholding_tax
47#: field:account.invoice,has_withholding:0
48msgid "With withholding tax"
49msgstr "Con tasse ritenute"
50
51#. module: l10n_it_withholding_tax
52#: field:res.company,withholding_payment_term_id:0
53msgid "Withholding tax Payment Term"
54msgstr "Termini Pagamento Ritenute"
55
56#. module: l10n_it_withholding_tax
57#: field:res.company,withholding_account_id:0
58msgid "Withholding account"
59msgstr "Conto Ritenute"
60
61#. module: l10n_it_withholding_tax
62#: sql_constraint:res.company:0
63msgid "The company name must be unique !"
64msgstr "Il nome azienda deve essere unico!"
65
66#. module: l10n_it_withholding_tax
67#: field:account.invoice,net_pay:0
68msgid "Net Pay"
69msgstr "Netto da Pagare"
70
71#. module: l10n_it_withholding_tax
72#: model:ir.model,name:l10n_it_withholding_tax.model_res_company
73msgid "Companies"
74msgstr "Aziende"
75
76#. module: l10n_it_withholding_tax
77#: code:addons/l10n_it_withholding_tax/account.py:92
78#, python-format
79msgid "The company does not have an associated Withholding journal"
80msgstr "L'Azienda non ha un Sezionale associato per le Ritenute"
81
82#. module: l10n_it_withholding_tax
83#: code:addons/l10n_it_withholding_tax/account.py:86
84#: code:addons/l10n_it_withholding_tax/account.py:88
85#: code:addons/l10n_it_withholding_tax/account.py:90
86#: code:addons/l10n_it_withholding_tax/account.py:92
87#: code:addons/l10n_it_withholding_tax/account.py:101
88#: code:addons/l10n_it_withholding_tax/account.py:105
89#, python-format
90msgid "Error"
91msgstr "Errore"
92
93#. module: l10n_it_withholding_tax
94#: code:addons/l10n_it_withholding_tax/account.py:86
95#, python-format
96msgid "Can't handle withholding tax with voucher of type other than payment"
97msgstr "Can't handle withholding tax with voucher of type other than payment"
98
99#. module: l10n_it_withholding_tax
100#: help:res.company,withholding_account_id:0
101msgid "Payable account used for amount due to tax authority"
102msgstr "Payable account used for amount due to tax authority"
103
104#. module: l10n_it_withholding_tax
105#: sql_constraint:account.invoice:0
106msgid "Invoice Number must be unique per Company!"
107msgstr "Nell'azienda il numero fattura dev'essere univoco!"
108
109#. module: l10n_it_withholding_tax
110#: help:res.company,withholding_journal_id:0
111msgid "Journal used for registration of witholding amounts to be paid"
112msgstr "Journal used for registration of witholding amounts to be paid"
113
114#. module: l10n_it_withholding_tax
115#: code:addons/l10n_it_withholding_tax/account.py:119
116#, python-format
117msgid "Payable withholding - "
118msgstr "Ritenute Pagabili - "
119
120#. module: l10n_it_withholding_tax
121#: model:ir.model,name:l10n_it_withholding_tax.model_account_voucher
122msgid "Accounting Voucher"
123msgstr "Voucher contabile"
124
125#. module: l10n_it_withholding_tax
126#: field:account.invoice,withholding_amount:0
127msgid "Withholding amount"
128msgstr "Totale Ritenute"
129
130#. module: l10n_it_withholding_tax
131#: model:ir.model,name:l10n_it_withholding_tax.model_account_invoice
132msgid "Invoice"
133msgstr "Fattura"
134
135#. module: l10n_it_withholding_tax
136#: field:res.company,withholding_journal_id:0
137msgid "Withholding journal"
138msgstr "Sezionale Ritenute"
139
140#. module: l10n_it_withholding_tax
141#: code:addons/l10n_it_withholding_tax/account.py:88
142#, python-format
143msgid "The company does not have an associated Withholding account"
144msgstr "L'Azienda non ha un conto associato per le Ritenute"
145
146#. module: l10n_it_withholding_tax
147#: field:account.voucher,withholding_move_ids:0
148msgid "Withholding Tax Entries"
149msgstr "Voci Tasse Ritenute"
150

Subscribers

People subscribed via source and target branches