# 2nd maximum recursion depth exceeded in comparison case

**URL:** https://discuss.tryton.org/t/2nd-maximum-recursion-depth-exceeded-in-comparison-case/8488
**Category:** Developer
**Created:** [April 16, 2025, 9:42am UTC](https://discuss.tryton.org/t/2nd-maximum-recursion-depth-exceeded-in-comparison-case/8488 "2025-04-16T09:42:17Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![bromoapp](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/b/71c47a/32.png) [@bromoapp](https://discuss.tryton.org/u/bromoapp)
#### Post date: [April 16, 2025, 9:42am UTC](https://discuss.tryton.org/t/2nd-maximum-recursion-depth-exceeded-in-comparison-case/8488/1 "2025-04-16T09:42:18Z")

</div>

I have 2 models related one to many

1. UserTimesheet
2. UserTimesheetRecord

When I logged-in as an **Administrator** , I can renders the list of UserTimesheet from all users without error (see below pic)

 ![timesheet01](https://discuss-cdn.tryton.org/uploads/default/original/2X/8/818337c6c2ae6c8187a9082eab39edb73ad8760d.jpeg)

But when I logged-in as **normal user** ( **joko** in this case).. listing of UserTimesheet already caused error (see below)

 ![timesheet02](https://discuss-cdn.tryton.org/uploads/default/original/2X/5/55bb852bf883a8ef5415b1b2346621fec1250530.jpeg)

```auto
... many lines ...

  File "/trytond/transaction.py", line 109, in __new__
    transactions = cls._local.transactions
RecursionError: maximum recursion depth exceeded in comparison

```

FYI: I always check the user who is logged-in, and always try to filter the content based on the logged-in user. In this case, the user (joko) should only sees timesheets that belongs to him..

I checked on another post of similar error [here](https://discuss.tryton.org/t/recursionerror-maximum-recursion-depth-exceeded-in-comparison/5178), it seems not the problem because my **tryton.cfg** only dependent on very basic modules:

```auto
[tryton]
version=7.4.0
depends:
    ir
    party
    company
    company_work_time
xml:
    afx_timesheet.xml

```

What can be possibly wrong?

Best regards  
Bromo

---

<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: [April 16, 2025, 10:22am UTC](https://discuss.tryton.org/t/2nd-maximum-recursion-depth-exceeded-in-comparison-case/8488/2 "2025-04-16T10:22:58Z")

</div>

Usually this happens because you created an infinite loop.
