mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
[MRG] [MIG] account_iban_preserve_domestic 7.0
This commit is contained in:
@@ -1,61 +1,53 @@
|
||||
##############################################################################
|
||||
#
|
||||
# Copyright (C) 2012 Therp BV (<http://therp.nl>).
|
||||
# Copyright (C) 2012 - 2013 Therp BV (<http://therp.nl>).
|
||||
#
|
||||
# All other contributions are (C) by their respective contributors
|
||||
#
|
||||
# All Rights Reserved
|
||||
#
|
||||
# WARNING: This program as such is intended to be used by professional
|
||||
# programmers who take the whole responsability of assessing all potential
|
||||
# consequences resulting from its eventual inadequacies and bugs
|
||||
# End users who are looking for a ready-to-use solution with commercial
|
||||
# garantees and support are strongly adviced to contract EduSense BV
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
# it under the terms of the GNU Affero General Public License as
|
||||
# published by the Free Software Foundation, either version 3 of the
|
||||
# License, or (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
# GNU Affero General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
{
|
||||
'name': 'Domestic bank account number',
|
||||
'version': '0.1.134',
|
||||
'version': '0.1.163',
|
||||
'license': 'AGPL-3',
|
||||
'author': 'Therp BV',
|
||||
'website': 'https://launchpad.net/banking-addons',
|
||||
'category': 'Banking addons',
|
||||
'depends': ['base_iban','account'],
|
||||
'init_xml': [],
|
||||
'update_xml': [
|
||||
'depends': [
|
||||
'base_iban',
|
||||
'account',
|
||||
],
|
||||
'data': [
|
||||
'res_partner_bank_view.xml'
|
||||
],
|
||||
'demo_xml': [],
|
||||
'description': '''
|
||||
This module is compatible with OpenERP 6.1.
|
||||
This module is compatible with OpenERP 7.0.
|
||||
|
||||
The IBAN module in OpenERP 6.1 registers the IBAN
|
||||
The IBAN module in OpenERP 6.1/7.0 registers the IBAN
|
||||
on the same field as the domestic account number,
|
||||
instead of keeping both on separate fields as is the
|
||||
case in 6.0.
|
||||
|
||||
This module adds a field to register the domestic account
|
||||
number on IBANs, while the domestic account number is
|
||||
still widely in use in certain regions.
|
||||
|
||||
Note that an upgrade to OpenERP 6.1 makes you lose the
|
||||
domestic account numbers on IBANs that were already in
|
||||
your system, unless you installed the 6.0 version of this
|
||||
module prior to the upgrade to OpenERP 6.1.
|
||||
number on IBANs, as the domestic account number is
|
||||
still in use in certain regions. This should make for a
|
||||
smoother migration to SEPA.
|
||||
''',
|
||||
'active': False,
|
||||
'installable': False,
|
||||
'installable': True,
|
||||
}
|
||||
|
||||
@@ -1,5 +1,28 @@
|
||||
from osv import fields,osv
|
||||
class res_partner_bank(osv.osv):
|
||||
# -*- coding: utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
# OpenERP, Open Source Management Solution
|
||||
# This module copyright (C) 2012 - 2013 Therp BV (<http://therp.nl>).
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Affero General Public License as
|
||||
# published by the Free Software Foundation, either version 3 of the
|
||||
# License, or (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU Affero General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
from openerp.osv import fields, orm
|
||||
|
||||
|
||||
class res_partner_bank(orm.Model):
|
||||
''' Adds a field for domestic account numbers '''
|
||||
_inherit = "res.partner.bank"
|
||||
|
||||
|
||||
@@ -18,20 +18,5 @@
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- add the field to the partner form, as defined in
|
||||
the account module -->
|
||||
<record id="view_partner_account_form" model="ir.ui.view">
|
||||
<field name="name">res.partner.account.form</field>
|
||||
<field name="model">res.partner</field>
|
||||
<field name="inherit_id" ref="account.view_partner_property_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="acc_number" position="after">
|
||||
<newline/>
|
||||
<field name="acc_number_domestic"
|
||||
attrs="{'invisible': [('state', '!=', 'iban')]}"
|
||||
/>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
</data>
|
||||
</openerp>
|
||||
|
||||
Reference in New Issue
Block a user