[FIX] Fixed local variable 'prod' referenced before assignment.

bzr revid: cpa@tinyerp.com-20130328130833-a3pohp88pxa6q8a7
This commit is contained in:
chirag patel 2013-03-28 18:38:33 +05:30
parent fc04522286
commit 29683cad2b
1 changed files with 1 additions and 0 deletions

View File

@ -42,6 +42,7 @@ class analytic_user_funct_grid(osv.osv):
return {}
value = {}
prod = False
if product_id:
prod = self.pool.get('product.product').browse(cr, uid, product_id, context=context)
emp = emp_obj.browse(cr, uid, emp_id[0], context=context)