[FIX] sale : passed context argument in product_id_change call in product_uom_change method of sale/sale.py

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

bzr revid: bde@tinyerp.com-20111222120959-dsk7b6lspzcxk3vm
This commit is contained in:
Manfred Rockel 2011-12-22 17:39:59 +05:30 committed by Bharat Devnani (OpenERP)
parent ab5f1f876a
commit b57608c859
1 changed files with 1 additions and 1 deletions

View File

@ -1274,7 +1274,7 @@ class sale_order_line(osv.osv):
res = self.product_id_change(cursor, user, ids, pricelist, product,
qty=qty, uom=uom, qty_uos=qty_uos, uos=uos, name=name,
partner_id=partner_id, lang=lang, update_tax=update_tax,
date_order=date_order)
date_order=date_order, context=context)
if 'product_uom' in res['value']:
del res['value']['product_uom']
if not uom: