summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorRaphael Collet <rco@odoo.com>2020-11-16 11:50:19 +0000
committerRaphael Collet <rco@odoo.com>2020-11-17 09:11:57 +0000
commitcfb942ab5902e0992434eb2c7db2940526df404e (patch)
tree3041b27338eebddccb8a5f1f0b957d6bcbd0824c /addons
parenta32bdf257d7a960fcd96cf6d32443bfe0295a296 (diff)
[FIX] core: avoid access error when flushing
This patch guarantees that computed fields with `compute_sudo=True` do not cause access errors when fetched from database. This fixes a non-deterministic access error upon `commit`, where fields are recomputed and flushed with some random environment. The method `recompute` performs its duty by accessing the fields to recompute. The compute method of a field is called but does not assign it. As the field is not in cache, its value is read from database. However, as the latter is not done in superuser mode, it may cause some access error. closes odoo/odoo#61820 Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
Diffstat (limited to 'addons')
0 files changed, 0 insertions, 0 deletions