From c3b1a0eca7794c96da3f163ab4c9eba1f6c7738a Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Fri, 11 Mar 2016 22:54:22 +0100 Subject: [PATCH] [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 --- addons/purchase/purchase.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/purchase/purchase.py b/addons/purchase/purchase.py index c340ad6afe2..d28a14bdfa5 100644 --- a/addons/purchase/purchase.py +++ b/addons/purchase/purchase.py @@ -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 = {