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 @@ -