Merge lp:~a-camilli/openobject-italia/7.0_abi_cab into lp:~openobject-italia-core-devs/openobject-italia/italian-addons-7.0

Proposed by Alessandro Camilli
Status: Rejected
Rejected by: Lorenzo Battistini
Proposed branch: lp:~a-camilli/openobject-italia/7.0_abi_cab
Merge into: lp:~openobject-italia-core-devs/openobject-italia/italian-addons-7.0
Diff against target: 243 lines (+207/-0)
6 files modified
l10n_it_abicab/AUTHORS.txt (+2/-0)
l10n_it_abicab/__init__.py (+23/-0)
l10n_it_abicab/__openerp__.py (+38/-0)
l10n_it_abicab/abicab.py (+46/-0)
l10n_it_abicab/abicab_view.xml (+61/-0)
l10n_it_abicab/i18n/it.po (+37/-0)
To merge this branch: bzr merge lp:~a-camilli/openobject-italia/7.0_abi_cab
Reviewer Review Type Date Requested Status
Lorenzo Battistini Disapprove
Review via email: mp+181483@code.launchpad.net

Description of the change

ABI e CAB per versione 7.0

To post a comment you must log in.
Revision history for this message
Lorenzo Battistini (elbati) wrote :

Solo alcuni piccoli appunti.

line 13 e successivi file python: 'encoding' dovrebbe essere 'coding' http://www.python.org/dev/peps/pep-0263/
line 75: 'update_xml' dovrebbe essere 'data'
line 108, 110 e 117: 'osv.osv' dovrebbe essere sostituito da 'orm.Model'

Grazie

review: Needs Fixing
224. By Alessandro Camilli

ABI e CAB

Revision history for this message
Alessandro Camilli (a-camilli) wrote :

> Solo alcuni piccoli appunti.
>
> line 13 e successivi file python: 'encoding' dovrebbe essere 'coding'
> http://www.python.org/dev/peps/pep-0263/
> line 75: 'update_xml' dovrebbe essere 'data'
> line 108, 110 e 117: 'osv.osv' dovrebbe essere sostituito da 'orm.Model'
>
> Grazie
OK grazie a te

Revision history for this message
Lorenzo Battistini (elbati) wrote :
review: Disapprove

Unmerged revisions

224. By Alessandro Camilli

ABI e CAB

223. By Alessandro Camilli

