From b54afe389251ca5e20e4bbf46a283c5b96458e62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 28 Aug 2015 10:54:50 +0200 Subject: [PATCH] progressbar needs now float between 0 and 1 issue4929 review18511002 --- trytond/ir/module.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/trytond/ir/module.py b/trytond/ir/module.py index ffae83ca96..d2312f24ab 100644 --- a/trytond/ir/module.py +++ b/trytond/ir/module.py @@ -1,5 +1,7 @@ # This file is part of Tryton. The COPYRIGHT file at the top level of # this repository contains the full copyright notices and license terms. +from __future__ import division + from functools import wraps from sql.operators import NotIn @@ -433,7 +435,7 @@ class ModuleConfigWizardOther(ModelView): ('state', '=', 'done'), ], count=True) all = Item.search([], count=True) - return 100.0 * done / all + return done / all class ModuleConfigWizardDone(ModelView):