[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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user