From e1aee2aac2fd2c19dfd55734b1f51aedbc0393a6 Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Tue, 20 Aug 2019 06:36:35 +0000 Subject: [PATCH] [FIX] base: QR code validation The QR code validation does not require the payment account to be in EUR (e.g. CHF or GBP). From [1]: > Though the transaction must be made in euros, the payment accounts > held at operating in SEPA do not have to be denominated in euros. [1] https://www.europeanpaymentscouncil.eu/what-we-do/sepa-instant-credit-transfer opw-2052315 closes odoo/odoo#35824 Signed-off-by: Nicolas Martinelli (nim) --- odoo/addons/base/models/res_bank.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/odoo/addons/base/models/res_bank.py b/odoo/addons/base/models/res_bank.py index 45655ec245c..a6c7964cab7 100644 --- a/odoo/addons/base/models/res_bank.py +++ b/odoo/addons/base/models/res_bank.py @@ -139,11 +139,6 @@ class ResPartnerBank(models.Model): @api.multi def _validate_qr_code_arguments(self): for bank in self: - if bank.currency_id.name == False: - currency = bank.company_id.currency_id - else: - currency = bank.currency_id bank.qr_code_valid = (bank.bank_bic and bank.company_id.name - and bank.acc_number - and (currency.name == 'EUR')) + and bank.acc_number)