# Application error when searching in singleton

**URL:** https://discuss.tryton.org/t/application-error-when-searching-in-singleton/6701
**Category:** Developer
**Created:** [November 14, 2023, 10:08am UTC](https://discuss.tryton.org/t/application-error-when-searching-in-singleton/6701 "2023-11-14T10:08:25Z")
**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: [November 14, 2023, 10:08am UTC](https://discuss.tryton.org/t/application-error-when-searching-in-singleton/6701/1 "2023-11-14T10:08:26Z")

</div>

When you run the Search menu item in any singleton tab, you receive the following error message:

```auto
  File "C:/msys64/home/ced/tryton-6.4-64/tryton/gui/window/view_form/view/screen_container.py", line 569, in focus_in
  File "C:/msys64/home/ced/tryton-6.4-64/tryton/gui/window/view_form/view/screen_container.py", line 395, in update

AttributeError: 'ScreenContainer' object has no attribute 'screen'

```

After this Desktop Client freezes completely. We have tested this in Tryton Client 6.4 and 5.4.  
You’ll probably have to lock the Search menu item in the singleton tab or do nothing while it’s running.

---

<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: [November 14, 2023, 10:22am UTC](https://discuss.tryton.org/t/application-error-when-searching-in-singleton/6701/2 "2023-11-14T10:22:00Z")

</div>

Where is there a singleton showed in a list?

---

<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: [November 14, 2023, 10:35am UTC](https://discuss.tryton.org/t/application-error-when-searching-in-singleton/6701/3 "2023-11-14T10:35:11Z")

</div>

The singleton is shown in the form, not in the list. For example, these are the following tabs: Party Configuration, Account Configuration, etc.

---

<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: [November 14, 2023, 10:37am UTC](https://discuss.tryton.org/t/application-error-when-searching-in-singleton/6701/4 "2023-11-14T10:37:22Z")

</div>

> [@bell](#):
>
> When you run the Search menu item in any singleton tab

You mean when you click on the menu item.

Please [fill an issue](https://www.tryton.org/contribute#bug).

---

<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: [November 14, 2023, 10:52am UTC](https://discuss.tryton.org/t/application-error-when-searching-in-singleton/6701/5 "2023-11-14T10:52:24Z")

</div>

> [@ced](#):
>
> You mean when you click on the menu item.

Yes, sure.

> [@ced](#):
>
> Please [fill an issue](https://www.tryton.org/contribute#bug).

Done. [https://foss.heptapod.net/tryton/tryton/-/issues/12743](https://foss.heptapod.net/tryton/tryton/-/issues/12743)
