diff options
| author | Adrian Torres <adt@odoo.com> | 2019-05-15 12:39:23 +0000 |
|---|---|---|
| committer | Raphael Collet <rco@odoo.com> | 2020-03-23 12:26:56 +0000 |
| commit | 02327d8a6b5bd2b5c6b424005bb46d95ee39ff94 (patch) | |
| tree | 12cdf8ad189c87eb83c5a3e61fabbabcc4cc4827 | |
| parent | 85c707e68475d96d575ab0db19473e6cf42cedf1 (diff) | |
[IMP] base: warn user about the consequences of uninstall
This commit adds a warning banner near the bottom of the uninstall
wizard warning the user of the consequences of module uninstallation and
advising him to try it first on a duplicate database so as to avoid
borking the database.
The Cancel/Confirm buttons were also swapped and the Cancel one was
made primary to avoid mindless "next-clicking"
closes odoo/odoo#33396
Task-id: 1824392
Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
| -rw-r--r-- | odoo/addons/base/wizard/base_module_uninstall_views.xml | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/odoo/addons/base/wizard/base_module_uninstall_views.xml b/odoo/addons/base/wizard/base_module_uninstall_views.xml index 00a493637f6..dd6de1bb3c2 100644 --- a/odoo/addons/base/wizard/base_module_uninstall_views.xml +++ b/odoo/addons/base/wizard/base_module_uninstall_views.xml @@ -40,9 +40,18 @@ <field name="count"/> </tree> </field> + <div class="alert alert-warning" role="alert"> + <p> + Module uninstallation is not always consistent and can sometimes lead to issues, + some data may be deleted, the database could be left in an unstable state, + the server could crash, etc. While this is rare, we recommend testing + the uninstallation procedure on a duplicate database to guarantee that + it works and then doing it on your production database. + </p> + </div> <footer> - <button string="Confirm" class="btn-primary" type="object" name="action_uninstall"/> - <button string="Cancel" class="btn-secondary" special="cancel"/> + <button string="Cancel" class="btn-primary" special="cancel"/> + <button string="Confirm" class="btn-secondary" type="object" name="action_uninstall"/> </footer> </form> </field> |
