[IMP] sale : If sale order is not fully 'invoiced' , 'Create Invoice' button must be visible .

bzr revid: mdi@tinyerp.com-20120827095428-8h6sx3g79aqn20n8
This commit is contained in:
Divyesh Makwana (Open ERP) 2012-08-27 15:24:28 +05:30
parent 65f532e001
commit a1fa71621b
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@
<button name="action_view_delivery" string="View Delivery Order" type="object" class="oe_highlight"
attrs="{'invisible': ['|','|','|',('picking_ids','=',False),('picking_ids','=',[]), ('state', 'not in', ('progress','manual')),('shipped','=',True)]}"/>
<button name="%(action_view_sale_advance_payment_inv)d" string="Create Invoice"
type="action" states="manual" class="oe_highlight"/>
attrs="{'invisible' : ['|',('state', '!=', 'manual'), ('invoiced', '=', True)]}" type="action" class="oe_highlight"/>
<button name="cancel" states="draft,sent" string="Cancel"/>
<button name="action_cancel" states="manual,progress" string="Cancel" type="object"/>
<button name="ship_cancel" states="shipping_except" string="Cancel"/>