From dc1681b1f8874188b3edf78a4b89913a63c6987d Mon Sep 17 00:00:00 2001 From: Florent de Labarre Date: Thu, 15 Mar 2018 18:59:01 +0100 Subject: [PATCH] [FIX] stock: show complete name of product In case of changing the quantity on hand of two variants of the same product, the two inventory adjustment created will have the same name (the name of the product.template). Show the name of variant instead. Closes #23696 --- addons/stock/wizard/stock_change_product_qty.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/stock/wizard/stock_change_product_qty.py b/addons/stock/wizard/stock_change_product_qty.py index b29e4080e3b..1528d134079 100644 --- a/addons/stock/wizard/stock_change_product_qty.py +++ b/addons/stock/wizard/stock_change_product_qty.py @@ -94,7 +94,7 @@ class ProductChangeQuantity(models.TransientModel): else: inventory_filter = 'none' inventory = Inventory.create({ - 'name': _('INV: %s') % tools.ustr(wizard.product_id.name), + 'name': _('INV: %s') % tools.ustr(wizard.product_id.display_name), 'filter': inventory_filter, 'product_id': wizard.product_id.id, 'location_id': wizard.location_id.id,