summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views
diff options
context:
space:
mode:
Diffstat (limited to 'indoteknik_custom/views')
-rwxr-xr-xindoteknik_custom/views/sale_order.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/indoteknik_custom/views/sale_order.xml b/indoteknik_custom/views/sale_order.xml
index 569c59f3..54c01594 100755
--- a/indoteknik_custom/views/sale_order.xml
+++ b/indoteknik_custom/views/sale_order.xml
@@ -14,6 +14,7 @@
<button name="do_unreserve"
string="Unreserve Picking"
type="object"
+ attrs="{'invisible': [('state', 'not in', ['draft', 'cancel', 'done'])]}"
/>
<button name="sale_order_approve"
string="Ask Approval"