diff --git a/sf_manufacturing/views/sale_order_views.xml b/sf_manufacturing/views/sale_order_views.xml index 8e1d1061..aa5bfaa0 100644 --- a/sf_manufacturing/views/sale_order_views.xml +++ b/sf_manufacturing/views/sale_order_views.xml @@ -22,11 +22,11 @@ + + + - {'invisible': [('state', '!=', 'draft')]} - - - {'invisible': [('state', '!=', 'draft')]} + {'invisible': [('state', 'not in', ['draft', 'supply method', 'sale', 'processing'])]} {'invisible': ['|','&',('check_status', '!=', 'approved'),('state', 'in', ['draft','cancel','supply method']),'&',('check_status', '=', 'approved'),('state', 'in', ['sale','cancel','supply method'])]}