diff --git a/addons/stock/models/stock_quant.py b/addons/stock/models/stock_quant.py
index 582d24d1033..7a247fa1fea 100644
--- a/addons/stock/models/stock_quant.py
+++ b/addons/stock/models/stock_quant.py
@@ -15,6 +15,10 @@ class StockQuant(models.Model):
product_id = fields.Many2one(
'product.product', 'Product',
ondelete='restrict', readonly=True, required=True)
+ # so user can filter on template in webclient
+ product_tmpl_id = fields.Many2one(
+ 'product.template', string='Product Template',
+ related='product_id.product_tmpl_id')
product_uom_id = fields.Many2one(
'product.uom', 'Unit of Measure',
readonly=True, related='product_id.uom_id')
diff --git a/addons/stock/views/stock_quant_views.xml b/addons/stock/views/stock_quant_views.xml
index e92515f6037..750fdbe5b56 100644
--- a/addons/stock/views/stock_quant_views.xml
+++ b/addons/stock/views/stock_quant_views.xml
@@ -18,6 +18,7 @@
+
@@ -62,12 +63,13 @@
-
-
-
+
+
+
+
@@ -79,18 +81,30 @@
stock.quant
-
+
+
+
+ stock.quant.graph
+ stock.quant
+
+
+
+
+
+
+
+
Inventory
stock.quant
form
- tree,form,pivot
- {'search_default_internal_loc': 1, 'search_default_transit_loc': 1}
+ tree,form,pivot,graph
+ {'search_default_internal_loc': 1,}
This analysis gives you a fast overview on the current stock level of your products and their current inventory value.