summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafi Zadanly <zadanlyr@gmail.com>2023-09-25 15:35:07 +0700
committerRafi Zadanly <zadanlyr@gmail.com>2023-09-25 15:35:07 +0700
commit1fe1fb9b986db7191f6b90e005ddb30f4973711d (patch)
tree3fc4bc91792d874c6db96e4cdec67c1f5ed209d6
parent447b8587ff5203e7ee0b27967bf27d2e4bf9ab48 (diff)
Remove readonly on order line when voucher applied
-rwxr-xr-xindoteknik_custom/views/sale_order.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/views/sale_order.xml b/indoteknik_custom/views/sale_order.xml
index bfdfc743..1e83d4b4 100755
--- a/indoteknik_custom/views/sale_order.xml
+++ b/indoteknik_custom/views/sale_order.xml
@@ -62,7 +62,7 @@
</field>
<xpath expr="//form/sheet/notebook/page/field[@name='order_line']" position="attributes">
<attribute name="attrs">
- {'readonly': ['|', ('applied_voucher_id', '!=', False), ('state', 'in', ('done','cancel'))]}
+ {'readonly': [('state', 'in', ('done','cancel'))]}
</attribute>
</xpath>
<xpath expr="//form/sheet/notebook/page/field[@name='order_line']/tree/field[@name='price_unit']" position="attributes">