Use only 2 digits for module percentage

Closes #5838
This commit is contained in:
Cédric Krier
2023-01-22 23:39:18 +01:00
parent fecffb3124
commit fbbd4ac109
+2 -2
View File
@@ -425,7 +425,7 @@ class ModuleConfigWizardOther(ModelView):
'Module Config Wizard Other'
__name__ = 'ir.module.config_wizard.other'
percentage = fields.Float('Percentage', readonly=True)
percentage = fields.Float('Percentage', digits=(1, 2), readonly=True)
@staticmethod
def default_percentage():
@@ -435,7 +435,7 @@ class ModuleConfigWizardOther(ModelView):
('state', '=', 'done'),
], count=True)
all = Item.search([], count=True)
return done / all
return round(done / all, 2)
class ModuleConfigWizardDone(ModelView):