diff options
| author | Raphael Collet <rco@odoo.com> | 2017-06-28 15:36:17 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-06-28 15:36:17 +0200 |
| commit | b8cf940247ce746bf2ccdd77cbcb9bfde5c026d2 (patch) | |
| tree | 4a69a88f6b68468dcab45c1a77fade9b8b29b13f /odoo/addons/base/module/wizard/base_module_uninstall_view.xml | |
| parent | 026f9ce0853d9e3b56ec6f162929958fbab4c903 (diff) | |
[ADD] base: new wizard to uninstall a module (#17284)
The "Uninstall" button on the module form no longer changes the state of
modules, so that cancelling the wizard will not unexpectedly perform the
uninstallation. The uninstallation is performed only by clicking on the
"Confirm" button on the wizard.
Moreover, the wizard provides clearer information about the impact of the
uninstallation: what apps/modules will be uninstalled and what documents
(models) will be lost.
Diffstat (limited to 'odoo/addons/base/module/wizard/base_module_uninstall_view.xml')
| -rw-r--r-- | odoo/addons/base/module/wizard/base_module_uninstall_view.xml | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/odoo/addons/base/module/wizard/base_module_uninstall_view.xml b/odoo/addons/base/module/wizard/base_module_uninstall_view.xml new file mode 100644 index 00000000000..43da6a2bcde --- /dev/null +++ b/odoo/addons/base/module/wizard/base_module_uninstall_view.xml @@ -0,0 +1,52 @@ +<?xml version="1.0" encoding="utf-8"?> +<odoo> + <data> + + <record id="view_base_module_uninstall" model="ir.ui.view"> + <field name="name">Uninstall module</field> + <field name="model">base.module.uninstall</field> + <field name="arch" type="xml"> + <form string="Uninstall module"> + <field name="module_id" groups="base.group_no_one"/> + <h3>The following apps will be uninstalled</h3> + <field name="show_all"/> Show technical modules + <field name="module_ids" mode="kanban"> + <kanban create="false"> + <field name="icon"/> + <field name="name"/> + <field name="shortdesc"/> + <field name="summary"/> + <templates> + <t t-name="kanban-box"> + <div class="oe_module_vignette"> + <img t-attf-src="#{record.icon.value}" + class="oe_module_icon" style="width: 60px; height: 60px"/> + <div class="oe_module_desc" style="padding-left: 70px"> + <h4><field name="shortdesc"/></h4> + <p class="oe_module_name"> + <t t-if="record.summary.raw_value"><field name="summary"/><br/></t> + <i><field name="name" groups="base.group_no_one"/></i> + </p> + </div> + </div> + </t> + </templates> + </kanban> + </field> + <h3>The following documents will be permanently lost</h3> + <field name="model_ids"> + <tree string="Models"> + <field name="name" string="Document"/> + <field name="count"/> + </tree> + </field> + <footer> + <button string="Confirm" class="btn-primary" type="object" name="action_uninstall"/> + <button string="Cancel" class="btn-default" special="cancel"/> + </footer> + </form> + </field> + </record> + + </data> +</odoo> |
