[FIX] account_banking_pain_base: support party identifier for Spain

This commit is contained in:
Ignacio Ibeas - Acysos S.L
2014-02-13 17:21:09 +01:00
committed by Enric Tobella
parent c014436e5e
commit 6a38c5c816

View File

@@ -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):