summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorQuentin (OpenERP) <qdp-launchpad@openerp.com>2011-11-16 13:36:36 +0100
committerQuentin (OpenERP) <qdp-launchpad@openerp.com>2011-11-16 13:36:36 +0100
commit2fbbf7b573f74447b61efc7bbbc497b1e0ecef07 (patch)
tree1dd524e36db3f6274efcf0667deb1d36a90dab54 /addons
parent1d55b1891422e1efdd391fbfe31ef3972981472f (diff)
[FIX] hr_timesheet_invoice: fixed an error in cost ledger report where a param of price_get was forgotten
bzr revid: qdp-launchpad@openerp.com-20111116123636-ezjmjwowd7x2gmpf
Diffstat (limited to 'addons')
-rw-r--r--addons/hr_timesheet_invoice/report/cost_ledger.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/hr_timesheet_invoice/report/cost_ledger.py b/addons/hr_timesheet_invoice/report/cost_ledger.py
index 614714bb396..65aaee68a22 100644
--- a/addons/hr_timesheet_invoice/report/cost_ledger.py
+++ b/addons/hr_timesheet_invoice/report/cost_ledger.py
@@ -87,7 +87,7 @@ class account_analytic_cost_ledger(report_sxw.rml_parse):
revenue = 0.0
if lines[id].amount < 0 and lines[id].product_id and lines[id].product_uom_id and lines[id].account_id.pricelist_id:
ctx = {'uom': lines[id].product_uom_id.id}
- price = price_obj.price_get(self.cr, self.uid, [lines[id].account_id.pricelist_id.id], lines[id].product_id.id, lines[id].unit_amount, ctx)[lines[id].account_id.pricelist_id.id]
+ price = price_obj.price_get(self.cr, self.uid, [lines[id].account_id.pricelist_id.id], lines[id].product_id.id, lines[id].unit_amount, False, context=ctx)[lines[id].account_id.pricelist_id.id]
revenue = round(price * lines[id].unit_amount, 2)
r['revenue'] = revenue
self.sum_revenue[account_id] += revenue