[IMP] take into account the context parameter 'defer_parent_store_computation' also on write operations
This commit is contained in:
parent
113d2f95ba
commit
ea00789e35
|
@ -3860,7 +3860,7 @@ class BaseModel(object):
|
||||||
|
|
||||||
parents_changed = []
|
parents_changed = []
|
||||||
parent_order = self._parent_order or self._order
|
parent_order = self._parent_order or self._order
|
||||||
if self._parent_store and (self._parent_name in vals):
|
if self._parent_store and (self._parent_name in vals) and not context.get('defer_parent_store_computation'):
|
||||||
# The parent_left/right computation may take up to
|
# The parent_left/right computation may take up to
|
||||||
# 5 seconds. No need to recompute the values if the
|
# 5 seconds. No need to recompute the values if the
|
||||||
# parent is the same.
|
# parent is the same.
|
||||||
|
|
Loading…
Reference in New Issue