summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorSébastien Theys <seb@odoo.com>2020-01-16 16:16:11 +0000
committerSébastien Theys <seb@odoo.com>2020-01-17 12:37:24 +0000
commit69f0f765bdf370c7f1dba6bbdc877863596fd5ae (patch)
treea542daa6f1fb4ab78dce2f5d3105cbe30e6ab567 /addons/web/static/src/js/views/basic/basic_controller.js
parent51de5eb0418a5b7954e4dfb3849e2b00ff110cdd (diff)
[FIX] product: flush before invalidate in write override
Since [1] `computer_hdd_attribute_lines` is archived instead of unlinked in `TestSaleProductAttributeValueConfig` which leads to indeterminism in tests due to the missing `flush`. Indeed `flush` is necessary before `invalidate_cache` since [2] if the data that are pending being written must be saved to the database before the cache invalidation. [1] which highlighted the issue was merged after v13.0, but it still makes sense to merge the current fix in the earliest version possible. [1] 5361706e5eb10eee991f3f0a2b10c1c877124752 [2] 9920f20e4c7753bc17bea71dea3a90f7de687196 closes odoo/odoo#43483 X-original-commit: f721bfe2860293d1456770d57be7805920929ca0 Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions