diff --git a/addons/stock_account/views/product_views.xml b/addons/stock_account/views/product_views.xml index e6d14d02309..f029db4ce51 100644 --- a/addons/stock_account/views/product_views.xml +++ b/addons/stock_account/views/product_views.xml @@ -95,7 +95,7 @@ form [('type', '=', 'product'), ('qty_available', '!=', 0)] - {} + {'company_owned': True}

If there are products, you will see its name and valuation. diff --git a/addons/stock_account/wizard/stock_quantity_history.py b/addons/stock_account/wizard/stock_quantity_history.py index 6b244d13ac2..fe920a457bb 100644 --- a/addons/stock_account/wizard/stock_quantity_history.py +++ b/addons/stock_account/wizard/stock_quantity_history.py @@ -24,7 +24,7 @@ class StockQuantityHistory(models.TransientModel): 'name': _('Products'), 'res_model': 'product.product', 'domain': "[('type', '=', 'product'), ('qty_available', '!=', 0)]", - 'context': dict(self.env.context, to_date=self.date), + 'context': dict(self.env.context, to_date=self.date, company_owned=True), } return action else: