progressbar needs now float between 0 and 1

issue4929
review18511002
This commit is contained in:
Cédric Krier committed 2015-08-28 10:54:50 +02:00
1 parent 7a223d3b5e
commit b54afe3892
1 file changed
+3 -1
+3 -1
View File
@@ -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):