diff --git a/secure_uninstall/models/module.py b/secure_uninstall/models/module.py index 4282b8d29..85283e03d 100644 --- a/secure_uninstall/models/module.py +++ b/secure_uninstall/models/module.py @@ -11,7 +11,7 @@ class BaseModuleUpgrade(models.TransientModel): _inherit = 'base.module.upgrade' password = fields.Char( - string='Password', required=True, + string='Password', help="'admin_passwd' value from Odoo configuration file " "(aka 'Master Password')") @@ -35,4 +35,6 @@ class BaseModuleUpgrade(models.TransientModel): "\n\nResolution\n-------------\n" "Please check your password and retry or cancel" % elm.password) + # keep this password in db is insecure, then we remove it + elm.password = False return super(BaseModuleUpgrade, self).upgrade_module() diff --git a/secure_uninstall/views/module_view.xml b/secure_uninstall/views/module_view.xml index 6e0391baa..66b51ca01 100644 --- a/secure_uninstall/views/module_view.xml +++ b/secure_uninstall/views/module_view.xml @@ -13,7 +13,7 @@