[IMP]sale: update the domain on Open delivery order button so it will work on web and gtk

bzr revid: psi@tinyerp.com-20120321124245-kfxrszc13za2cjtu
This commit is contained in:
Purnendu Singh (OpenERP)
2012-03-21 18:12:45 +05:30
parent aa9879ae2e
commit 6c2be6eba4
+1 -1
View File
@@ -214,7 +214,7 @@
attrs="{'invisible': ['|','|','|',('state', '!=','progress'), ('invoiced', '=', True),('order_policy','=','picking'),
'&','&',('order_policy','=','postpaid'),('state', '=','progress'),('shipped','=',False)]}"/>
<button name="action_view_delivery" string="Open Delivery Order" icon="gtk-go-forward" type="object"
attrs="{'invisible': ['|','|', ('picking_ids','=',[]), ('state', 'not in', ('progress','manual')),('shipped','=',True)]}"/>
attrs="{'invisible': ['|','|','|',('picking_ids','=',False),('picking_ids','=',[]), ('state', 'not in', ('progress','manual')),('shipped','=',True)]}"/>
<button name="cancel" states="draft,sent" string="Cancel Order" icon="gtk-cancel"/>
<button name="action_cancel" states="manual,progress" string="Cancel Order" type="object" icon="gtk-cancel"/>
<button name="ship_cancel" states="shipping_except" string="Cancel Order" icon="gtk-cancel"/>