[IMP] purchase: do not display Incoming Shipments and Invoices button when not needed

This commit is contained in:
Martin Trigaux 2014-06-25 15:52:25 +02:00
parent 343cc85808
commit cea4861bd2
1 changed files with 2 additions and 2 deletions

View File

@ -35,13 +35,13 @@
name="view_picking"
class="oe_stat_button"
icon="fa-truck"
states="approved">
attrs="{'invisible': [('shipment_count', '=', 0)]}">
<field name="shipment_count" widget="statinfo" string="In Shipments" help="Incoming Shipments"/>
</button>
<button type="object" name="invoice_open"
class="oe_stat_button"
icon="fa-pencil-square-o"
attrs="{'invisible': [('state', 'in', ['draft','sent'])]}">
attrs="{'invisible': [('invoice_count', '=', 0)]}">
<field name="invoice_count" widget="statinfo" string="Invoices"/>
</button>
</div>