Read also non active records when creating brother_ids list in _update_tree
This commit is contained in:
1 parent
12f41afe89
commit
a5d08185ef
1 file changed
+1
-1
@@ -1984,7 +1984,7 @@ class ModelSQL(ModelStorage):
|
||||
# Use root user to by-pass rules
|
||||
brother_ids = self.search(cursor, 0, [
|
||||
(field_name, '=', parent_id),
|
||||
])
|
||||
], context={'active_test': False})
|
||||
if brother_ids[-1] != object_id:
|
||||
next_id = brother_ids[brother_ids.index(object_id) + 1]
|
||||
cursor.execute('SELECT "' + left + '", "' + right + '" ' \
|
||||
|
||||
Reference in new issue
Block a user