summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis de Lattre <alexis.delattre@akretion.com>2016-12-12 12:35:42 +0100
committerMartin Trigaux <mat@odoo.com>2016-12-12 15:57:29 +0100
commit5da4df80928c8db0f6c46ebe6f2c11ea87d36ec8 (patch)
tree4f088bb71340fb67c62097c17e8f7c85cbc625e3
parenta9b0af7dd5959a794fca7d8ed4aa588b68fc3707 (diff)
[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
-rw-r--r--addons/mrp/views/product_views.xml4
-rw-r--r--addons/stock/views/product_views.xml2
2 files changed, 3 insertions, 3 deletions
diff --git a/addons/mrp/views/product_views.xml b/addons/mrp/views/product_views.xml
index aab72436df9..42f910d4339 100644
--- a/addons/mrp/views/product_views.xml
+++ b/addons/mrp/views/product_views.xml
@@ -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> \ No newline at end of file
+</odoo>
diff --git a/addons/stock/views/product_views.xml b/addons/stock/views/product_views.xml
index 6b8fbb71937..019ea9e3e50 100644
--- a/addons/stock/views/product_views.xml
+++ b/addons/stock/views/product_views.xml
@@ -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.