[FIX] Analytic_user_function : Corrected the Wrong way call to the method of product.uom

bzr revid: jvo@tinyerp.com-20100201084736-kj4if8506grjy8gz
This commit is contained in:
Jay (Open ERP)
2010-02-01 14:17:36 +05:30
parent b1643c7af6
commit 6ce9dec013
@@ -132,7 +132,7 @@ class hr_analytic_timesheet(osv.osv):
_('There is no expense account define ' \
'for this product: "%s" (id:%d)') % \
(r.product_id.name, r.product_id.id,))
amount = unit_amount * r.product_id.uom_id._compute_price(cr, uid,
amount = unit_amount * self.pool.get('product.uom')._compute_price(cr, uid,
r.product_id.uom_id.id, r.product_id.standard_price, False)
res ['value']['amount']= - round(amount, 2)
res ['value']['general_account_id']= a