mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
[FIX] account_payment_order: exclude cancel journal entries
Always exclude cancel journal entries in the wizard that adds payment lines to payment order.
This commit is contained in:
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user