summaryrefslogtreecommitdiff
path: root/addons/base_geolocalize
diff options
context:
space:
mode:
authorGéry Debongnie <ged@odoo.com>2018-11-29 15:07:47 +0000
committerRaphael Collet <rco@odoo.com>2018-11-30 13:34:54 +0000
commite062f89ed50c962197288a4e25f508fd5b3395bc (patch)
tree1a02af741f60c33e095e8c35b1d3ff5c6f8ab5ec /addons/base_geolocalize
parenta8f4b522a324c7756626c9191eb1357db688812e (diff)
[FIX] web: prevent crash in some cases (o2m)
Recent works in the orm (see [1] for example) changed the behaviour of the server in the case of onchanges: it tries to optimize Odoo by sending a minimal diff to the web client in onchanges. Concretely, this means that the web client receives commands 4 (link to) instead of command 1 (update + record data). It also sends a minimal diff in that case. This is a big issue for the web client, because it relied on the knowledge of the data from the command 1 to be able to evaluate some modifiers. The good news is that we can mitigate the issue in one case: we do not actually need to evaluate the modifiers in the case of a command 4 (comming from the server), because we can assume that the record is valid. So, we simply bypass the check in that case. Note that this should fix most of the problem, but a deeper problem still remains: a crash can still happen when an onchange modifies a record in a one2many (but in a different page), and we also have a modifier which needs to be evaluated. opw: #1904514 [1] https://github.com/odoo/odoo/pull/29086 closes odoo/odoo#29172 closes odoo/odoo#29086
Diffstat (limited to 'addons/base_geolocalize')
0 files changed, 0 insertions, 0 deletions