# Application error

**URL:** <https://discuss.tryton.org/t/application-error/7257>\
**Category:** Developer\
**Created:** [May 2, 2024, 3:41pm UTC](https://discuss.tryton.org/t/application-error/7257 "2024-05-02T15:41:07Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![beniche](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/beniche/32/2442_2.png) [@beniche](https://discuss.tryton.org/u/beniche)\
**Post date:** [May 2, 2024, 3:41pm UTC](https://discuss.tryton.org/t/application-error/7257/1 "2024-05-02T15:41:07Z")

</div>

I’ve just installed version 7.2 of tryton, I’ve made all the configurations but when I want to create a third party this application error appears

---

<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 2, 2024, 3:50pm UTC](https://discuss.tryton.org/t/application-error/7257/2 "2024-05-02T15:50:24Z")

</div>

It looks like ['\>=' not supported in between instances of 'NoneType' and 'int' (#13228) · Issues · Tryton / Tryton · GitLab](https://bugs.tryton.org/13228)  
Please copy/paste the full text of the traceback.

_In general screenshots are pointless and resource consuming, always prefer text._

---

<div class="post-metadata">

**Author:** ![beniche](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/beniche/32/2442_2.png) [@beniche](https://discuss.tryton.org/u/beniche)\
**Post date:** [May 2, 2024, 4:04pm UTC](https://discuss.tryton.org/t/application-error/7257/3 "2024-05-02T16:04:45Z")

</div>

exactly, but in my case I haven’t created any company, it’s on my first configuration that this error appears

---

<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 2, 2024, 4:07pm UTC](https://discuss.tryton.org/t/application-error/7257/4 "2024-05-02T16:07:04Z")

</div>

Please, please, please:

> [@ced](#):
>
> Please copy/paste the full text of the traceback.

---

<div class="post-metadata">

**Author:** ![beniche](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/beniche/32/2442_2.png) [@beniche](https://discuss.tryton.org/u/beniche)\
**Post date:** [May 2, 2024, 4:10pm UTC](https://discuss.tryton.org/t/application-error/7257/5 "2024-05-02T16:10:20Z")

</div>

```auto
/' [POST] model.party.party.read> in 25 ms
Traceback (most recent call last):
  File "/home/beniche/bes_tryton_env/lib/python3.11/site-packages/trytond/protocols/wrappers.py", line 208, in wrapper
    result = func(request, pool, *args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/beniche/bes_tryton_env/lib/python3.11/site-packages/trytond/protocols/dispatcher.py", line 216, in _dispatch
    result = rpc.result(meth(*c_args, **c_kwargs))
                        ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/beniche/bes_tryton_env/lib/python3.11/site-packages/trytond/model/modelsql.py", line 1186, in read
    getter_results = field.get(
                     ^^^^^^^^^^
  File "/home/beniche/bes_tryton_env/lib/python3.11/site-packages/trytond/model/fields/function.py", line 27, in wrapper
    return func(self, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/beniche/bes_tryton_env/lib/python3.11/site-packages/trytond/transaction.py", line 50, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/home/beniche/bes_tryton_env/lib/python3.11/site-packages/trytond/model/fields/function.py", line 159, in get
    return dict((name, call(name)) for name in names)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/beniche/bes_tryton_env/lib/python3.11/site-packages/trytond/model/fields/function.py", line 159, in <genexpr>
    return dict((name, call(name)) for name in names)
                       ^^^^^^^^^^
  File "/home/beniche/bes_tryton_env/lib/python3.11/site-packages/trytond/model/fields/function.py", line 133, in call
    return {r.id: convert(method(r, name), name) for r in records}
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/beniche/bes_tryton_env/lib/python3.11/site-packages/trytond/model/fields/function.py", line 133, in <dictcomp>
    return {r.id: convert(method(r, name), name) for r in records}
                          ^^^^^^^^^^^^^^^
  File "/home/beniche/bes_tryton_env/lib/python3.11/site-packages/trytond/modules/account/party.py", line 114, in get_currency
    if company_id >= 0:
       ^^^^^^^^^^^^^^^
TypeError: '>=' not supported between instances of 'NoneType' and 'int'

```

---

<div class="post-metadata">

**Author:** ![beniche](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/beniche/32/2442_2.png) [@beniche](https://discuss.tryton.org/u/beniche)\
**Post date:** [May 3, 2024, 11:19am UTC](https://discuss.tryton.org/t/application-error/7257/6 "2024-05-03T11:19:49Z")

</div>

my error has been solved, by copying the commit you added  
thank you

```python
    if company_id >= 0:
        if company_id is not None and company_id >= 0:
            company = Company(company_id)
            return company.currency

```

---

<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 3, 2024, 11:20pm UTC](https://discuss.tryton.org/t/application-error/7257/7 "2024-05-03T23:20:29Z")

</div>

Closed on May 3, 2024, 11:20pm UTC

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