From 3c170c77e4913313ca28169172dbad8c8726ad5c Mon Sep 17 00:00:00 2001 From: "Indoteknik ." Date: Thu, 15 May 2025 13:19:22 +0700 Subject: (andri) add button sync price to SO & penyesuaian readonly pada orderline PO --- indoteknik_custom/views/purchase_order.xml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) (limited to 'indoteknik_custom/views/purchase_order.xml') diff --git a/indoteknik_custom/views/purchase_order.xml b/indoteknik_custom/views/purchase_order.xml index b58139c6..bd842a76 100755 --- a/indoteknik_custom/views/purchase_order.xml +++ b/indoteknik_custom/views/purchase_order.xml @@ -36,7 +36,9 @@ + @@ -140,19 +142,27 @@ - {'readonly': ['|', ('state', 'in', ['purchase', 'done', 'cancel']), ('has_active_invoice', '=', True)]} + {'readonly': ['|', ('state', 'in', ['done', 'cancel']), ('has_active_invoice', '=', True)]} + + + + + + + {'readonly': [('parent.state', 'in', ['purchase', 'done', 'cancel'])]} + - {'readonly': [], 'required': True} + {'readonly': [('parent.state', 'in', ['purchase', 'done', 'cancel'])], 'required': True} - {'readonly': []} + {'readonly': [('parent.state', 'in', ['purchase', 'done', 'cancel'])]} - {'required': True} + {'readonly': [('parent.state', 'in', ['purchase', 'done', 'cancel'])],'required': True} -- cgit v1.2.3 From caa3b18640a1cffb80677701da5598f42a795a7d Mon Sep 17 00:00:00 2001 From: "Indoteknik ." Date: Thu, 15 May 2025 15:30:11 +0700 Subject: (andri) revisi --- indoteknik_custom/views/purchase_order.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'indoteknik_custom/views/purchase_order.xml') diff --git a/indoteknik_custom/views/purchase_order.xml b/indoteknik_custom/views/purchase_order.xml index bd842a76..e1ff099b 100755 --- a/indoteknik_custom/views/purchase_order.xml +++ b/indoteknik_custom/views/purchase_order.xml @@ -38,7 +38,7 @@ @@ -146,7 +146,7 @@ - + -- cgit v1.2.3 From c61cb9fcd3d01b4ffafaa6446f9fd68b09a88ff7 Mon Sep 17 00:00:00 2001 From: "Indoteknik ." Date: Fri, 16 May 2025 11:17:25 +0700 Subject: (andri) hapus perubahan terkait sync price to SO pada branch ini --- indoteknik_custom/views/purchase_order.xml | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) (limited to 'indoteknik_custom/views/purchase_order.xml') diff --git a/indoteknik_custom/views/purchase_order.xml b/indoteknik_custom/views/purchase_order.xml index e1ff099b..0fbbb5e7 100755 --- a/indoteknik_custom/views/purchase_order.xml +++ b/indoteknik_custom/views/purchase_order.xml @@ -37,9 +37,6 @@ - @@ -142,27 +139,19 @@ - {'readonly': ['|', ('state', 'in', ['done', 'cancel']), ('has_active_invoice', '=', True)]} + {'readonly': ['|', ('state', 'in', ['purchase', 'done', 'cancel']), ('has_active_invoice', '=', True)]} - - - - - - - {'readonly': [('parent.state', 'in', ['purchase', 'done', 'cancel'])]} - - {'readonly': [('parent.state', 'in', ['purchase', 'done', 'cancel'])], 'required': True} + {'readonly': [], 'required': True} - {'readonly': [('parent.state', 'in', ['purchase', 'done', 'cancel'])]} + {'readonly': []} - {'readonly': [('parent.state', 'in', ['purchase', 'done', 'cancel'])],'required': True} + {'required': True} -- cgit v1.2.3