Read also non active records when creating brother_ids list in _update_tree

This commit is contained in:
Cédric Krier committed 2009-06-04 09:23:30 +02:00
1 parent 12f41afe89
commit a5d08185ef
1 file changed
+1 -1
+1 -1
View File
@@ -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 + '" ' \