[FIX] sale_stock: show complete name of product
In case of changing the quantity on hand of two variants of the same product, the two message created will have the same name (the name of the product.template). Show the name of variant instead.
This commit is contained in:
committed by
Josse Colpaert
parent
6ef1269abe
commit
99d287e43f
@@ -346,5 +346,5 @@ class SaleOrderLine(models.Model):
|
||||
pickings = line.order_id.picking_ids.filtered(lambda p: p.state not in ('done', 'cancel'))
|
||||
for picking in pickings:
|
||||
picking.message_post("The quantity of %s has been updated from %d to %d in %s" %
|
||||
(line.product_id.name, line.product_uom_qty, values['product_uom_qty'], line.order_id.name))
|
||||
(line.product_id.display_name, line.product_uom_qty, values['product_uom_qty'], line.order_id.name))
|
||||
super(SaleOrderLine, self)._update_line_quantity(values)
|
||||
|
||||
Reference in New Issue
Block a user