Tryton - Issues



Title Crash using ";" searching on Payable/Receivable
Priority bug Status chatting
Superseder Nosy List albertca
Type crash Components tryton
Assigned To Keywords

Created on 2017-08-10.14:00:11 by albertca, last changed by albertca.

msg35115 (view) Author: [hidden] (albertca) (Tryton committer) (Tryton translator) Date: 2017-08-10.14:14:51
The following search on account.payment also crashes:

Currency: Abc;abb
msg35113 (view) Author: [hidden] (albertca) (Tryton committer) (Tryton translator) Date: 2017-08-10.14:00:10
In default branch, using the following filter:

"Receivable Today": 111;112

on model crashes with the following backtrace:

Traceback (most recent call last):
  File "/trytond/", line 47, in dispatch_request
    return endpoint(request, **request.view_args)
  File "/trytond/protocols/", line 41, in rpc
    request, database_name, *request.rpc_params)
  File "/trytond/", line 39, in auth_required
    return wrapped(*args, **kwargs)
  File "/trytond/protocols/", line 105, in wrapper
    return func(request, pool, *args, **kwargs)
  File "/trytond/protocols/", line 165, in _dispatch
    result = rpc.result(meth(*c_args, **c_kwargs))
  File "/trytond/model/", line 1128, in search
    tables, expression = cls.search_domain(domain)
  File "/trytond/model/", line 1318, in search_domain
    expression = convert(domain)
  File "/trytond/model/", line 1316, in convert
    domain[1:] if domain[0] == 'AND' else domain)))
  File "/trytond/model/", line 1315, in <genexpr>
    return And((convert(d) for d in (
  File "/trytond/model/", line 1306, in convert
    expression = field.convert_domain(domain, tables, cls)
  File "/trytond/model/fields/", line 78, in convert_domain
    return getattr(Model, self.searcher)(name, domain)
  File "/trytond/modules/account/", line 220, in search_receivable_payable
    value = Cast(Literal(Decimal(clause[2] or 0)), type_)
  File "/", line 607, in __new__
    raise ValueError('Invalid tuple size in creation of Decimal '
ValueError: Invalid tuple size in creation of Decimal from list or tuple.  The list or tuple should have exactly three elements.

Previous versions also have the same issue.
Date User Action Args
2017-08-10 14:14:51albertcasetstatus: unread -> chatting
messages: + msg35115
2017-08-10 14:00:11albertcacreate

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