[FIX] purchase : manual or automatic purchase should have the same description for line always the partner_ref

bzr revid: sebastien.beau@akretion.com.br-20120711002817-pupfagnty0so015e
This commit is contained in:
sebastien beau
2012-07-11 02:28:17 +02:00
parent ef50bf061b
commit 7f28916d73
+1 -1
View File
@@ -895,7 +895,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)]}