diff --git a/__unported__/base_iban_bic_not_required/__init__.py b/__unported__/base_iban_bic_not_required/__init__.py deleted file mode 100644 index 16e8b082f..000000000 --- a/__unported__/base_iban_bic_not_required/__init__.py +++ /dev/null @@ -1 +0,0 @@ -import model diff --git a/__unported__/base_iban_bic_not_required/__openerp__.py b/__unported__/base_iban_bic_not_required/__openerp__.py deleted file mode 100644 index 1f7693221..000000000 --- a/__unported__/base_iban_bic_not_required/__openerp__.py +++ /dev/null @@ -1,47 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# Copyright (C) 2013 Therp BV (). -# All Rights Reserved -# -# 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 . -# -############################################################################## - -{ - 'name': 'IBAN - Bic not required', - 'version': '0.1', - 'license': 'AGPL-3', - 'author': 'Banking addons community', - 'website': 'https://launchpad.net/banking-addons', - 'category': 'Banking addons', - 'depends': [ - 'base_iban', - ], - 'description': ''' -The account_iban module in OpenERP mandates the presence of a BIC -code on an IBAN account number through a constraint. However, as of -Februari 2012 there is a resolution from the EU that drops this requirement -(see section 8 of [1]). This module reverts the constraint on BICs in the -base_iban module. - -See also https://bugs.launchpad.net/openobject-addons/+bug/933472 - -[1] http://goo.gl/iXM2Cg - ''', - 'data': [ - 'data/res_partner_bank_type_field.xml', - ], - 'installable': False, -} diff --git a/__unported__/base_iban_bic_not_required/data/res_partner_bank_type_field.xml b/__unported__/base_iban_bic_not_required/data/res_partner_bank_type_field.xml deleted file mode 100644 index 274347a4d..000000000 --- a/__unported__/base_iban_bic_not_required/data/res_partner_bank_type_field.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - diff --git a/__unported__/base_iban_bic_not_required/i18n/base_iban_bic_not_required.pot b/__unported__/base_iban_bic_not_required/i18n/base_iban_bic_not_required.pot deleted file mode 100644 index 07ef7e154..000000000 --- a/__unported__/base_iban_bic_not_required/i18n/base_iban_bic_not_required.pot +++ /dev/null @@ -1,28 +0,0 @@ -# Translation of OpenERP Server. -# This file contains the translation of the following modules: -# * base_iban_bic_not_required -# -msgid "" -msgstr "" -"Project-Id-Version: OpenERP Server 7.0\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2013-10-25 16:02+0000\n" -"PO-Revision-Date: 2013-10-25 16:02+0000\n" -"Last-Translator: <>\n" -"Language-Team: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Plural-Forms: \n" - -#. module: base_iban_bic_not_required -#: constraint:res.partner.bank:0 -msgid "\n" -"Please define BIC/Swift code on bank for bank type IBAN Account to make valid payments" -msgstr "" - -#. module: base_iban_bic_not_required -#: model:ir.model,name:base_iban_bic_not_required.model_res_partner_bank -msgid "Bank Accounts" -msgstr "" - diff --git a/__unported__/base_iban_bic_not_required/i18n/nl.po b/__unported__/base_iban_bic_not_required/i18n/nl.po deleted file mode 100644 index 9b1313012..000000000 --- a/__unported__/base_iban_bic_not_required/i18n/nl.po +++ /dev/null @@ -1,33 +0,0 @@ -# Translation of OpenERP Server. -# This file contains the translation of the following modules: -# * base_iban_bic_not_required -# -msgid "" -msgstr "" -"Project-Id-Version: OpenERP Server 7.0\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2013-10-25 16:02+0000\n" -"PO-Revision-Date: 2013-12-02 14:51+0000\n" -"Last-Translator: Jan Jurkus (GCE CAD-Service) \n" -"Language-Team: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2014-05-31 06:02+0000\n" -"X-Generator: Launchpad (build 17031)\n" - -#. module: base_iban_bic_not_required -#: constraint:res.partner.bank:0 -msgid "" -"\n" -"Please define BIC/Swift code on bank for bank type IBAN Account to make " -"valid payments" -msgstr "" -"\n" -"Definieer een BIC/Swift code voor banksoort IBAN rekeningen om geldige " -"betalingen te maken" - -#. module: base_iban_bic_not_required -#: model:ir.model,name:base_iban_bic_not_required.model_res_partner_bank -msgid "Bank Accounts" -msgstr "Bankrekeningen" diff --git a/__unported__/base_iban_bic_not_required/i18n/pt_BR.po b/__unported__/base_iban_bic_not_required/i18n/pt_BR.po deleted file mode 100644 index 2720edba5..000000000 --- a/__unported__/base_iban_bic_not_required/i18n/pt_BR.po +++ /dev/null @@ -1,31 +0,0 @@ -# Brazilian Portuguese translation for banking-addons -# Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 -# This file is distributed under the same license as the banking-addons package. -# FIRST AUTHOR , 2013. -# -msgid "" -msgstr "" -"Project-Id-Version: banking-addons\n" -"Report-Msgid-Bugs-To: FULL NAME \n" -"POT-Creation-Date: 2013-10-25 16:02+0000\n" -"PO-Revision-Date: 2013-12-25 12:28+0000\n" -"Last-Translator: FULL NAME \n" -"Language-Team: Brazilian Portuguese \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2014-05-31 06:02+0000\n" -"X-Generator: Launchpad (build 17031)\n" - -#. module: base_iban_bic_not_required -#: constraint:res.partner.bank:0 -msgid "" -"\n" -"Please define BIC/Swift code on bank for bank type IBAN Account to make " -"valid payments" -msgstr "" - -#. module: base_iban_bic_not_required -#: model:ir.model,name:base_iban_bic_not_required.model_res_partner_bank -msgid "Bank Accounts" -msgstr "" diff --git a/__unported__/base_iban_bic_not_required/model/__init__.py b/__unported__/base_iban_bic_not_required/model/__init__.py deleted file mode 100644 index 3f2925496..000000000 --- a/__unported__/base_iban_bic_not_required/model/__init__.py +++ /dev/null @@ -1 +0,0 @@ -import res_partner_bank diff --git a/__unported__/base_iban_bic_not_required/model/res_partner_bank.py b/__unported__/base_iban_bic_not_required/model/res_partner_bank.py deleted file mode 100644 index d3b7fedf9..000000000 --- a/__unported__/base_iban_bic_not_required/model/res_partner_bank.py +++ /dev/null @@ -1,41 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# Copyright (C) 2013 Therp BV (). -# All Rights Reserved -# -# 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 orm -from openerp.tools.translate import _ - - -class res_partner_bank(orm.Model): - _inherit = 'res.partner.bank' - - def _check_bank(self, cr, uid, ids, context=None): - # suppress base_iban's constraint to enforce BICs for IBANs - # workaround for lp:933472 - return True - - def _constr_bank_message(self, cr, uid, ids, context=None): - return _('\nPlease define BIC/Swift code on bank for bank ' - 'type IBAN Account to make valid payments') - - # Redefine constraint to update its function reference - _constraints = [ - (_check_bank, _constr_bank_message, ['bic']), - ]