mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
account_payment_order: payment_mode_id readonly when state != draft
This commit is contained in:
committed by
Marçal Isern
parent
74bed02f0e
commit
fd1ec5ab85
@@ -23,6 +23,7 @@ class AccountPaymentOrder(models.Model):
|
||||
required=True,
|
||||
ondelete="restrict",
|
||||
tracking=True,
|
||||
readonly=True,
|
||||
states={"draft": [("readonly", False)]},
|
||||
check_company=True,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user