[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
This commit is contained in:
Florent de Labarre
2018-03-16 08:58:02 +01:00
committed by Martin Trigaux
parent 45607de944
commit dc1681b1f8
@@ -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,