[FIX] purchase: retrieve product full name in dropshipping
The name field is the name of the product.template while the display_name will contains the variant description and product code to allow to identitfy which product.product is moved. Closes #11311
This commit is contained in:
parent
8b83119fad
commit
c3b1a0eca7
|
@ -786,7 +786,7 @@ class purchase_order(osv.osv):
|
||||||
price_unit = self.pool.get('res.currency').compute(cr, uid, order.currency_id.id, order.company_id.currency_id.id, price_unit, round=False, context=context)
|
price_unit = self.pool.get('res.currency').compute(cr, uid, order.currency_id.id, order.company_id.currency_id.id, price_unit, round=False, context=context)
|
||||||
res = []
|
res = []
|
||||||
if order.location_id.usage == 'customer':
|
if order.location_id.usage == 'customer':
|
||||||
name = order_line.product_id.with_context(dict(context or {}, lang=order.dest_address_id.lang)).name
|
name = order_line.product_id.with_context(dict(context or {}, lang=order.dest_address_id.lang)).display_name
|
||||||
else:
|
else:
|
||||||
name = order_line.name or ''
|
name = order_line.name or ''
|
||||||
move_template = {
|
move_template = {
|
||||||
|
|
Loading…
Reference in New Issue