Skip to content

Commit

Permalink
[FIX] account_payment_order: exclude cancel journal entries
Browse files Browse the repository at this point in the history
Always exclude cancel journal entries in the wizard that adds payment lines to payment order.
  • Loading branch information
alexis-via committed Apr 9, 2024
1 parent 8e00a53 commit 2d42cfd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions account_payment_order/wizard/account_payment_line_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ def _prepare_move_line_domain(self):
domain += [("partner_id", "in", self.partner_ids.ids)]
if self.target_move == "posted":
domain += [("move_id.state", "=", "posted")]
else:
domain += [("move_id.state", "in", ("draft", "posted"))]
if not self.allow_blocked:
domain += [("blocked", "!=", True)]
if self.date_type == "due":
Expand Down

0 comments on commit 2d42cfd

Please sign in to comment.