From b27825b7a8c42275808ba6818e00d9cbd0093800 Mon Sep 17 00:00:00 2001 From: Stefan Rijnhart Date: Tue, 26 Feb 2013 22:16:30 +0100 Subject: [PATCH] [MIG] Adapt to view and code conventions [UPD] Upgrade license to AGPL-3 --- account_iban_preserve_domestic/__openerp__.py | 46 ++++++++----------- .../res_partner_bank.py | 27 ++++++++++- .../res_partner_bank_view.xml | 15 ------ 3 files changed, 44 insertions(+), 44 deletions(-) diff --git a/account_iban_preserve_domestic/__openerp__.py b/account_iban_preserve_domestic/__openerp__.py index 90b954ad5..cef14a839 100644 --- a/account_iban_preserve_domestic/__openerp__.py +++ b/account_iban_preserve_domestic/__openerp__.py @@ -1,61 +1,53 @@ ############################################################################## # -# Copyright (C) 2012 Therp BV (). +# Copyright (C) 2012 - 2013 Therp BV (). # # 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 . # ############################################################################## + { '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, } diff --git a/account_iban_preserve_domestic/res_partner_bank.py b/account_iban_preserve_domestic/res_partner_bank.py index 828bf70b0..92aba4a06 100644 --- a/account_iban_preserve_domestic/res_partner_bank.py +++ b/account_iban_preserve_domestic/res_partner_bank.py @@ -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 (). +# +# 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 . +# +############################################################################## + +from openerp.osv import fields, orm + + +class res_partner_bank(orm.Model): ''' Adds a field for domestic account numbers ''' _inherit = "res.partner.bank" diff --git a/account_iban_preserve_domestic/res_partner_bank_view.xml b/account_iban_preserve_domestic/res_partner_bank_view.xml index 193465a78..c475db824 100644 --- a/account_iban_preserve_domestic/res_partner_bank_view.xml +++ b/account_iban_preserve_domestic/res_partner_bank_view.xml @@ -18,20 +18,5 @@ - - - res.partner.account.form - res.partner - - - - - - - -