From a5d08185ef314dcd8bf26112a2e1d9f6c9f4bb79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 4 Jun 2009 09:23:30 +0200 Subject: [PATCH] Read also non active records when creating brother_ids list in _update_tree --- trytond/model/modelsql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trytond/model/modelsql.py b/trytond/model/modelsql.py index df354e3129..93070d28b0 100644 --- a/trytond/model/modelsql.py +++ b/trytond/model/modelsql.py @@ -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 + '" ' \