Skip to content

Commit

Permalink
Merge PR OCA#1250 into 17.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Apr 9, 2024
2 parents 8e00a53 + 2d42cfd commit 93a8783
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 93a8783

Please sign in to comment.