From 158f95b2f9a06c3f32bb5623992a04e846ee13a9 Mon Sep 17 00:00:00 2001 From: IT Fixcomart Date: Mon, 19 Dec 2022 11:57:53 +0700 Subject: readonly price unit and purchase price if so approved --- indoteknik_custom/views/sale_order.xml | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/indoteknik_custom/views/sale_order.xml b/indoteknik_custom/views/sale_order.xml index 915b15ae..fed0b08d 100755 --- a/indoteknik_custom/views/sale_order.xml +++ b/indoteknik_custom/views/sale_order.xml @@ -25,9 +25,28 @@ + + + { + 'readonly': [ + '|', + ('qty_invoiced', '>', 0), + ('parent.approval_status', '=', 'approved') + ] + } + + - + -- cgit v1.2.3