Merge PR #1164 into 14.0

Signed-off-by alexis-via
This commit is contained in:
OCA-git-bot
2023-11-06 10:57:12 +00:00

View File

@@ -31,7 +31,7 @@ class AccountMoveLine(models.Model):
if ( if (
ml.move_id.move_type in ("in_invoice", "in_refund") ml.move_id.move_type in ("in_invoice", "in_refund")
and not ml.reconciled 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 ml.account_id.internal_type in ("receivable", "payable")
and not any( and not any(
p_state in ("draft", "open", "generated") p_state in ("draft", "open", "generated")