[IMP] stock : Route button on consumable products

-Previously, route state button was visible only on stockable products but now it'll be visible on consumable products too.
This task is related to task id: 1945832

closes odoo/odoo#31623

Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
This commit is contained in:
Hetal Dhanak
2019-04-05 07:02:54 +00:00
parent 1208d7f839
commit 8b7f88edd2
+2 -2
View File
@@ -263,7 +263,7 @@
</button>
<button string="Routes" type="action"
name="%(action_stock_rules_report)d"
attrs="{'invisible':[('type', '!=', 'product')]}"
attrs="{'invisible':[('type', 'not in', ['product', 'consu'])]}"
class="oe_stat_button" icon="fa-cogs"
context="{'default_product_id': id}"
groups="stock.group_stock_multi_locations"/>
@@ -352,7 +352,7 @@
</button>
<button string="Routes" type="action"
name="%(action_stock_rules_report)d"
attrs="{'invisible':[('type', '!=', 'product')]}"
attrs="{'invisible':[('type', 'not in', ['product', 'consu'])]}"
class="oe_stat_button" icon="fa-cogs"
context="{'default_product_tmpl_id': id}"
groups="stock.group_stock_multi_locations"/>