[FIX] account_reconcile_oca: Models where failing on default with a different currency

This commit is contained in:
Enric Tobella
2023-08-28 16:30:55 +02:00
parent c11225c681
commit 91e974803f

View File

@@ -435,7 +435,7 @@ class AccountBankStatementLine(models.Model):
self.manual_reference self.manual_reference
) )
elif res and res.get("amls"): elif res and res.get("amls"):
amount = self.amount amount = self.amount_total_signed
for line in res.get("amls", []): for line in res.get("amls", []):
line_data = self._get_reconcile_line( line_data = self._get_reconcile_line(
line, "other", is_counterpart=True, max_amount=amount line, "other", is_counterpart=True, max_amount=amount