diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2024-03-15 14:28:41 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2024-03-15 14:28:41 +0700 |
| commit | 3df78ee977b1800030248f561ee4f3c690bae329 (patch) | |
| tree | b88c7a42ba038b08b8893874d55f69d01c6325dd | |
| parent | f43c76e2e7fb1a2e46f6e698afb1da74961cad50 (diff) | |
add attributes on shipping method so
| -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"> |
