[FIX] /web/session/modules route return all installed modules. Web client is smart enough to not load a module twice
bzr revid: chs@openerp.com-20120816160738-symx1j22h9svigmo
This commit is contained in:
parent
942cdee92b
commit
8921c6e439
|
@ -811,9 +811,8 @@ class Session(openerpweb.Controller):
|
||||||
|
|
||||||
@openerpweb.jsonrequest
|
@openerpweb.jsonrequest
|
||||||
def modules(self, req):
|
def modules(self, req):
|
||||||
loaded = module_boot(req)
|
# return all installed modules. Web client is smart enough to not load a module twice
|
||||||
modules = module_installed(req)
|
return module_installed(req)
|
||||||
return [module for module in modules if module not in loaded]
|
|
||||||
|
|
||||||
@openerpweb.jsonrequest
|
@openerpweb.jsonrequest
|
||||||
def eval_domain_and_context(self, req, contexts, domains,
|
def eval_domain_and_context(self, req, contexts, domains,
|
||||||
|
|
Loading…
Reference in New Issue