mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
[FIX] account_banking_pain_base: support party identifier for Spain
This commit is contained in:
committed by
Enric Tobella
parent
c014436e5e
commit
6a38c5c816
@@ -47,6 +47,8 @@ class res_company(orm.Model):
|
||||
party_identifier = False
|
||||
if company_vat and company_vat[0:2].upper() in ['BE']:
|
||||
party_identifier = company_vat[2:].replace(' ', '')
|
||||
if company_vat and company_vat[0:2].upper() in ['ES']:
|
||||
party_identifier = company.sepa_creditor_identifier
|
||||
return party_identifier
|
||||
|
||||
def _initiating_party_issuer_default(self, cr, uid, context=None):
|
||||
|
||||
Reference in New Issue
Block a user