mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
@@ -31,7 +31,7 @@ class AccountMoveLine(models.Model):
|
||||
if (
|
||||
ml.move_id.move_type in ("in_invoice", "in_refund")
|
||||
and not ml.reconciled
|
||||
and ml.payment_mode_id.payment_order_ok
|
||||
and (ml.payment_mode_id.payment_order_ok or not ml.payment_mode_id)
|
||||
and ml.account_id.internal_type in ("receivable", "payable")
|
||||
and not any(
|
||||
p_state in ("draft", "open", "generated")
|
||||
|
||||
Reference in New Issue
Block a user