mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
[ADD] sepa: support for Purpose Code
This commit is contained in:
committed by
Carlos Roca
parent
76f41dd594
commit
22980d0caa
@@ -215,6 +215,11 @@ class AccountPaymentOrder(models.Model):
|
||||
dd_transaction_info, 'Dbtr', 'C',
|
||||
line.partner_bank_id, gen_args, line)
|
||||
|
||||
if line.purpose:
|
||||
purpose = etree.SubElement(
|
||||
dd_transaction_info, 'Purp')
|
||||
etree.SubElement(purpose, 'Cd').text = line.purpose
|
||||
|
||||
self.generate_remittance_info_block(
|
||||
dd_transaction_info, line, gen_args)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user