[FIX]purchase_requisition: forgot to read product in supplier language when trying to get supplier description info

bzr revid: csn@openerp.com-20130612081106-2tbfrus2jcf6t0ua
This commit is contained in:
Cedric Snauwaert
2013-06-12 10:11:06 +02:00
parent cddfd7f129
commit 35826aaab3
@@ -201,6 +201,7 @@ class purchase_requisition(osv.osv):
if supplier:
lang = res_partner.browse(cr, uid, supplier.id).lang
context_partner.update( {'lang': lang, 'partner_id': supplier.id} )
product = product_product.browse(cr, uid, requisition_line.product_id.id, context=context_partner)
#call name_get() with partner in the context to eventually match name and description in the seller_ids field
dummy, name = product_product.name_get(cr, uid, product.id, context=context_partner)[0]
if product.description_purchase: