diff options
| -rwxr-xr-x | indoteknik_custom/views/sale_order.xml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/indoteknik_custom/views/sale_order.xml b/indoteknik_custom/views/sale_order.xml index 97726ed7..97b0a598 100755 --- a/indoteknik_custom/views/sale_order.xml +++ b/indoteknik_custom/views/sale_order.xml @@ -140,6 +140,11 @@ <field name="estimated_arrival_days"/> <field name="picking_iu_id"/> </field> + <field name="carrier_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"> |
