[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
This commit is contained in:
Arnold Moyaux
2023-11-16 10:19:43 +00:00
parent 15c12584cf
commit 18d5934215
+1 -1
View File
@@ -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)]