mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
Add support for non-SEPA DD and CT without without IBANs
This commit is contained in:
committed by
Enric Tobella
parent
d9564a0133
commit
d417b32fb8
@@ -113,11 +113,7 @@ class AccountPaymentOrder(models.Model):
|
||||
}, gen_args)
|
||||
self.generate_party_block(
|
||||
payment_info_2_0, 'Dbtr', 'B',
|
||||
'self.company_partner_bank_id.partner_id.name',
|
||||
'self.company_partner_bank_id.sanitized_acc_number',
|
||||
'self.company_partner_bank_id.bank_bic',
|
||||
{'self': self},
|
||||
gen_args)
|
||||
self.company_partner_bank_id, gen_args)
|
||||
charge_bearer_2_24 = etree.SubElement(payment_info_2_0, 'ChrgBr')
|
||||
if self.sepa:
|
||||
charge_bearer = 'SLEV'
|
||||
@@ -156,9 +152,7 @@ class AccountPaymentOrder(models.Model):
|
||||
% (line.partner_id.name, line.name))
|
||||
self.generate_party_block(
|
||||
credit_transfer_transaction_info_2_27, 'Cdtr',
|
||||
'C', 'line.partner_id.name',
|
||||
'line.partner_bank_id.sanitized_acc_number',
|
||||
'line.partner_bank_id.bank_bic', {'line': line}, gen_args)
|
||||
'C', line.partner_bank_id, gen_args)
|
||||
self.generate_remittance_info_block(
|
||||
credit_transfer_transaction_info_2_27, line, gen_args)
|
||||
if pain_flavor in pain_03_to_05:
|
||||
|
||||
Reference in New Issue
Block a user