From 7fe2c169a448df17c9395dfae20c524e94aa8bfc Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Tue, 16 Sep 2025 09:27:32 +0700 Subject: push --- indoteknik_custom/views/purchase_order.xml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'indoteknik_custom/views') diff --git a/indoteknik_custom/views/purchase_order.xml b/indoteknik_custom/views/purchase_order.xml index 821f3295..a3a5e05c 100755 --- a/indoteknik_custom/views/purchase_order.xml +++ b/indoteknik_custom/views/purchase_order.xml @@ -112,6 +112,7 @@ + {'no_create': True} @@ -181,19 +182,20 @@ - {'readonly': ['|', ('state', 'in', ['purchase', 'done', 'cancel']), ('has_active_invoice', '=', True)]} + + {'readonly': [('has_active_invoice', '=', True)]} - {'readonly': [], 'required': True} + {'readonly': [('state', 'in', ['purchase', 'done', 'cancel'])], 'required': True} - {'readonly': []} + {'readonly': [('state', 'in', ['purchase', 'done', 'cancel'])]} - {'required': True} + {'readonly': [('state', 'in', ['purchase', 'done', 'cancel'])], 'required': True} -- cgit v1.2.3