[FIX] analytic_user_function: initialise variable

bzr revid: mat@openerp.com-20130821154401-vgjpfmmjd59bm3j6
This commit is contained in:
Martin Trigaux 2013-08-21 17:44:01 +02:00
commit 5c2d665af8
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)