[REV] Revert code for wrong value in invoiced in fixed price.

bzr revid: bth@tinyerp.com-20130417050900-mri6vhcb1v9i5lya
This commit is contained in:
bth-openerp 2013-04-17 10:39:00 +05:30
parent 30b847fbf0
commit 334faeb843
1 changed files with 2 additions and 0 deletions

View File

@ -268,6 +268,8 @@ class account_analytic_account(osv.osv):
GROUP BY account_analytic_line.account_id", (child_ids,))
for account_id, sum in cr.fetchall():
res[account_id] = round(sum, 2)
for acc in self.browse(cr, uid, res.keys(), context=context):
res[acc.id] = res[acc.id] - (acc.timesheet_ca_invoiced or 0.0)
res_final = res
return res_final