[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:
@@ -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"/>
|
||||
|
||||
Reference in New Issue
Block a user