Comment 3 for bug 1070790

Revision history for this message
Franco Tampieri (dr.dran) wrote :

Hi Amit,

I don't understand, but for example why in purchase order the note is populated with the correct description_purchase of the partner language and in the sale order not?

there is the line sample from the purchase.py of the purchase module:

line 758 -763
# - determine name and notes based on product in partner lang.
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.partner_ref, 'notes': notes or product.description_purchase})

Best Regards

Franco