diff options
| -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"/> |
