# RecursionError when reloading editable tree

**URL:** <https://discuss.tryton.org/t/recursionerror-when-reloading-editable-tree/8569>\
**Category:** Developer\
**Created:** [May 8, 2025, 5:18pm UTC](https://discuss.tryton.org/t/recursionerror-when-reloading-editable-tree/8569 "2025-05-08T17:18:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bell](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/b/c67d28/32.png) [@bell](https://discuss.tryton.org/u/bell)\
**Post date:** [May 8, 2025, 5:18pm UTC](https://discuss.tryton.org/t/recursionerror-when-reloading-editable-tree/8569/1 "2025-05-08T17:18:38Z")

</div>

Hi!  
If we mark several records on tree view with `editable="1"` and click Reload button we get the following message:

```auto
  File "C:/msys64/home/ced/tryton-6.4-64/tryton/gui/window/view_form/view/list.py", line 1066, in __select_changed
  File "C:/msys64/home/ced/tryton-6.4-64/tryton/gui/window/view_form/model/record.py", line 396, in validate
  File "C:/msys64/home/ced/tryton-6.4-64/tryton/gui/window/view_form/model/record.py", line 257, in _check_load
  File "C:/msys64/home/ced/tryton-6.4-64/tryton/gui/window/view_form/model/record.py", line 504, in reload
  File "C:/msys64/home/ced/tryton-6.4-64/tryton/gui/window/view_form/model/record.py", line 396, in validate
  File "C:/msys64/home/ced/tryton-6.4-64/tryton/gui/window/view_form/model/record.py", line 257, in _check_load
  File "C:/msys64/home/ced/tryton-6.4-64/tryton/gui/window/view_form/model/record.py", line 504, in reload
  ...
RecursionError: maximum recursion depth exceeded in comparison

```

If only one record is marked the reload is performed without errors.  
In case of tree view with `editable="0"` the reload also works fine.  
Is this a bug in Tryton Client?

P.S. We are using Desktop Client 6.4.  
Perhaps this issue is also in Desktop Client 7.x.

---

<div class="post-metadata">

**Author:** ![bell](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/b/c67d28/32.png) [@bell](https://discuss.tryton.org/u/bell)\
**Post date:** [May 21, 2025, 4:44pm UTC](https://discuss.tryton.org/t/recursionerror-when-reloading-editable-tree/8569/2 "2025-05-21T16:44:55Z")

</div>

We noticed that if we add a context model to our model, the reload is performed without `RecursionError`.

---

<div class="post-metadata">

**Author:** ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)\
**Post date:** [May 22, 2025, 8:55am UTC](https://discuss.tryton.org/t/recursionerror-when-reloading-editable-tree/8569/3 "2025-05-22T08:55:57Z")

</div>

Please try to reproduce on a maintained series and [fill a bug report](https://bugs.tryton.org/) with the explanation to reproduce.

---

<div class="post-metadata">

**Author:** ![bell](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/b/c67d28/32.png) [@bell](https://discuss.tryton.org/u/bell)\
**Post date:** [May 30, 2025, 5:13pm UTC](https://discuss.tryton.org/t/recursionerror-when-reloading-editable-tree/8569/4 "2025-05-30T17:13:08Z")

</div>

We have installed the latest version of Tryton and were unable to reproduce the bug in Desktop Client 7.6.1. Apparently it’s already fixed in this version.

---

<div class="post-metadata">

**Author:** ![system](https://discuss-cdn.tryton.org/uploads/default/original/1X/c6f8ec0a40525cdcd50058c734283450a4b3d38b.png) [@system](https://discuss.tryton.org/u/system)\
**Post date:** [May 31, 2025, 5:13pm UTC](https://discuss.tryton.org/t/recursionerror-when-reloading-editable-tree/8569/5 "2025-05-31T17:13:29Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
