[FIX] purchase: onchange of product now use information in the supplierinfo of the product for name and description if it exists
bzr revid: qdp-launchpad@openerp.com-20130507064945-o0ma2jxjp6dukceg
This commit is contained in:
commit
e81431007e
|
@ -948,7 +948,8 @@ class purchase_order_line(osv.osv):
|
|||
lang = res_partner.browse(cr, uid, partner_id).lang
|
||||
context_partner.update( {'lang': lang, 'partner_id': partner_id} )
|
||||
product = product_product.browse(cr, uid, product_id, context=context_partner)
|
||||
name = product.name
|
||||
#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:
|
||||
name += '\n' + product.description_purchase
|
||||
res['value'].update({'name': name})
|
||||
|
|
Loading…
Reference in New Issue