[FIX] stock: expression error

Without this fix, the button of order rules does not appear in the form with a
product.product model.

Closes #14285
This commit is contained in:
Florent de Labarre
2016-11-14 17:03:15 +01:00
committed by Martin Trigaux
parent f68a304d1d
commit 7be6c7404a
+1 -1
View File
@@ -239,7 +239,7 @@
<field name="nbr_reordering_rules" widget="statinfo"/>
</button>
<button name="%(product_open_orderpoint)d" type="action"
attrs="{'invisible':['|',('type', '!=', ['product', 'consu']),('nbr_reordering_rules', '!=', 1)]}"
attrs="{'invisible':['|',('type', 'not in', ['product', 'consu']),('nbr_reordering_rules', '!=', 1)]}"
class="oe_stat_button" icon="fa-refresh">
<div class="o_form_field o_stat_info mr4">
<span class="o_stat_text">Min :</span>