[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:
Pedro M. Baeza 2016-03-11 22:54:22 +01:00 committed by Martin Trigaux
parent 8b83119fad
commit c3b1a0eca7
No known key found for this signature in database
GPG Key ID: 7B0E288E7C0F83A7
1 changed files with 1 additions and 1 deletions

View File

@ -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)
res = []
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:
name = order_line.name or ''
move_template = {