~camptocamp/openobject-server/7.0-c2c-official

« back to all changes in this revision

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

  • Committer: Yannick Vaucher
  • Date: 2013-03-11 12:03:36 UTC
  • mfrom: (4773.1.116 openobject-server)
  • Revision ID: yannick.vaucher@camptocamp.com-20130311120336-hgyv89pww0kiwff2
[MRG] from official

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):