Merge PR #705 into 17.0

Signed-off-by pedrobaeza
This commit is contained in:
OCA-git-bot
2024-09-23 06:17:48 +00:00

View File

@@ -162,8 +162,9 @@ class AccountAccountReconcile(models.Model):
counterparts = data["counterparts"]
amount = 0.0
for line_id in counterparts:
max_amount = amount if line_id == counterparts[-1] else 0
line = self._get_reconcile_line(
self.env["account.move.line"].browse(line_id), "other", True, amount
self.env["account.move.line"].browse(line_id), "other", True, max_amount
)
new_data["data"].append(line)
amount += line["amount"]