From 522fb2e4b9fdf46abed3b5ca8ba43758b22253a1 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Fri, 24 Aug 2012 16:38:37 +0200 Subject: [PATCH] [FIX] add missing file bzr revid: chs@openerp.com-20120824143837-tpgu7g2rqnkag22u --- addons/web/ir_module.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 addons/web/ir_module.py diff --git a/addons/web/ir_module.py b/addons/web/ir_module.py new file mode 100644 index 00000000000..4ed47e5197c --- /dev/null +++ b/addons/web/ir_module.py @@ -0,0 +1,17 @@ +from openerp.osv import osv +import openerp.wsgi.core as oewsgi + +from common.http import Root + +class ir_module(osv.Model): + _inherit = 'ir.module.module' + + def update_list(self, cr, uid, context=None): + result = super(ir_module, self).update_list(cr, uid, context=context) + + if tuple(result) != (0, 0): + for handler in oewsgi.module_handlers: + if isinstance(handler, Root): + handler._load_addons() + + return result