summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2024-08-29 13:30:18 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2024-08-29 13:30:18 +0700
commit18e3b9d7abe9210c74b321fda489a049795774a2 (patch)
treefba61cc04eccc4e1676cc48c7bfa78e2ce16dbf7
parent0e9e58da406e62a72ce2ba18c6317e3de57963a1 (diff)
add attrs to payment term po
-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 25b7787b..b936086a 100755
--- a/indoteknik_custom/views/purchase_order.xml
+++ b/indoteknik_custom/views/purchase_order.xml
@@ -39,7 +39,7 @@
<field name="currency_id" position="after">
<field name="summary_qty_po"/>
<field name="count_line_product"/>
- <field name="payment_term_id" required="1"/>
+ <field name="payment_term_id" required="1" attrs="{'readonly': [('state', 'not in', ['draft'])]}"/>
</field>
<field name="amount_total" position="after">
<field name="total_margin"/>