Skip to content

Commit

Permalink
[15.0][FIX] sale_unreconciled: reconcile exit condition
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronHForgeFlow committed May 12, 2022
1 parent d788acf commit 9cc3d49
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sale_unreconciled/models/sale_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,9 @@ def action_reconcile(self):
)
# First try to reconcile the lines automatically to prevent unwanted
# write-offs
if not sum(acc_unrec_items.mapped("amount_residual")) and not sum(
acc_unrec_items.mapped("amount_residual_currency")
if all(
not x.amount_residual and not x.amount_residual_currency
for x in acc_unrec_items
):
# nothing to reconcile
continue
Expand Down

0 comments on commit 9cc3d49

Please sign in to comment.