diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2019-08-20 06:36:35 +0000 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2019-08-20 06:36:35 +0000 |
| commit | e1aee2aac2fd2c19dfd55734b1f51aedbc0393a6 (patch) | |
| tree | 84418ace8ab5ec5e92e8ada132bc5016361c323c | |
| parent | 32039b2ab44dd3107c8761187582b6c010f3492c (diff) | |
[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) <nim@odoo.com>
| -rw-r--r-- | odoo/addons/base/models/res_bank.py | 7 |
1 files changed, 1 insertions, 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) |
