summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2025-07-31 11:01:23 +0000
committerIT Fixcomart <it@fixcomart.co.id>2025-07-31 11:01:23 +0000
commit4ad7f4cb0ff3a1072d14531dfe9e5e0e8ac5ef14 (patch)
tree3f20f373c919fe7b3f079ef6ab669af0ec6305b7 /indoteknik_custom/views
parent6c12652fd713483b3f5af6106a00695eedba46f3 (diff)
parenta05a1dc3f4c936c0162f66a24f69ca8b236acfea (diff)
Merged in payment_term_so (pull request #373)
<miqdad> add validation when changing not matched payment term
Diffstat (limited to 'indoteknik_custom/views')
-rwxr-xr-xindoteknik_custom/views/sale_order.xml5
1 files changed, 3 insertions, 2 deletions
diff --git a/indoteknik_custom/views/sale_order.xml b/indoteknik_custom/views/sale_order.xml
index e8f41ca3..868bce7b 100755
--- a/indoteknik_custom/views/sale_order.xml
+++ b/indoteknik_custom/views/sale_order.xml
@@ -355,8 +355,9 @@
</field>
<field name="payment_term_id" position="attributes">
<attribute name="attrs">
- {'readonly': [('approval_status', '=', 'approved'), ('state', 'not in',
- ['cancel', 'draft'])]}
+ {'readonly': ['|', ('approval_status', 'in', ['pengajuan1', 'pengajuan2', 'approved']),
+ ('state', 'not in',
+ ['cancel', 'draft'])]}
</attribute>
</field>