diff --git a/account_payment_order/wizard/account_payment_line_create.py b/account_payment_order/wizard/account_payment_line_create.py index ac062c62f76..7169a3a07e6 100644 --- a/account_payment_order/wizard/account_payment_line_create.py +++ b/account_payment_order/wizard/account_payment_line_create.py @@ -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":