diff options
| author | Raphael Collet <rco@odoo.com> | 2020-02-19 11:25:15 +0000 |
|---|---|---|
| committer | Raphael Collet <rco@odoo.com> | 2020-02-19 17:42:16 +0000 |
| commit | 60b0f6da3420e0bb0607bd73abb4d0a1f5a0a972 (patch) | |
| tree | c4e0b9eb5c30eb89819e743d8e01d5986bfe809b /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | b293ccc7c3c5ca9a55092afd2e4a7b88c7b93fc8 (diff) | |
[FIX] core: avoid invalidation of field 'ir.ui.view.arch' when setting it
This fixes the following issue. Set the field `arch` on a view; this
automatically writes on `arch_db`, which is a translated field. If some
translations are discarded, a call to `unlink()` invalidates the whole
cache. And then things go wrong: when `arch_db` is validated, the field
`arch` is missing from cache, and the ORM sets it to `None` because the
field is still protected by the initial write!
Fix the issue by avoiding the call to `unlink()`, and do it in SQL
instead.
closes odoo/odoo#45740
X-original-commit: e7679152ee480a51ef2b6d208ae7a05b2ef61941
Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
