diff --git a/openerp/http.py b/openerp/http.py index a4fc08bacde..5f37afbc116 100644 --- a/openerp/http.py +++ b/openerp/http.py @@ -1094,7 +1094,7 @@ class Root(object): return self.dispatch(environ, start_response) def load_addons(self): - """ Load all addons from addons patch containg static files and + """ Load all addons from addons path containing static files and controllers and configure them. """ # TODO should we move this to ir.http so that only configured modules are served ? statics = {} diff --git a/openerp/modules/module.py b/openerp/modules/module.py index 551b7a664b5..82e86e83ce2 100644 --- a/openerp/modules/module.py +++ b/openerp/modules/module.py @@ -169,13 +169,15 @@ def get_module_icon(module): return ('/' + module + '/') + '/'.join(iconpath) return '/base/' + '/'.join(iconpath) -def load_information_from_description_file(module): +def load_information_from_description_file(module, mod_path=None): """ :param module: The name of the module (sale, purchase, ...) + :param mod_path: Physical path of module, if not providedThe name of the module (sale, purchase, ...) """ - terp_file = get_module_resource(module, '__openerp__.py') - mod_path = get_module_path(module) + if not mod_path: + mod_path = get_module_path(module) + terp_file = opj(mod_path, '__openerp__.py') if terp_file: info = {} if os.path.isfile(terp_file): diff --git a/openerp/tools/convert.py b/openerp/tools/convert.py index 43ee96660bd..a4231529b8f 100644 --- a/openerp/tools/convert.py +++ b/openerp/tools/convert.py @@ -857,12 +857,12 @@ form: module.record_id""" % (xml_id,) def _tag_template(self, cr, el, data_node=None): # This helper transforms a