[FIX] signal registry change when uninstall modules

bzr revid: chs@openerp.com-20130123153345-x7jm13eieqgeg5i7
This commit is contained in:
Christophe Simonis 2013-01-23 16:33:45 +01:00
parent deea17ff25
commit b3300f6074
1 changed files with 1 additions and 0 deletions

View File

@ -500,6 +500,7 @@ class module(osv.osv):
raise orm.except_orm(_('Error'), _("The `base` module cannot be uninstalled"))
dep_ids = self.downstream_dependencies(cr, uid, ids, context=context)
self.write(cr, uid, ids + dep_ids, {'state': 'to remove'})
openerp.modules.registry.RegistryManager.signal_registry_change(cr.dbname)
return dict(ACTION_DICT, name=_('Uninstall'))
def button_uninstall_cancel(self, cr, uid, ids, context=None):