diff --git a/addons/mrp/mrp.py b/addons/mrp/mrp.py index 33e3eb0d242..e87962e9ab6 100644 --- a/addons/mrp/mrp.py +++ b/addons/mrp/mrp.py @@ -1078,11 +1078,13 @@ class mrp_procurement(osv.osv): newdate = newdate - DateTime.RelativeDateTime(days=company.po_lead) newdate = newdate - procurement.product_id.seller_ids[0].delay - context.update({'lang':partner.lang}) + #Passing partner_id to context for purchase order line integrity of Line name + context.update({'lang':partner.lang, 'partner_id':partner_id}) + product=self.pool.get('product.product').browse(cr,uid,procurement.product_id.id,context=context) line = { - 'name': product.name, + 'name': product.partner_ref, 'product_qty': qty, 'product_id': procurement.product_id.id, 'product_uom': uom_id,