summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2025-05-07 03:35:28 +0000
committerIT Fixcomart <it@fixcomart.co.id>2025-05-07 03:35:28 +0000
commitdcd8ab2d0f48b7f4cfd0bb7233d5190158013e9e (patch)
treef9f0d2c25742407a88b39b647e9f557d08058b04
parentab1c5cabe7bdcfb950a2d7201ce367eea49ad7f2 (diff)
parentd3df18ba29101fbce6a249915436d741a70ad810 (diff)
Merged in po-lock-and-logproduct (pull request #298)
(andri) tidak bisa edit data product jika sudah status PO (meskipun sudah di unlock)
-rwxr-xr-xindoteknik_custom/views/purchase_order.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/views/purchase_order.xml b/indoteknik_custom/views/purchase_order.xml
index d6ad2408..920268bc 100755
--- a/indoteknik_custom/views/purchase_order.xml
+++ b/indoteknik_custom/views/purchase_order.xml
@@ -140,7 +140,7 @@
</field>
<field name="order_line" position="attributes">
- <attribute name="attrs">{'readonly': ['|', ('state', 'in', ['done', 'cancel']), ('has_active_invoice', '=', True)]}</attribute>
+ <attribute name="attrs">{'readonly': ['|', ('state', 'in', ['purchase', 'done', 'cancel']), ('has_active_invoice', '=', True)]}</attribute>
</field>
<xpath expr="//form/sheet/notebook/page/field[@name='order_line']/tree/field[@name='price_unit']" position="attributes">