diff options
| author | Jérome Maes <jem@openerp.com> | 2016-07-15 10:29:51 +0200 |
|---|---|---|
| committer | Jérome Maes <jem@openerp.com> | 2016-08-04 12:02:13 +0200 |
| commit | 7c20b4785bef5bf2fd84b429d42a2f3425801410 (patch) | |
| tree | e2299d0e3b4f96ba5c099beb74b92a75d3da3ee4 /openerp/modules/loading.py | |
| parent | 73749499f0beba8282b4c87a60f3749c71978651 (diff) | |
[FIX] ir_http: setting the routing_map on the class
The routing map should be static. Being calling from the old api (with registry)
there was no problem. But since the new API works with instance, a new instance
of the ir.http model will recreate its own routing map. This should have been
avoid during migration to new api of ir.http . Anyway, this prevent many mistake
for the website migration.
Diffstat (limited to 'openerp/modules/loading.py')
| -rw-r--r-- | openerp/modules/loading.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/openerp/modules/loading.py b/openerp/modules/loading.py index 5824993aeb5..05b68e9ef1d 100644 --- a/openerp/modules/loading.py +++ b/openerp/modules/loading.py @@ -52,7 +52,7 @@ def load_module_graph(cr, graph, status=None, perform_checks=True, skip_modules= cr.commit() else: cr.rollback() - # avoid keeping stale xml_id, etc. in cache + # avoid keeping stale xml_id, etc. in cache openerp.modules.registry.RegistryManager.clear_caches(cr.dbname) @@ -186,7 +186,7 @@ def load_module_graph(cr, graph, status=None, perform_checks=True, skip_modules= ir_http = registry['ir.http'] if hasattr(ir_http, '_routing_map'): # Force routing map to be rebuilt between each module test suite - del(ir_http._routing_map) + del(type(ir_http)._routing_map) report.record_result(openerp.modules.module.run_unit_tests(module_name, cr.dbname)) processed_modules.append(package.name) @@ -268,7 +268,7 @@ def load_modules(db, force_demo=False, status=None, update_module=False): if 'base' in tools.config['update'] or 'all' in tools.config['update']: cr.execute("update ir_module_module set state=%s where name=%s and state=%s", ('to upgrade', 'base', 'installed')) - # STEP 1: LOAD BASE (must be done before module dependencies can be computed for later steps) + # STEP 1: LOAD BASE (must be done before module dependencies can be computed for later steps) graph = openerp.modules.graph.Graph() graph.add_module(cr, 'base', force) if not graph: |
