summaryrefslogtreecommitdiff
path: root/odoo/modules/registry.py
diff options
context:
space:
mode:
authormge-odoo <mge@odoo.com>2017-02-07 17:23:13 +0100
committerRaphael Collet <rco@openerp.com>2017-02-08 16:13:01 +0100
commitff2f188d200689e59bddcdcb441df8be4e8319a4 (patch)
tree56b319ea617a6b7c08467f3da66e028a5c753a97 /odoo/modules/registry.py
parent854759b5b12dad26cbc68a69d4a41c856ff298d5 (diff)
[IMP] tests: allow post-install tests to play real transactions
Move the post-install tests execution outside `Registry.new`, and add a flag on class `HttpCase` to enable/disable the registry "test mode". This allows a test to run actual transactions that will reload the registry, which may be used to test the creation of `ir.model` instances, etc.
Diffstat (limited to 'odoo/modules/registry.py')
-rw-r--r--odoo/modules/registry.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/odoo/modules/registry.py b/odoo/modules/registry.py
index 6e5378d33c8..7bfacb700fb 100644
--- a/odoo/modules/registry.py
+++ b/odoo/modules/registry.py
@@ -109,6 +109,7 @@ class Registry(Mapping):
# modules fully loaded (maintained during init phase by `loading` module)
self._init_modules = set()
+ self.updated_modules = [] # installed/updated modules
self.db_name = db_name
self._db = odoo.sql_db.db_connect(db_name)