mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
account_banking_sepa_direct_debit: Fix error in payment order validation when there is more than one line with the same mandate.
This commit is contained in:
committed by
Pedro M. Baeza
parent
986da771a2
commit
68771ffc9d
@@ -375,6 +375,8 @@ class BankingExportSddWizard(models.TransientModel):
|
||||
first_mandates = abmo.browse([])
|
||||
all_mandates = abmo.browse([])
|
||||
for line in order.line_ids:
|
||||
if line.mandate_id in all_mandates:
|
||||
continue
|
||||
all_mandates += line.mandate_id
|
||||
if line.mandate_id.type == 'oneoff':
|
||||
to_expire_mandates += line.mandate_id
|
||||
|
||||
Reference in New Issue
Block a user