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