~openerp-dev/openobject-server/trunk-bug-1161881-ishwar

« back to all changes in this revision

Viewing changes to openerp/addons/base/module/module.py

  • Committer: Vo Minh Thu
  • Date: 2013-04-04 13:07:04 UTC
  • mfrom: (4743.1.176 openobject-server)
  • Revision ID: vmt@openerp.com-20130404130704-24vsmczw34cssytd
[MERGE] forward merge 7.0 until revision 4919.

Show diffs side-by-side

added added

removed removed

Lines of Context:
411
411
        if to_install_ids:
412
412
            self.button_install(cr, uid, to_install_ids, context=context)
413
413
 
414
 
        openerp.modules.registry.RegistryManager.signal_registry_change(cr.dbname)
415
414
        return dict(ACTION_DICT, name=_('Install'))
416
415
 
417
416
    def button_immediate_install(self, cr, uid, ids, context=None):
500
499
            raise orm.except_orm(_('Error'), _("The `base` module cannot be uninstalled"))
501
500
        dep_ids = self.downstream_dependencies(cr, uid, ids, context=context)
502
501
        self.write(cr, uid, ids + dep_ids, {'state': 'to remove'})
503
 
        openerp.modules.registry.RegistryManager.signal_registry_change(cr.dbname)
504
502
        return dict(ACTION_DICT, name=_('Uninstall'))
505
503
 
506
504
    def button_uninstall_cancel(self, cr, uid, ids, context=None):