summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src
diff options
context:
space:
mode:
authorSébastien Theys <seb@odoo.com>2019-04-09 06:47:52 +0000
committerRaphael Collet <rco@odoo.com>2019-04-11 14:55:36 +0000
commitc7fe955daa08d2ba264f6e3f6b4b919cc7713aa1 (patch)
tree370037ce995807c2ecb7a1fb8d585d08744ad1cd /addons/web_editor/static/src
parent1f33ee82d03250dbf0d5bc68bdfb5b1eb447aa69 (diff)
[FIX] fields: prevent caching wrong value when it's altered by write
Before this commit, the field assignment would cache the value it received, even if that value was altered during `write`. This can happen if `write` is overridden (for example to resize images), or it could also happen if a database procedure is altering the value. To fix this issue, we do not cache the value that was assigned. This implies that additional queries may be necessary to retrieve the value, but those were already necessary most of the time, so it does not have a significant impact on performances.
Diffstat (limited to 'addons/web_editor/static/src')
0 files changed, 0 insertions, 0 deletions