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:
sergio-incaser
2015-07-08 10:07:40 +02:00
committed by Carlos Roca
parent a97f1095e5
commit 31608ce88d

View File

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