diff --git a/addons/purchase/purchase.py b/addons/purchase/purchase.py index 95d4da6fe1b..d1ac4694628 100644 --- a/addons/purchase/purchase.py +++ b/addons/purchase/purchase.py @@ -746,8 +746,12 @@ class purchase_order(osv.osv): #we don't round the price_unit, as we may want to store the standard price with more digits than allowed by the currency 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 + else: + name = order_line.name or '' move_template = { - 'name': order_line.name or '', + 'name': name, 'product_id': order_line.product_id.id, 'product_uom': order_line.product_uom.id, 'product_uos': order_line.product_uom.id,