From 90b6cbde094173bc1e633bffa7d05ada92c4ae7b Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Thu, 31 Jan 2019 17:41:54 +0000 Subject: [PATCH] [FIX] stock: select stockable only When `stock_account` is not installed, the Inventory Report do not filter out services or consumable. opw-1925598 closes odoo/odoo#30742 --- addons/stock/wizard/stock_quantity_history.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/stock/wizard/stock_quantity_history.py b/addons/stock/wizard/stock_quantity_history.py index 595a5c8de88..4c61726671f 100644 --- a/addons/stock/wizard/stock_quantity_history.py +++ b/addons/stock/wizard/stock_quantity_history.py @@ -28,6 +28,7 @@ class StockQuantityHistory(models.TransientModel): 'view_mode': 'tree,form', 'name': _('Products'), 'res_model': 'product.product', + 'domain': "[('type', '=', 'product')]", 'context': dict(self.env.context, to_date=self.date), } return action