summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2025-05-09 16:02:24 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2025-05-09 16:02:24 +0700
commit6600698b2e80a8cc86266b7cbad64470d4bcb8b8 (patch)
treef1e4e52d7e451e322b6980b678f79e20d158bdd1
parentd952f5288b360c4013064b8b6848a54b3c0a20ad (diff)
add attributes untuk payment terms so
-rwxr-xr-xindoteknik_custom/views/sale_order.xml6
1 files changed, 6 insertions, 0 deletions
diff --git a/indoteknik_custom/views/sale_order.xml b/indoteknik_custom/views/sale_order.xml
index ed389b4c..e0085eeb 100755
--- a/indoteknik_custom/views/sale_order.xml
+++ b/indoteknik_custom/views/sale_order.xml
@@ -296,6 +296,12 @@
['cancel','draft'])]}
</attribute>
</field>
+ <field name="payment_term_id" position="attributes">
+ <attribute name="attrs">
+ {'readonly': [('approval_status', '=', 'approved'), ('state', 'not in',
+ ['cancel','draft'])]}
+ </attribute>
+ </field>
<page name="customer_signature" position="after">
<page string="Website" name="customer_purchase_order">