[FIX] add missing context on compute call in pricelist price_get_multi context

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

bzr revid: yannick.vaucher@camptocamp.com-20130315142403-gz7fy7etwzls96rt
This commit is contained in:
Yannick Vaucher 2013-03-15 15:24:03 +01:00
parent 6643ad24a9
commit 5cb1835e26
1 changed files with 4 additions and 1 deletions

View File

@ -236,7 +236,10 @@ class product_pricelist(osv.osv):
qty, context=context)[res['base_pricelist_id']]
ptype_src = self.browse(cr, uid, res['base_pricelist_id']).currency_id.id
uom_price_already_computed = True
price = currency_obj.compute(cr, uid, ptype_src, res['currency_id'], price_tmp, round=False)
price = currency_obj.compute(cr, uid,
ptype_src, res['currency_id'],
price_tmp, round=False,
context=context)
elif res['base'] == -2:
# this section could be improved by moving the queries outside the loop:
where = []