Skip to content

Commit

Permalink
[FIX] account_commission: No skip reversed invoices in settlements
Browse files Browse the repository at this point in the history
  • Loading branch information
omar7r committed Oct 13, 2023
1 parent ec6c9bb commit ac0ecd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion account_commission/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,5 +264,5 @@ def _skip_settlement(self):
self.ensure_one()
return (
self.commission_id.invoice_state == "paid"
and self.invoice_id.payment_state not in ["in_payment", "paid"]
and self.invoice_id.payment_state not in ["in_payment", "paid", "reversed"]
) or self.invoice_id.state != "posted"

0 comments on commit ac0ecd9

Please sign in to comment.