diff options
| author | Christophe Simonis <chs@odoo.com> | 2017-10-10 19:14:30 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2017-10-10 19:14:30 +0200 |
| commit | 0be264b29eac11a5dec5e6565d23d4ea86bd905a (patch) | |
| tree | 79362f2340c89cb3cf2e8d8a467f357b7c7a8326 /odoo/http.py | |
| parent | cf753a7fdf1739dcf37d2ad74f4c8efb3d4ff3b3 (diff) | |
| parent | e1104ac344cbc349a46b22339b13dfe9cbab8bcb (diff) | |
[MERGE] forward port branch 11.0 up to e1104ac344c
Diffstat (limited to 'odoo/http.py')
| -rw-r--r-- | odoo/http.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/odoo/http.py b/odoo/http.py index de06e2472f3..3da0379e551 100644 --- a/odoo/http.py +++ b/odoo/http.py @@ -112,8 +112,6 @@ def dispatch_rpc(service_name, method, params): dispatch = odoo.service.db.dispatch elif service_name == 'object': dispatch = odoo.service.model.dispatch - elif service_name == 'report': - dispatch = odoo.service.report.dispatch result = dispatch(method, params) if rpc_request_flag or rpc_response_flag: @@ -1311,7 +1309,8 @@ class Root(object): manifest_path = module_manifest(mod_path) path_static = opj(addons_path, module, 'static') if manifest_path and os.path.isdir(path_static): - manifest = ast.literal_eval(open(manifest_path).read()) + manifest_data = open(manifest_path, 'rb').read() + manifest = ast.literal_eval(pycompat.to_native(manifest_data)) if not manifest.get('installable', True): continue manifest['addons_path'] = addons_path |
