[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>
This commit is contained in:
@@ -139,11 +139,6 @@ class ResPartnerBank(models.Model):
|
|||||||
@api.multi
|
@api.multi
|
||||||
def _validate_qr_code_arguments(self):
|
def _validate_qr_code_arguments(self):
|
||||||
for bank in 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
|
bank.qr_code_valid = (bank.bank_bic
|
||||||
and bank.company_id.name
|
and bank.company_id.name
|
||||||
and bank.acc_number
|
and bank.acc_number)
|
||||||
and (currency.name == 'EUR'))
|
|
||||||
|
|||||||
Reference in New Issue
Block a user