Italian ABI e CAB

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added directory 'l10n_it_abicab'
2=== added file 'l10n_it_abicab/AUTHORS.txt'
3--- l10n_it_abicab/AUTHORS.txt 1970-01-01 00:00:00 +0000
4+++ l10n_it_abicab/AUTHORS.txt 2013-08-22 07:59:58 +0000
5@@ -0,0 +1,2 @@
6+Franco Tampieri <franco.tampieri@agilebg.com>
7+Alessandro Camilli <a.camilli@yahoo.it>
8
9=== added file 'l10n_it_abicab/__init__.py'
10--- l10n_it_abicab/__init__.py 1970-01-01 00:00:00 +0000
11+++ l10n_it_abicab/__init__.py 2013-08-22 07:59:58 +0000
12@@ -0,0 +1,23 @@
13+# -*- coding: utf-8 -*-
14+##############################################################################
15+#
16+# OpenERP, Open Source Management Solution
17+# Copyright (C) 2012
18+# Associazione OpenERP Italia (<http://www.openerp-italia.org>)
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+
35+import abicab
36\ No newline at end of file
37
38=== added file 'l10n_it_abicab/__openerp__.py'
39--- l10n_it_abicab/__openerp__.py 1970-01-01 00:00:00 +0000
40+++ l10n_it_abicab/__openerp__.py 2013-08-22 07:59:58 +0000
41@@ -0,0 +1,38 @@
42+# -*- coding: utf-8 -*-
43+##############################################################################
44+#
45+# OpenERP, Open Source Management Solution
46+# Copyright (C) 2012
47+# Associazione OpenERP Italia (<http://www.openerp-italia.org>)
48+#
49+# This program is free software: you can redistribute it and/or modify
50+# it under the terms of the GNU Affero General Public License as
51+# published by the Free Software Foundation, either version 3 of the
52+# License, or (at your option) any later version.
53+#
54+# This program is distributed in the hope that it will be useful,
55+# but WITHOUT ANY WARRANTY; without even the implied warranty of
56+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
57+# GNU Affero General Public License for more details.
58+#
59+# You should have received a copy of the GNU Affero General Public License
60+# along with this program. If not, see <http://www.gnu.org/licenses/>.
61+#
62+#############################################################################
63+
64+{
65+ 'name': 'Italian Localisation - Base Bank ABI/CAB codes',
66+ 'version': '1.0',
67+ 'category': 'Localisation/Italy',
68+ 'description': """
69+ Insert in the res.bank model the proprieties of the ABI/CAB
70+ Utility to import italian bank from txt file
71+ """,
72+ 'author': 'OpenERP Italian Community',
73+ 'depends': ['base'],
74+ 'website': 'http://www.openerp-italia.org/',
75+ 'update_xml': ['abicab_view.xml'],
76+ 'installable': True,
77+ 'active': False,
78+ 'certificate': '',
79+}
80\ No newline at end of file
81
82=== added file 'l10n_it_abicab/abicab.py'
83--- l10n_it_abicab/abicab.py 1970-01-01 00:00:00 +0000
84+++ l10n_it_abicab/abicab.py 2013-08-22 07:59:58 +0000
85@@ -0,0 +1,46 @@
86+# -*- coding: utf-8 -*-
87+##############################################################################
88+#
89+# OpenERP, Open Source Management Solution
90+# Copyright (C) 2012
91+# Associazione OpenERP Italia (<http://www.openerp-italia.org>)
92+#
93+# This program is free software: you can redistribute it and/or modify
94+# it under the terms of the GNU Affero General Public License as
95+# published by the Free Software Foundation, either version 3 of the
96+# License, or (at your option) any later version.
97+#
98+# This program is distributed in the hope that it will be useful,
99+# but WITHOUT ANY WARRANTY; without even the implied warranty of
100+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
101+# GNU Affero General Public License for more details.
102+#
103+# You should have received a copy of the GNU Affero General Public License
104+# along with this program. If not, see <http://www.gnu.org/licenses/>.
105+#
106+#############################################################################
107+
108+from osv import fields, orm
109+
110+class res_bank(orm.Model):
111+ _inherit = "res.bank"
112+ _columns = {
113+ 'abi': fields.char('ABI', size=5),
114+ 'cab': fields.char('CAB', size=5),
115+ }
116+
117+class res_partner_bank(orm.Model):
118+ _inherit = "res.partner.bank"
119+ _columns = {
120+ 'bank_abi': fields.char('ABI', size=5),
121+ 'bank_cab': fields.char('CAB', size=5),
122+ }
123+
124+ def onchange_bank_id(self, cr, uid, ids, bank_id, context=None):
125+ result = super(res_partner_bank, self).onchange_bank_id(cr, uid, ids, bank_id, context=context)
126+ if bank_id:
127+ bank = self.pool.get('res.bank').browse(cr, uid, bank_id, context=context)
128+ result['value']['bank_abi'] = bank.abi
129+ result['value']['bank_cab'] = bank.cab
130+ return result
131+
132
133=== added file 'l10n_it_abicab/abicab_view.xml'
134--- l10n_it_abicab/abicab_view.xml 1970-01-01 00:00:00 +0000
135+++ l10n_it_abicab/abicab_view.xml 2013-08-22 07:59:58 +0000
136@@ -0,0 +1,61 @@
137+<?xml version="1.0" ?>
138+<openerp>
139+ <data>
140+
141+ <record id="view_bank_tree_abicab" model="ir.ui.view">
142+ <field name="name">res.bank.tree.abicab</field>
143+ <field name="model">res.bank</field>
144+ <field name="inherit_id" ref="base.view_res_bank_tree"/>
145+ <field name="arch" type="xml">
146+ <field name="name" position="after">
147+ <field name="abi"/>
148+ <field name="cab"/>
149+ </field>
150+ </field>
151+ </record>
152+
153+ <record id="view_bank_form_abicab" model="ir.ui.view">
154+ <field name="name">res.bank.form.abicab</field>
155+ <field name="model">res.bank</field>
156+ <field name="inherit_id" ref="base.view_res_bank_form"/>
157+ <field name="arch" type="xml">
158+ <field name="name" position="after">
159+ <newline/>
160+ <separator string="Bank Details" colspan="6"/>
161+ <group colspan="6" col="6">
162+ <field name="abi"/>
163+ <field name="cab"/>
164+ </group>
165+ </field>
166+ </field>
167+ </record>
168+
169+ <record id="view_partner_bank_form_abicab_form" model="ir.ui.view">
170+ <field name="name">res.partner.bank.form</field>
171+ <field name="model">res.partner.bank</field>
172+ <field name="inherit_id" ref="base.view_partner_bank_form"/>
173+ <field name="arch" type="xml">
174+
175+ <field name="bank_bic" position="after">
176+ <field name="bank_abi"/>
177+ <field name="bank_cab"/>
178+ </field>
179+
180+ </field>
181+ </record>
182+
183+ <record id="view_partner_bank_form_abicab" model="ir.ui.view">
184+ <field name="name">res.partner.bank.form</field>
185+ <field name="model">res.partner</field>
186+ <field name="inherit_id" ref="account.view_partner_property_form"/>
187+ <field name="arch" type="xml">
188+
189+ <field name="bank_name" position="after">
190+ <field name="bank_abi"/>
191+ <field name="bank_cab"/>
192+ </field>
193+ </field>
194+ </record>
195+
196+ </data>
197+</openerp>
198\ No newline at end of file
199
200=== added directory 'l10n_it_abicab/i18n'
201=== added file 'l10n_it_abicab/i18n/it.mo'
202Binary files l10n_it_abicab/i18n/it.mo 1970-01-01 00:00:00 +0000 and l10n_it_abicab/i18n/it.mo 2013-08-22 07:59:58 +0000 differ
203=== added file 'l10n_it_abicab/i18n/it.po'
204--- l10n_it_abicab/i18n/it.po 1970-01-01 00:00:00 +0000
205+++ l10n_it_abicab/i18n/it.po 2013-08-22 07:59:58 +0000
206@@ -0,0 +1,37 @@
207+# Translation of OpenERP Server.
208+# This file contains the translation of the following modules:
209+# * l10n_it_abicab
210+#
211+msgid ""
212+msgstr ""
213+"Project-Id-Version: OpenERP Server 6.0.3\n"
214+"Report-Msgid-Bugs-To: support@openerp.com\n"
215+"POT-Creation-Date: 2011-12-29 13:07+0000\n"
216+"PO-Revision-Date: 2011-12-29 14:08+0100\n"
217+"Last-Translator: Franco Tampieri <info@titdata.it>\n"
218+"Language-Team: \n"
219+"MIME-Version: 1.0\n"
220+"Content-Type: text/plain; charset=UTF-8\n"
221+"Content-Transfer-Encoding: 8bit\n"
222+"Plural-Forms: \n"
223+
224+#. module: l10n_it_abicab
225+#: field:res.bank,abi:0
226+msgid "ABI"
227+msgstr "ABI"
228+
229+#. module: l10n_it_abicab
230+#: view:res.bank:0
231+msgid "Bank Details"
232+msgstr "Dettagli Banca"
233+
234+#. module: l10n_it_abicab
235+#: model:ir.model,name:l10n_it_abicab.model_res_bank
236+msgid "Bank"
237+msgstr "Banca"
238+
239+#. module: l10n_it_abicab
240+#: field:res.bank,cab:0
241+msgid "CAB"
242+msgstr "CAB"
243+

Subscribers

People subscribed via source and target branches