[MERGE] module update_list signal wsgi handlers

bzr revid: al@openerp.com-20121219025908-hd8megr7fc6m4o7m
This commit is contained in:
Antony Lesuisse 2012-12-19 03:59:08 +01:00
parent edef11eaaf
commit c7d6df8fa3
1 changed files with 7 additions and 0 deletions

View File

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