[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>
This commit is contained in:
committed by
Raphael Collet
parent
85c707e684
commit
02327d8a6b
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user