Merge lp:~a-camilli/openobject-italia/7.0_add_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_add_abi_cab
Merge into: lp:~openobject-italia-core-devs/openobject-italia/italian-addons-7.0
Diff against target: 509 lines (+443/-0)
11 files modified
l10n_it_abicab/AUTHORS.txt (+2/-0)
l10n_it_abicab/__init__.py (+25/-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/bank/__init__.py (+20/-0)
l10n_it_abicab/bank/bank.py (+98/-0)
l10n_it_abicab/i18n/it.po (+37/-0)
l10n_it_abicab/wizard/__init__.py (+22/-0)
l10n_it_abicab/wizard/import_italian_bank.py (+57/-0)
l10n_it_abicab/wizard/import_italian_bank_view.xml (+37/-0)
To merge this branch: bzr merge lp:~a-camilli/openobject-italia/7.0_add_abi_cab
Reviewer Review Type Date Requested Status
Lorenzo Battistini Needs Resubmitting
Review via email: mp+170086@code.launchpad.net

Description of the change

Adeguamento del modulo abi e cab alla versione 7.0.

Aggiunta un'utility per importare le banche nazionali dal file TXT che si può scaricare sia dai siti che dai programmi di homebanking.
L'utility l'ho messa nel menu di contabilità->configurazione->varie

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

Ciao Alessandro.

Dove è documentata la struttura del file TXT da importare?

Qual è il tipico caso d'uso in cui questa nuova funzionalità verrebbe usata?

Come mai 'wizard.import.italian.bank' e 'l10n_it_abicab.utility.import' sono due model distinti?

Grazie

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

> Ciao Alessandro.
>
> Dove è documentata la struttura del file TXT da importare?
Ho ripreso la struttura da un vecchio sorgente che avevo fatto. La struttura l'ho provata sul file che puoi scaricare sia da BNL che da UNICREDIT (e altre banche prese a campione come la CARIFERMO). Per questo do per scontato se si scarica l'elenco delle banche italiane in formato testo da un sito bancario il formato è sempre lo stesso.
>
> Qual è il tipico caso d'uso in cui questa nuova funzionalità verrebbe usata?
Ora quando si vuole inserire una banca nel partner, se non esiste occorre crearla (ragione sociale, localita, abi, cab ecc..). Visto che l'archivio delle banche viene fornito da tutti gli istituti è molto comodo averle già codificate e limitarsi a sceglierla per assegnarla al partner.
Nella pratica capita spesso che l'utente che si trova a codificare una nuova banca deve cercare i dati su internet o nel software della banca, e inserirli in openERP con copia/incolla.
La funzione può essere eseguita in ogni momento(previo download del file aggiornato), ogni volta che si vuole aggiungere nuove banche all'archivio. Il classico caso riguarda le fusioni bancarie dove all'archivio dovrebbero essere aggiunte le filiali con i nuovi ABI e CAB.

>
> Come mai 'wizard.import.italian.bank' e 'l10n_it_abicab.utility.import' sono
> due model distinti?
Ho usato il concetto del MVC, ma non so se sia corretto.
Ho creato un modello a parte come "contenitore" di tutte le possibili funzioni di import dei flussi bancari (avevo anche in mente di metterci gli insoluti riba).
La funzione "import_from_abicab" è presa da questo modello, mentre la wizard l'ho usata come semplice view.

Pensi sia meglio mettere tutto nel wizard?

>
> Grazie
Grazie a te!

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

Ciao Alessandro,

ti chiederei di splittare in due questa merge proposal:
 - una MP per aggiungere il modulo portato alla 7
 - una MP per aggiungere la funzionalità di cui stavamo discutendo

Così da una parte possiamo pubblicare il modulo sulla 7 grazie al tuo lavoro, dall'altra andiamo avanti col discorso sulla nuova funzionalità

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

Ho fatto lo split x abi e cab su lp:~a-camilli/openobject-italia/7.0_abi_cab

Unmerged revisions

211. By Alessandro Camilli

Gestione abi e cab + utility per import banche da file txt

210. By Alessandro Camilli

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-06-18 14:14:40 +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-06-18 14:14:40 +0000
12@@ -0,0 +1,25 @@
13+# -*- encoding: 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+import bank
37+import wizard
38\ No newline at end of file
39
40=== added file 'l10n_it_abicab/__openerp__.py'
41--- l10n_it_abicab/__openerp__.py 1970-01-01 00:00:00 +0000
42+++ l10n_it_abicab/__openerp__.py 2013-06-18 14:14:40 +0000
43@@ -0,0 +1,38 @@
44+# -*- encoding: utf-8 -*-
45+##############################################################################
46+#
47+# OpenERP, Open Source Management Solution
48+# Copyright (C) 2012
49+# Associazione OpenERP Italia (<http://www.openerp-italia.org>)
50+#
51+# This program is free software: you can redistribute it and/or modify
52+# it under the terms of the GNU Affero General Public License as
53+# published by the Free Software Foundation, either version 3 of the
54+# License, or (at your option) any later version.
55+#
56+# This program is distributed in the hope that it will be useful,
57+# but WITHOUT ANY WARRANTY; without even the implied warranty of
58+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
59+# GNU Affero General Public License for more details.
60+#
61+# You should have received a copy of the GNU Affero General Public License
62+# along with this program. If not, see <http://www.gnu.org/licenses/>.
63+#
64+#############################################################################
65+
66+{
67+ 'name': 'Italian Localisation - Base Bank ABI/CAB codes',
68+ 'version': '1.0',
69+ 'category': 'Localisation/Italy',
70+ 'description': """
71+ Insert in the res.bank model the proprieties of the ABI/CAB
72+ Utility to import italian bank from txt file
73+ """,
74+ 'author': 'OpenERP Italian Community',
75+ 'depends': ['base'],
76+ 'website': 'http://www.openerp-italia.org/',
77+ 'update_xml': ['abicab_view.xml', 'wizard/import_italian_bank_view.xml'],
78+ 'installable': True,
79+ 'active': False,
80+ 'certificate': '',
81+}
82\ No newline at end of file
83
84=== added file 'l10n_it_abicab/abicab.py'
85--- l10n_it_abicab/abicab.py 1970-01-01 00:00:00 +0000
86+++ l10n_it_abicab/abicab.py 2013-06-18 14:14:40 +0000
87@@ -0,0 +1,46 @@
88+# -*- encoding: utf-8 -*-
89+##############################################################################
90+#
91+# OpenERP, Open Source Management Solution
92+# Copyright (C) 2012
93+# Associazione OpenERP Italia (<http://www.openerp-italia.org>)
94+#
95+# This program is free software: you can redistribute it and/or modify
96+# it under the terms of the GNU Affero General Public License as
97+# published by the Free Software Foundation, either version 3 of the
98+# License, or (at your option) any later version.
99+#
100+# This program is distributed in the hope that it will be useful,
101+# but WITHOUT ANY WARRANTY; without even the implied warranty of
102+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
103+# GNU Affero General Public License for more details.
104+#
105+# You should have received a copy of the GNU Affero General Public License
106+# along with this program. If not, see <http://www.gnu.org/licenses/>.
107+#
108+#############################################################################
109+
110+from osv import fields, osv
111+
112+class res_bank(osv.osv):
113+ _inherit = "res.bank"
114+ _columns = {
115+ 'abi': fields.char('ABI', size=5),
116+ 'cab': fields.char('CAB', size=5),
117+ }
118+
119+class res_partner_bank(osv.osv):
120+ _inherit = "res.partner.bank"
121+ _columns = {
122+ 'bank_abi': fields.char('ABI', size=5),
123+ 'bank_cab': fields.char('CAB', size=5),
124+ }
125+
126+ def onchange_bank_id(self, cr, uid, ids, bank_id, context=None):
127+ result = super(res_partner_bank, self).onchange_bank_id(cr, uid, ids, bank_id, context=context)
128+ if bank_id:
129+ bank = self.pool.get('res.bank').browse(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
135=== added file 'l10n_it_abicab/abicab_view.xml'
136--- l10n_it_abicab/abicab_view.xml 1970-01-01 00:00:00 +0000
137+++ l10n_it_abicab/abicab_view.xml 2013-06-18 14:14:40 +0000
138@@ -0,0 +1,61 @@
139+<?xml version="1.0" ?>
140+<openerp>
141+ <data>
142+
143+ <record id="view_bank_tree_abicab" model="ir.ui.view">
144+ <field name="name">res.bank.tree.abicab</field>
145+ <field name="model">res.bank</field>
146+ <field name="inherit_id" ref="base.view_res_bank_tree"/>
147+ <field name="arch" type="xml">
148+ <field name="name" position="after">
149+ <field name="abi"/>
150+ <field name="cab"/>
151+ </field>
152+ </field>
153+ </record>
154+
155+ <record id="view_bank_form_abicab" model="ir.ui.view">
156+ <field name="name">res.bank.form.abicab</field>
157+ <field name="model">res.bank</field>
158+ <field name="inherit_id" ref="base.view_res_bank_form"/>
159+ <field name="arch" type="xml">
160+ <field name="name" position="after">
161+ <newline/>
162+ <separator string="Bank Details" colspan="6"/>
163+ <group colspan="6" col="6">
164+ <field name="abi"/>
165+ <field name="cab"/>
166+ </group>
167+ </field>
168+ </field>
169+ </record>
170+
171+ <record id="view_partner_bank_form_abicab_form" model="ir.ui.view">
172+ <field name="name">res.partner.bank.form</field>
173+ <field name="model">res.partner.bank</field>
174+ <field name="inherit_id" ref="base.view_partner_bank_form"/>
175+ <field name="arch" type="xml">
176+
177+ <field name="bank_bic" position="after">
178+ <field name="bank_abi"/>
179+ <field name="bank_cab"/>
180+ </field>
181+
182+ </field>
183+ </record>
184+
185+ <record id="view_partner_bank_form_abicab" model="ir.ui.view">
186+ <field name="name">res.partner.bank.form</field>
187+ <field name="model">res.partner</field>
188+ <field name="inherit_id" ref="account.view_partner_property_form"/>
189+ <field name="arch" type="xml">
190+
191+ <field name="bank_name" position="after">
192+ <field name="bank_abi"/>
193+ <field name="bank_cab"/>
194+ </field>
195+ </field>
196+ </record>
197+
198+ </data>
199+</openerp>
200\ No newline at end of file
201
202=== added directory 'l10n_it_abicab/bank'
203=== added file 'l10n_it_abicab/bank/__init__.py'
204--- l10n_it_abicab/bank/__init__.py 1970-01-01 00:00:00 +0000
205+++ l10n_it_abicab/bank/__init__.py 2013-06-18 14:14:40 +0000
206@@ -0,0 +1,20 @@
207+# -*- coding: utf-8 -*-
208+##############################################################################
209+#
210+# Copyright (C) 2013 Alessandro Camilli (a.camilli@yahoo.it)
211+#
212+# This program is free software: you can redistribute it and/or modify
213+# it under the terms of the GNU Affero General Public License as published
214+# by the Free Software Foundation, either version 3 of the License, or
215+# (at your option) any later version.
216+#
217+# This program is distributed in the hope that it will be useful,
218+# but WITHOUT ANY WARRANTY; without even the implied warranty of
219+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
220+# GNU General Public License for more details.
221+#
222+# You should have received a copy of the GNU Affero General Public License
223+# along with this program. If not, see <http://www.gnu.org/licenses/>.
224+#
225+##############################################################################
226+import bank
227
228=== added file 'l10n_it_abicab/bank/bank.py'
229--- l10n_it_abicab/bank/bank.py 1970-01-01 00:00:00 +0000
230+++ l10n_it_abicab/bank/bank.py 2013-06-18 14:14:40 +0000
231@@ -0,0 +1,98 @@
232+# -*- coding: utf-8 -*-
233+#################################################################################
234+# Author: Alessandro Camilli a.camilli@yahoo.it
235+#
236+# This program is free software: you can redistribute it and/or modify
237+# it under the terms of the GNU General Public License as published by
238+# the Free Software Foundation, either version 3 of the License, or
239+# (at your option) any later version.
240+#
241+# This program is distributed in the hope that it will be useful,
242+# but WITHOUT ANY WARRANTY; without even the implied warranty of
243+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
244+# GNU General Public License for more details.
245+#
246+# You should have received a copy of the GNU General Public License
247+# along with this program. If not, see <http://www.gnu.org/licenses/>.
248+#
249+##############################################################################
250+
251+from osv import fields,osv
252+from tools.translate import _
253+import time
254+import base64
255+import tools
256+from os import path
257+
258+class bank(osv.osv_memory):
259+
260+ _name = "l10n_it_abicab.utility.import"
261+
262+ _description = 'Use this wizard to import bank from txt'
263+
264+ def import_from_abicab(self, cr, uid, ids, data, context=None):
265+
266+ addons_path = tools.config.get('addons_path')
267+ path_for_file = ""
268+ for os_path in addons_path.split(','):
269+ path_for_file = os_path + "/l10n_it_abicab/bank/"
270+ if path.exists(path_for_file):
271+ break
272+
273+ file_txt_to_import = base64.decodestring(data['form']['file_txt_to_import'])
274+ f = open(path_for_file + "abicab.txt", "w")
275+ f.write(file_txt_to_import)
276+ f.close()
277+
278+ iFile = open(path_for_file + 'abicab.txt')
279+ reader = iFile.readlines()
280+
281+ for row in reader:
282+
283+ prefissoRiga = row[:2]
284+ #
285+ # INTESTAZIONE BANCA
286+ #
287+ if prefissoRiga == '11':
288+ banca_descrizione = row[13:93]
289+ #
290+ # INDIRIZZO AGENZIA
291+ #
292+ if prefissoRiga == '21':
293+ agenzia_indirizzo = row[20:60]
294+ agenzia_localita = row[140:180]
295+ agenzia_cap = row[180:185]
296+ agenzia_provincia = row[185:187]
297+ #
298+ # AGENZIA
299+ #
300+ if prefissoRiga == '31':
301+ agenzia_abi = row[2:7]
302+ agenzia_cab = row[7:12]
303+ agenzia_descrizione = row[12:52]
304+
305+ # Creazione banca ( dopo ogni agenzia)
306+ bank_dati = {
307+ 'name': banca_descrizione.strip().decode('cp1252') + ' - ' + agenzia_descrizione.strip().decode('cp1252'),
308+ 'abi' : agenzia_abi,
309+ 'cab': agenzia_cab,
310+ 'street': agenzia_indirizzo.strip().decode('cp1252'),
311+ 'zip': agenzia_cap,
312+ 'city': agenzia_localita.strip().decode('cp1252'),
313+ }
314+
315+ cr.execute('SELECT name,id FROM res_bank where abi =%s and cab=%s', (agenzia_abi, agenzia_cab) )
316+ bank_exists = cr.fetchall()
317+ if len(bank_exists) == 0:
318+ try:
319+ bank_id = self.pool.get('res.bank').create(cr, uid, bank_dati)
320+ cr.commit()
321+ except Exception:
322+ cr.rollback()
323+ raise ("error creating %s: abi %s, cab %s", (banca_descrizione,agenzia_abi,agenzia_cab))
324+
325+
326+ iFile.close()
327+bank()
328+
329+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
330\ No newline at end of file
331
332=== added directory 'l10n_it_abicab/i18n'
333=== added file 'l10n_it_abicab/i18n/it.mo'
334Binary files l10n_it_abicab/i18n/it.mo 1970-01-01 00:00:00 +0000 and l10n_it_abicab/i18n/it.mo 2013-06-18 14:14:40 +0000 differ
335=== added file 'l10n_it_abicab/i18n/it.po'
336--- l10n_it_abicab/i18n/it.po 1970-01-01 00:00:00 +0000
337+++ l10n_it_abicab/i18n/it.po 2013-06-18 14:14:40 +0000
338@@ -0,0 +1,37 @@
339+# Translation of OpenERP Server.
340+# This file contains the translation of the following modules:
341+# * l10n_it_abicab
342+#
343+msgid ""
344+msgstr ""
345+"Project-Id-Version: OpenERP Server 6.0.3\n"
346+"Report-Msgid-Bugs-To: support@openerp.com\n"
347+"POT-Creation-Date: 2011-12-29 13:07+0000\n"
348+"PO-Revision-Date: 2011-12-29 14:08+0100\n"
349+"Last-Translator: Franco Tampieri <info@titdata.it>\n"
350+"Language-Team: \n"
351+"MIME-Version: 1.0\n"
352+"Content-Type: text/plain; charset=UTF-8\n"
353+"Content-Transfer-Encoding: 8bit\n"
354+"Plural-Forms: \n"
355+
356+#. module: l10n_it_abicab
357+#: field:res.bank,abi:0
358+msgid "ABI"
359+msgstr "ABI"
360+
361+#. module: l10n_it_abicab
362+#: view:res.bank:0
363+msgid "Bank Details"
364+msgstr "Dettagli Banca"
365+
366+#. module: l10n_it_abicab
367+#: model:ir.model,name:l10n_it_abicab.model_res_bank
368+msgid "Bank"
369+msgstr "Banca"
370+
371+#. module: l10n_it_abicab
372+#: field:res.bank,cab:0
373+msgid "CAB"
374+msgstr "CAB"
375+
376
377=== added directory 'l10n_it_abicab/wizard'
378=== added file 'l10n_it_abicab/wizard/__init__.py'
379--- l10n_it_abicab/wizard/__init__.py 1970-01-01 00:00:00 +0000
380+++ l10n_it_abicab/wizard/__init__.py 2013-06-18 14:14:40 +0000
381@@ -0,0 +1,22 @@
382+# -*- encoding: utf-8 -*-
383+##############################################################################
384+#
385+# OpenERP, Open Source Management Solution
386+# Copyright (C) 2012
387+# Associazione OpenERP Italia (<http://www.openerp-italia.org>)
388+#
389+# This program is free software: you can redistribute it and/or modify
390+# it under the terms of the GNU Affero General Public License as
391+# published by the Free Software Foundation, either version 3 of the
392+# License, or (at your option) any later version.
393+#
394+# This program is distributed in the hope that it will be useful,
395+# but WITHOUT ANY WARRANTY; without even the implied warranty of
396+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
397+# GNU Affero General Public License for more details.
398+#
399+# You should have received a copy of the GNU Affero General Public License
400+# along with this program. If not, see <http://www.gnu.org/licenses/>.
401+#
402+#############################################################################
403+import import_italian_bank
404\ No newline at end of file
405
406=== added file 'l10n_it_abicab/wizard/import_italian_bank.py'
407--- l10n_it_abicab/wizard/import_italian_bank.py 1970-01-01 00:00:00 +0000
408+++ l10n_it_abicab/wizard/import_italian_bank.py 2013-06-18 14:14:40 +0000
409@@ -0,0 +1,57 @@
410+# -*- encoding: utf-8 -*-
411+##############################################################################
412+#
413+# OpenERP, Open Source Management Solution
414+# Copyright (C) 2012
415+# Associazione OpenERP Italia (<http://www.openerp-italia.org>)
416+#
417+# This program is free software: you can redistribute it and/or modify
418+# it under the terms of the GNU Affero General Public License as
419+# published by the Free Software Foundation, either version 3 of the
420+# License, or (at your option) any later version.
421+#
422+# This program is distributed in the hope that it will be useful,
423+# but WITHOUT ANY WARRANTY; without even the implied warranty of
424+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
425+# GNU Affero General Public License for more details.
426+#
427+# You should have received a copy of the GNU Affero General Public License
428+# along with this program. If not, see <http://www.gnu.org/licenses/>.
429+#
430+#############################################################################
431+
432+from osv import fields,osv
433+from tools.translate import _
434+import time
435+import psycopg2
436+from StringIO import StringIO
437+
438+
439+class wizard_import_italian_bank(osv.osv_memory):
440+
441+ _name = "wizard.import.italian.bank"
442+
443+ _description = 'Use this wizard to import italian bank from ufficial file txt'
444+
445+ _columns={
446+ 'file_txt_to_import': fields.binary('File TXT to import', required=True, help="Se il file è troppo grande, dividerlo facendo attenzione \
447+ affinchè la prima riga del nuovo file inizi con il previsso 11, ovvero con l'intestazione della nuova banca."),
448+ }
449+
450+
451+ def import_italian_bank(self, cr, uid, ids, data, context=None):
452+
453+ for wiz_obj in self.read(cr,uid,ids):
454+ if 'form' not in data:
455+ data['form'] = {}
456+ #data['form']['type'] = wiz_obj['type']
457+ data['form']['file_txt_to_import'] = wiz_obj['file_txt_to_import']
458+
459+ self.pool.get('l10n_it_abicab.utility.import').import_from_abicab(cr, uid, ids, data, context=None)
460+
461+ return {'type': 'ir.actions.act_window_close'}
462+
463+
464+wizard_import_italian_bank()
465+
466+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
467\ No newline at end of file
468
469=== added file 'l10n_it_abicab/wizard/import_italian_bank_view.xml'
470--- l10n_it_abicab/wizard/import_italian_bank_view.xml 1970-01-01 00:00:00 +0000
471+++ l10n_it_abicab/wizard/import_italian_bank_view.xml 2013-06-18 14:14:40 +0000
472@@ -0,0 +1,37 @@
473+<?xml version="1.0" encoding="utf-8"?>
474+<openerp>
475+ <data>
476+ <!--
477+ Form
478+ -->
479+ <record id="l10n_it_abicab_utility_import_italian_bank" model="ir.ui.view">
480+ <field eval="1" name="priority"/>
481+ <field name="name">openforce.utility.import.italian.bank</field>
482+ <field name="model">wizard.import.italian.bank</field>
483+ <field name="type">form</field>
484+ <field name="arch" type="xml">
485+ <form string="Params" version="7.0">
486+ <group col="4">
487+ <field name="file_txt_to_import" />
488+ </group>
489+ <button name="import_italian_bank" string="Import italian banks " type="object" icon="gtk-execute" />
490+ </form>
491+ </field>
492+ </record>
493+
494+ <!-- ACTION -->
495+
496+ <record id="l10n_it_abicab_utility_import_italian_bank_action" model="ir.actions.act_window">
497+ <field name="name">Import italian bank</field>
498+ <field name="res_model">wizard.import.italian.bank</field>
499+ <field name="view_type">form</field>
500+ <field name="view_mode">form,tree,graph</field>
501+ <field name="view_id" ref="l10n_it_abicab_utility_import_italian_bank"/>
502+ <field name="help">Import italian bank from txt abicab</field>
503+ <field name="target">new</field>
504+ </record>
505+
506+ <menuitem action="l10n_it_abicab_utility_import_italian_bank_action" id="menu_l10n_it_abicab_utility_import_italian_bank" parent="account.menu_configuration_misc"/>
507+
508+ </data>
509+</openerp>

Subscribers

People subscribed via source and target branches