diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2024-08-29 13:30:18 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2024-08-29 13:30:18 +0700 |
| commit | 18e3b9d7abe9210c74b321fda489a049795774a2 (patch) | |
| tree | fba61cc04eccc4e1676cc48c7bfa78e2ce16dbf7 | |
| parent | 0e9e58da406e62a72ce2ba18c6317e3de57963a1 (diff) | |
add attrs to payment term po
| -rwxr-xr-x | indoteknik_custom/views/purchase_order.xml | 2 |
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"/> |
