account: change ambigous variable name

bzr revid: ced-7abf6011a16e089613e60bebf2a3f2b6b8663704
This commit is contained in:
ced 2007-07-19 13:36:44 +00:00
parent f81c3f8804
commit 99b8134a10
1 changed files with 4 additions and 4 deletions

View File

@ -69,11 +69,11 @@ class account_analytic_line(osv.osv):
if unit_amount and prod_id:
rate = 1
if unit:
uom_id = self.pool.get('product.uom')
hunit = uom_id.browse(cr, uid, unit)
uom_obj = self.pool.get('product.uom')
hunit = uom_obj.browse(cr, uid, unit)
rate = hunit.factor
uom_id = self.pool.get('product.product')
prod = uom_id.browse(cr, uid, prod_id)
product_obj = self.pool.get('product.product')
prod = product_obj.browse(cr, uid, prod_id)
a = prod.product_tmpl_id.property_account_expense
if not a:
a = prod.categ_id.property_account_expense_categ