[FIX] purchase: pickings stat button visibility

When you create a purchase order for a product of service type, the
picking stat button is displayed but there's no linked pickings. When
clicking on the stat button, all pickings were displayed, which is
wrong.

Issue:#9181
Task:#1817421
This commit is contained in:
chirag
2018-04-16 14:23:49 +02:00
committed by Simon Lejeune
parent 752dcc761c
commit 941ddaee74
+1 -1
View File
@@ -158,7 +158,7 @@
<button type="object"
name="action_view_picking"
class="oe_stat_button"
icon="fa-truck">
icon="fa-truck" attrs="{'invisible':[('picking_count','=', 0)]}">
<field name="picking_count" widget="statinfo" string="Shipment" help="Incoming Shipments"/>
</button>
<button type="object" name="action_view_invoice"