Merge lp:~agilebg/openobject-italia/hurrinico-fix into lp:~openobject-italia-core-devs/openobject-italia/italian-addons-7.0

Proposed by Lorenzo Battistini
Status: Needs review
Proposed branch: lp:~agilebg/openobject-italia/hurrinico-fix
Merge into: lp:~openobject-italia-core-devs/openobject-italia/italian-addons-7.0
Diff against target: 244 lines (+210/-0)
6 files modified
l10n_it_abicab/AUTHORS.txt (+2/-0)
l10n_it_abicab/__init__.py (+23/-0)
l10n_it_abicab/__openerp__.py (+37/-0)
l10n_it_abicab/abicab.py (+50/-0)
l10n_it_abicab/abicab_view.xml (+61/-0)
l10n_it_abicab/i18n/it.po (+37/-0)
To merge this branch: bzr merge lp:~agilebg/openobject-italia/hurrinico-fix
Reviewer Review Type Date Requested Status
Lorenzo Battistini Approve
Review via email: mp+224121@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Lorenzo Battistini (elbati) wrote :

This project is now hosted on https://github.com/OCA/l10n-italy. Please move your proposal there. This guide may help you https://github.com/OCA/maintainers-tools/wiki/How-to-move-a-Merge-Proposal-to-GitHub

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

Unmerged revisions

225. By Hurrinico

[FIX] PEP8 Mod

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

Subscribers

People subscribed via source and target branches