diff options
| -rwxr-xr-x | indoteknik_custom/views/sale_order.xml | 6 |
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"> |
