diff --git a/addons/stock/models/stock_quant.py b/addons/stock/models/stock_quant.py index 3a9f269c292..005a2d68f57 100644 --- a/addons/stock/models/stock_quant.py +++ b/addons/stock/models/stock_quant.py @@ -617,13 +617,15 @@ class StockQuant(models.Model): :param extend: If True, enables form, graph and pivot views. False by default. """ self._quant_tasks() + ctx = dict(self.env.context or {}) + ctx.pop('group_by', None) action = { 'name': _('Update Quantity'), 'view_type': 'tree', 'view_mode': 'list', 'res_model': 'stock.quant', 'type': 'ir.actions.act_window', - 'context': self.env.context, + 'context': ctx, 'domain': domain or [], 'help': """

No Stock On Hand