[FIX] Account_budget: account_budget bad percentage computation on budget line
lp bug: https://launchpad.net/bugs/675552 fixed bzr revid: mra@mra-laptop-20101209095430-j6958zgmppzdtjmj
This commit is contained in:
parent
0b58b44b56
commit
2be2c91eff
|
@ -177,7 +177,7 @@ class crossovered_budget_lines(osv.osv):
|
|||
res = {}
|
||||
for line in self.browse(cr, uid, ids):
|
||||
if line.theoritical_amount <> 0.00:
|
||||
res[line.id] = float(line.practical_amount or 0.0 / line.theoritical_amount) * 100
|
||||
res[line.id] = float((line.practical_amount or 0.0) / line.theoritical_amount) * 100
|
||||
else:
|
||||
res[line.id] = 0.00
|
||||
return res
|
||||
|
|
|
@ -131,7 +131,6 @@
|
|||
<field name="date_to"/>
|
||||
<field name="paid_date" select="1"/>
|
||||
<field name="planned_amount" select="1"/>
|
||||
<field name="analytic_account_id"/>
|
||||
<field name="company_id" widget="selection" groups="base.group_multi_company"/>
|
||||
</form>
|
||||
</field>
|
||||
|
|
Loading…
Reference in New Issue