Application error

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

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

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

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

Please, please, please:

/' [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'

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

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

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