From 6947313cd0a3596fb5d6bb945ade38500657a9ee Mon Sep 17 00:00:00 2001 From: Goffin Simon Date: Mon, 24 Aug 2015 10:10:26 +0200 Subject: [PATCH] [FIX] purchase: customer lang Introduced by f7f18ba5b1bf601ba89c50738c05ce4b98af91bf The lang of the customer must be used. In the drop shipping use case (order.location_id.usage == 'customer'), the customer is in the destination address of the order (order.dest_address_id). opw:647628 --- 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 d1ac4694628..b2452d77735 100644 --- a/addons/purchase/purchase.py +++ b/addons/purchase/purchase.py @@ -747,7 +747,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.name + name = order_line.product_id.with_context(dict(context or {}, lang=order.dest_address_id.lang)).name else: name = order_line.name or '' move_template = {