David Beal
8 years ago
5 changed files with 44 additions and 125 deletions
-
2secure_uninstall/__openerp__.py
-
66secure_uninstall/i18n/fr.po
-
44secure_uninstall/models/module.py
-
25secure_uninstall/views/module_view.xml
-
32secure_uninstall/views/wizard_view.xml
@ -0,0 +1,25 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
|
||||
|
<openerp> |
||||
|
<data> |
||||
|
|
||||
|
|
||||
|
<record id="view_base_module_upgrade" model="ir.ui.view"> |
||||
|
<field name="model">base.module.upgrade</field> |
||||
|
<field name="inherit_id" ref="base.view_base_module_upgrade"/> |
||||
|
<field name="arch" type="xml"> |
||||
|
<field name="module_info" position="after"> |
||||
|
<separator string="Secure Uninstall"/> |
||||
|
<label string="If you want uninstall module, write required password." |
||||
|
colspan="4" /> |
||||
|
<group col="4"> |
||||
|
<field name="password" password="True"/> |
||||
|
<span/> |
||||
|
</group> |
||||
|
</field> |
||||
|
</field> |
||||
|
</record> |
||||
|
|
||||
|
|
||||
|
</data> |
||||
|
</openerp> |
@ -1,32 +0,0 @@ |
|||||
<?xml version="1.0" encoding="UTF-8"?> |
|
||||
|
|
||||
<openerp> |
|
||||
<data> |
|
||||
|
|
||||
|
|
||||
<record id="view_uninstall_wizard_form" model="ir.ui.view"> |
|
||||
<field name="model">uninstall.check.wizard</field> |
|
||||
<field name="arch" type="xml"> |
|
||||
<form string="Check" version="7.0"> |
|
||||
<p class="oe_inline oe_grey"> |
|
||||
Uninstall module process remove all data managed by the module.<br/> |
|
||||
Some columns can be dropped and there is no way to recover that except restoring a database backup |
|
||||
</p> |
|
||||
<label string="If you want uninstall module, write required password." |
|
||||
colspan="4" /> |
|
||||
<group col="4"> |
|
||||
<field name="password" password="True"/> |
|
||||
<span/> |
|
||||
</group> |
|
||||
<footer> |
|
||||
<button name="check_password" string="Apply" type="object" |
|
||||
class="oe_highlight"/> |
|
||||
<button special="cancel" string="Cancel" class="oe_link"/> |
|
||||
</footer> |
|
||||
</form> |
|
||||
</field> |
|
||||
</record> |
|
||||
|
|
||||
|
|
||||
</data> |
|
||||
</openerp> |
|
Write
Preview
Loading…
Cancel
Save
Reference in new issue