[FIX]account : fix the task problem for context

bzr revid: mma@tinyerp.com-20121031105122-jmrpm5at8t3iqs7s
This commit is contained in:
Mayur Maheshwari (OpenERP) 2012-10-31 16:21:22 +05:30
parent 848cb19302
commit e2a021bdc0
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ class account_analytic_line(osv.osv):
if journal_id:
journal = analytic_journal_obj.browse(cr, uid, journal_id, context=context)
if journal.type == 'sale':
product_price_type_ids = product_price_type_obj.search(cr, uid, [('field','=','list_price')], context)
product_price_type_ids = product_price_type_obj.search(cr, uid, [('field','=','list_price')], context=context)
if product_price_type_ids:
pricetype = product_price_type_obj.browse(cr, uid, product_price_type_ids, context=context)[0]
# Take the company currency as the reference one