[MERGE] module update_list signal wsgi handlers
bzr revid: al@openerp.com-20121219025908-hd8megr7fc6m4o7m
This commit is contained in:
parent
edef11eaaf
commit
c7d6df8fa3
|
@ -610,6 +610,13 @@ class module(osv.osv):
|
|||
self._update_dependencies(cr, uid, mod, terp.get('depends', []))
|
||||
self._update_category(cr, uid, mod, terp.get('category', 'Uncategorized'))
|
||||
|
||||
# Trigger load_addons if new module have been discovered it exists on
|
||||
# wsgi handlers, so they can react accordingly
|
||||
if tuple(res) != (0, 0):
|
||||
for handler in openerp.service.wsgi_server.module_handlers:
|
||||
if hasattr(handler,'load_addons'):
|
||||
handler.load_addons()
|
||||
|
||||
return res
|
||||
|
||||
def download(self, cr, uid, ids, download=True, context=None):
|
||||
|
|
Loading…
Reference in New Issue