diff --git a/secure_uninstall/__openerp__.py b/secure_uninstall/__openerp__.py index 9171a38b0..0782ae412 100644 --- a/secure_uninstall/__openerp__.py +++ b/secure_uninstall/__openerp__.py @@ -25,7 +25,7 @@ 'author': "Akretion,Odoo Community Association (OCA)", 'maintener': 'Akretion', 'category': 'Base', - 'summary': "Ask password ot authorize uninstall", + 'summary': "Ask password to authorize uninstall", 'depends': [ 'base', ], diff --git a/secure_uninstall/module.py b/secure_uninstall/module.py index e4d026d36..bc318547c 100644 --- a/secure_uninstall/module.py +++ b/secure_uninstall/module.py @@ -29,9 +29,8 @@ class Module(orm.Model): def button_uninstall(self, cr, uid, ids, context=None): if 'uninstall_authorized' in context: del context['uninstall_authorized'] - res = super(Module, self).button_uninstall( + super(Module, self).button_uninstall( cr, uid, ids, context=context) - print res return self._button_immediate_function( cr, uid, ids, self.button_uninstall, context=context) else: @@ -59,7 +58,6 @@ class UninstallCheckWizard(orm.TransientModel): def check_password(self, cr, uid, ids, context=None): for elm in self.browse(cr, uid, ids, context=context): - config_passwd = config.get("admin_passwd") if not config_passwd: raise orm.except_orm( @@ -80,3 +78,4 @@ class UninstallCheckWizard(orm.TransientModel): module_id = context.get('module_id') self.pool['ir.module.module'].button_uninstall( cr, uid, [module_id], context=context) + return True diff --git a/secure_uninstall/wizard_view.xml b/secure_uninstall/wizard_view.xml index 75c61db62..141fbd628 100644 --- a/secure_uninstall/wizard_view.xml +++ b/secure_uninstall/wizard_view.xml @@ -9,11 +9,14 @@

-Uninstall module process remove all data managed by the module +Uninstall module process remove all data managed by the module.

-