[MERGE] OPW 575293: purchase: Supplier references not displayed on purchase order (courtesy of Alexis Delattre)

lp bug: https://launchpad.net/bugs/993177 fixed

bzr revid: odo@openerp.com-20120725170719-w8to6f3ab1w0q5j9
This commit is contained in:
Olivier Dony 2012-07-25 19:07:19 +02:00
parent dc19d69058
commit f5a306feb6
1 changed files with 1 additions and 1 deletions

View File

@ -755,7 +755,7 @@ class purchase_order_line(osv.osv):
lang = res_partner.browse(cr, uid, partner_id).lang
context_partner = {'lang': lang, 'partner_id': partner_id}
product = product_product.browse(cr, uid, product_id, context=context_partner)
res['value'].update({'name': product.name, 'notes': notes or product.description_purchase})
res['value'].update({'name': product.partner_ref, 'notes': notes or product.description_purchase})
# - set a domain on product_uom
res['domain'] = {'product_uom': [('category_id','=',product.uom_id.category_id.id)]}