Merge PR #1249 into 14.0

Signed-off-by pedrobaeza
This commit is contained in:
OCA-git-bot
2024-04-09 15:27:57 +00:00

View File

@@ -77,6 +77,8 @@ class AccountPaymentLineCreate(models.TransientModel):
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":