diff --git a/odex25_base/odex25_apps_features/wizard/base_module_uninstall.py b/odex25_base/odex25_apps_features/wizard/base_module_uninstall.py index 5ded8e799..8e96435c8 100644 --- a/odex25_base/odex25_apps_features/wizard/base_module_uninstall.py +++ b/odex25_base/odex25_apps_features/wizard/base_module_uninstall.py @@ -10,10 +10,10 @@ class BaseModuleUninstall(models.TransientModel): is_restrict = fields.Boolean() password = fields.Char(required=True) - # - # def action_uninstall(self): - # if not tools.config.get('uninstall_password'): - # raise ValidationError("Uninstall password not yet set!") - # if self.password != tools.config.get('uninstall_password').replace('\'', ''): - # raise ValidationError("Invalid Password!") - # return super(BaseModuleUninstall, self).action_uninstall() + + def action_uninstall(self): + if not tools.config.get('uninstall_password'): + raise ValidationError("Uninstall password not yet set!") + if self.password != tools.config.get('uninstall_password').replace('\'', ''): + raise ValidationError("Invalid Password!") + return super(BaseModuleUninstall, self).action_uninstall()