From 2be2c91eff7d2c0616d61058eddc7c636e9b7123 Mon Sep 17 00:00:00 2001 From: Mustufa Rangwala Date: Thu, 9 Dec 2010 15:24:30 +0530 Subject: [PATCH] [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 --- addons/account_budget/account_budget.py | 2 +- addons/account_budget/account_budget_view.xml | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/addons/account_budget/account_budget.py b/addons/account_budget/account_budget.py index 87b7573a68a..0ccf5d71ce8 100644 --- a/addons/account_budget/account_budget.py +++ b/addons/account_budget/account_budget.py @@ -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 diff --git a/addons/account_budget/account_budget_view.xml b/addons/account_budget/account_budget_view.xml index b93ad449e9e..86551866d4a 100644 --- a/addons/account_budget/account_budget_view.xml +++ b/addons/account_budget/account_budget_view.xml @@ -131,7 +131,6 @@ -