[FIX] mrp,stock: use correct product filter

filter 'products' doesn't exist on product.template, it is named 'consumable'
rename 'search_default_products' to 'search_default_consumable' in actions

Closes #14690
This commit is contained in:
Alexis de Lattre
2016-12-12 15:57:29 +01:00
committed by Martin Trigaux
parent a9b0af7dd5
commit 5da4df8092
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -31,7 +31,7 @@
<field name="res_model">product.template</field>
<field name="view_type">form</field>
<field name="view_mode">kanban,tree,form</field>
<field name="context">{"search_default_products": 1, 'default_type': 'product'}</field>
<field name="context">{"search_default_consumable": 1, 'default_type': 'product'}</field>
</record>
<menuitem id="menu_mrp_product_form"
name="Products"
@@ -76,4 +76,4 @@
</field>
</record>
</data>
</odoo>
</odoo>
+1 -1
View File
@@ -380,7 +380,7 @@
<field name="res_model">product.template</field>
<field name="view_mode">kanban,tree,form</field>
<field name="view_type">form</field>
<field name="context">{"search_default_products": 1, 'default_type': 'product'}</field>
<field name="context">{"search_default_consumable": 1, 'default_type': 'product'}</field>
<field name="help" type="html">
<p class="oe_view_nocontent_create">
Click to define a new product.