From 18d59342157e804304a4947a69bb9f9a1bdd5e7c Mon Sep 17 00:00:00 2001 From: Arnold Moyaux Date: Wed, 15 Nov 2023 17:21:17 +0100 Subject: [PATCH] [FIX] stock: redirect to location view from product It's easier to update the quantity from there and people don't want to do a real inventory from this view Part-of: odoo/odoo#142237 --- addons/stock/models/product.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/stock/models/product.py b/addons/stock/models/product.py index 0bfb825e5aa..f5380cacd28 100644 --- a/addons/stock/models/product.py +++ b/addons/stock/models/product.py @@ -551,7 +551,7 @@ class Product(models.Model): ) else: self = self.with_context(product_tmpl_ids=self.product_tmpl_id.ids) - action = self.env['stock.quant'].action_view_inventory() + action = self.env['stock.quant'].action_view_quants() # note that this action is used by different views w/varying customizations if not self.env.context.get('is_stock_report'): action['domain'] = [('product_id', 'in', self.ids)]