Tryton - Issues

 

Message49669

Author semarie
Recipients
Date 2019-05-08.14:49:55
Content
on tryton 5.2, with account_payment_clearing installed (and not account_deposit), I have the following traceback:

ERROR:tryton.common.common:Traceback (most recent call last):
  File "/trytond/wsgi.py", line 104, in dispatch_request
    return endpoint(request, **request.view_args)
  File "/trytond/protocols/dispatcher.py", line 48, in rpc
    request, database_name, *request.rpc_params)
  File "/trytond/wsgi.py", line 72, in auth_required
    return wrapped(*args, **kwargs)
  File "/trytond/protocols/wrappers.py", line 131, in wrapper
    return func(request, pool, *args, **kwargs)
  File "/trytond/protocols/dispatcher.py", line 186, in _dispatch
    result = rpc.result(meth(*c_args, **c_kwargs))
  File "/trytond/model/modelsql.py", line 1243, in search
    tables, expression = cls.search_domain(domain)
  File "/trytond/model/modelsql.py", line 1427, in search_domain
    expression = convert(domain)
  File "/trytond/model/modelsql.py", line 1425, in convert
    domain[1:] if domain[0] == 'AND' else domain)))
  File "/trytond/model/modelsql.py", line 1424, in <genexpr>
    return And((convert(d) for d in (
  File "/trytond/model/modelsql.py", line 1425, in convert
    domain[1:] if domain[0] == 'AND' else domain)))
  File "/trytond/model/modelsql.py", line 1424, in <genexpr>
    return And((convert(d) for d in (
  File "/trytond/model/modelsql.py", line 1422, in convert
    return Or((convert(d) for d in domain[1:]))
  File "/trytond/model/modelsql.py", line 1422, in <genexpr>
    return Or((convert(d) for d in domain[1:]))
  File "/trytond/model/modelsql.py", line 1415, in convert
    expression = field.convert_domain(domain, tables, cls)
  File "/trytond/model/fields/field.py", line 190, in wrapper
    return func(*args, **kwargs)
  File "/trytond/model/fields/many2one.py", line 239, in convert_domain
    target_domain, tables=target_tables)
  File "/trytond/model/modelsql.py", line 1427, in search_domain
    expression = convert(domain)
  File "/trytond/model/modelsql.py", line 1425, in convert
    domain[1:] if domain[0] == 'AND' else domain)))
  File "/trytond/model/modelsql.py", line 1424, in <genexpr>
    return And((convert(d) for d in (
  File "/trytond/model/modelsql.py", line 1414, in convert
    field = cls._fields[fname]
KeyError: 'deposit'

To reproduce:
- create a new Payment
- fill fields Journal and Party
- search for an Account

With account_deposit installed, the problem doesn't occurs.
History
Date User Action Args
2019-05-08 14:49:56semariesetmessageid: <1557319796.82.0.980503507745.issue8339@tryton.org>
2019-05-08 14:49:56semarielinkissue8339 messages
2019-05-08 14:49:55semariecreate

Showing 10 items. Show all history (warning: this could be VERY long)