summaryrefslogtreecommitdiff
path: root/doc/reference
diff options
context:
space:
mode:
authorXavier Morel <xmo@odoo.com>2018-02-13 12:10:51 +0100
committerNicolas Martinelli <nim-odoo@users.noreply.github.com>2018-02-19 10:48:30 +0100
commitfc55d649d69a4b1084cb7b4acc3c93f461517589 (patch)
tree70ddfc935a47215bc6da45ff98c8afa9c158f2c6 /doc/reference
parenta583a56324c615379e80952ae31a59efcd28d205 (diff)
[FIX] base: don't recompute while performing the bulk of the unlink
If a record is deleted *and* has property fields, the deletion of the property fields will trigger the various recomputes before the record itself has actually been deleted, and thus stuff which depend(ed) on that record will be recomputed under the assumption that the record still exists, which probably will not work. Under the assumption that the same issue would occur when deleting more than one batch of records (unlinking the data, values or attachment would also trigger a recompute before the proper end of the function and could lead to incoherence, e.g. some of the records being deleted being visible to recomputes), lift the entire effective body of the unlink into a norecompute context, to ensure that only the very final recompute (from the top-level unlink) is actually triggered. opw-807036
Diffstat (limited to 'doc/reference')
0 files changed, 0 insertions, 0 deletions