diff --git a/addons/stock_account/models/product.py b/addons/stock_account/models/product.py index dcd197489fb..b035a23ec2b 100644 --- a/addons/stock_account/models/product.py +++ b/addons/stock_account/models/product.py @@ -249,12 +249,14 @@ class ProductProduct(models.Model): """ self.ensure_one() to_date = self.env.context.get('to_date') + ctx = self.env.context.copy() + ctx.pop('group_by', None) action = { 'name': _('Valuation at date'), 'type': 'ir.actions.act_window', 'view_type': 'form', 'view_mode': 'tree,form', - 'context': self.env.context, + 'context': ctx, } if self.valuation == 'real_time': action['res_model'] = 'account.move.line'