summaryrefslogtreecommitdiff
path: root/odoo/addons/test_assetsbundle/tests/test_assetsbundle.py
diff options
context:
space:
mode:
Diffstat (limited to 'odoo/addons/test_assetsbundle/tests/test_assetsbundle.py')
-rw-r--r--odoo/addons/test_assetsbundle/tests/test_assetsbundle.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/odoo/addons/test_assetsbundle/tests/test_assetsbundle.py b/odoo/addons/test_assetsbundle/tests/test_assetsbundle.py
index 92d38a6e5d8..6e74fb0fc99 100644
--- a/odoo/addons/test_assetsbundle/tests/test_assetsbundle.py
+++ b/odoo/addons/test_assetsbundle/tests/test_assetsbundle.py
@@ -540,6 +540,7 @@ class TestAssetsBundleInBrowser(HttpCase):
'arch': view_arch,
'inherit_id': self.browse_ref('test_assetsbundle.bundle1').id,
})
+ self.env.user.flush()
self.phantom_js(
"/test_assetsbundle/js",
@@ -602,6 +603,7 @@ class TestAssetsBundleWithIRAMock(FileTouchable):
# has really been modified. If we do not update the write_date to a posterior date, we are
# not able to reproduce the case where we compile this bundle again without changing
# anything.
+ self.env['ir.attachment'].flush(['checksum'])
self.cr.execute("update ir_attachment set write_date=clock_timestamp() + interval '10 seconds' where id = (select max(id) from ir_attachment)")
# Compile a fourth time, without changes