diff options
| author | Harry (Open ERP) <hmo@tinyerp.com> | 2008-12-22 16:05:40 +0530 |
|---|---|---|
| committer | Harry (Open ERP) <hmo@tinyerp.com> | 2008-12-22 16:05:40 +0530 |
| commit | 4132ac363739b61c060ee3e36ad270cfb7792404 (patch) | |
| tree | dba16971d5ac4dd9f4a46c1ca84045b3ab284cc5 /addons/analytic_user_function | |
| parent | a094e34ebe6e9c75893830cc37fdb128a5c24ca2 (diff) | |
fixed bug #310530
bzr revid: hmo@tinyerp.com-20081222103540-x0dngwoe5wr8rhic
Diffstat (limited to 'addons/analytic_user_function')
| -rw-r--r-- | addons/analytic_user_function/analytic_user_function.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/analytic_user_function/analytic_user_function.py b/addons/analytic_user_function/analytic_user_function.py index 46924169a37..442405afeed 100644 --- a/addons/analytic_user_function/analytic_user_function.py +++ b/addons/analytic_user_function/analytic_user_function.py @@ -98,7 +98,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 |
