diff --git a/secure_uninstall/README.rst b/secure_uninstall/README.rst index afb21eee7..d2ed337e5 100644 --- a/secure_uninstall/README.rst +++ b/secure_uninstall/README.rst @@ -7,14 +7,22 @@ Secure Uninstall ================ -Ask Master Password ('admin_passwd' key from config file) -before proceeding to module uninstallation +Odoo erase all data managed by uninstalled modules. +To prevent catastrophe this module ask password +before proceeding to module uninstallation. + + +.. figure:: secure_uninstall/static/description/img1.png + :alt: Uninstall authorized + :width: 70% + +| Configuration ============= -Check that 'admin_passwd' is set in Odoo configuration file +Set 'secure_uninstall' key in Odoo configuration file. @@ -24,7 +32,7 @@ Usage #. Go to Settings > Local modules. #. Click on one module. #. Click on Uninstall button. -#. You will need to enter admin password before proceeding. +#. You will need to enter 'secure_uninstall' value provided by your administrator before proceeding. .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas diff --git a/secure_uninstall/i18n/fr.po b/secure_uninstall/i18n/fr.po index 03d6b42bc..5cfea94d1 100644 --- a/secure_uninstall/i18n/fr.po +++ b/secure_uninstall/i18n/fr.po @@ -19,8 +19,8 @@ msgstr "" #. module: secure_uninstall #: help:base.module.upgrade,password:0 -msgid "'admin_passwd' value from Odoo configuration file (aka 'Master Password')" -msgstr "la valeur 'admin_passwd' du fichier de configuration Odoo (aussi appelé 'Mot de passe Maître')" +msgid "'secure_uninstall' value from Odoo configuration file (aka 'Master Password')" +msgstr "la valeur 'secure_uninstall' du fichier de configuration Odoo (aussi appelé 'Mot de passe Maître')" #. module: secure_uninstall #: view:base.module.upgrade:secure_uninstall.view_base_module_upgrade diff --git a/secure_uninstall/models/module.py b/secure_uninstall/models/module.py index 85283e03d..41e39ca60 100644 --- a/secure_uninstall/models/module.py +++ b/secure_uninstall/models/module.py @@ -12,25 +12,24 @@ class BaseModuleUpgrade(models.TransientModel): password = fields.Char( string='Password', - help="'admin_passwd' value from Odoo configuration file " - "(aka 'Master Password')") + help="'secure_uninstall' value from Odoo configuration file ") @api.multi def upgrade_module(self): - config_passwd = config.get("admin_passwd") + config_passwd = config.get("secure_uninstall") for elm in self: if not config_passwd: raise UserError( "Missing configuration key\n--------------------\n" - "'admin_passwd' configuration key " - "(aka 'Master Password') is not set in \n" + "'secure_uninstall' configuration key " + "is not set in \n" "your Odoo server configuration file: " "please set it a value") if elm.password != config_passwd: raise UserError( "Password Error\n--------------------\n" "Provided password '%s' doesn't match with " - "'Master Password'\n('admin_passwd' key) found in the " + "'Master Password'\n('secure_uninstall' key) found in the " "Odoo server configuration file ." "\n\nResolution\n-------------\n" "Please check your password and retry or cancel" diff --git a/secure_uninstall/static/description/img1.png b/secure_uninstall/static/description/img1.png new file mode 100644 index 000000000..059a8bcc6 Binary files /dev/null and b/secure_uninstall/static/description/img1.png differ diff --git a/secure_uninstall/views/module_view.xml b/secure_uninstall/views/module_view.xml index 66b51ca01..c5471aaca 100644 --- a/secure_uninstall/views/module_view.xml +++ b/secure_uninstall/views/module_view.xml @@ -10,10 +10,11 @@ -