summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields/basic_fields.js
diff options
context:
space:
mode:
authorRaphael Collet <rco@odoo.com>2019-10-22 15:09:19 +0000
committerfw-bot <otis@odoo.com>2019-10-24 13:42:15 +0000
commit9387952214f977411c3d90966a937e3dfd3dab7f (patch)
tree9f8bcb86e344d98ceb0633c7622ef6e934dfc8fe /addons/web/static/src/js/fields/basic_fields.js
parent34da2bb293be40990549a962d495acd75fb4825f (diff)
[FIX] base_automation: do not reload registry after creation/update
The reloading of the registry causes cache misses when creating or modifying automated actions via Odoo Studio. Right after the reloading happened, some field is computed in an environment `env` that no longer appears in `Environment.envs` (collecting existing environments), because the latter has been explicitly reset. Performing `sudo()` or `with_context()` in the compute method creates a new environment that appears in `Environment.envs`, and uses a different cache from `env`. The recomputed field is thus stored in the other cache, and retrieving its value from `env` issues a cache miss... The fix consists in re-patching the registry models without reloading the registry from scratch. opw:2082497 closes odoo/odoo#39342 X-original-commit: c99ad25d4c6affeed75b40e8bc8eeffe87873e48 Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions