2012-08-24 14:38:37 +00:00
|
|
|
from openerp.osv import osv
|
2012-10-10 12:00:26 +00:00
|
|
|
import openerp.service.wsgi_server as oewsgi
|
2012-08-24 14:38:37 +00:00
|
|
|
|
2012-10-11 11:23:00 +00:00
|
|
|
from .http import Root
|
2012-08-24 14:38:37 +00:00
|
|
|
|
|
|
|
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
|