Tryton - Issues

 

Issue6712

Title Crash using ";" searching on Payable/Receivable
Priority bug Status resolved
Superseder Nosy List albertca, ced, reviewbot, roundup-bot
Type crash Components account
Assigned To ced Keywords review
Reviews 38641003
View: 38641003

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

Messages
New changeset 51deb7c50533 by Cédric Krier in branch '4.4':
Make search_receivable_payable works with 'in' operator
http://hg.tryton.org/modules/account/rev/51deb7c50533

New changeset fb0b5a5abaa5 by Cédric Krier in branch '4.2':
Make search_receivable_payable works with 'in' operator
http://hg.tryton.org/modules/account/rev/fb0b5a5abaa5

New changeset ffa35441bb54 by Cédric Krier in branch '4.0':
Make search_receivable_payable works with 'in' operator
http://hg.tryton.org/modules/account/rev/ffa35441bb54

New changeset 43b4b7e7133a by Cédric Krier in branch '3.8':
Make search_receivable_payable works with 'in' operator
http://hg.tryton.org/modules/account/rev/43b4b7e7133a

New changeset 8ad150deef93 by Cédric Krier in branch '3.6':
Make search_receivable_payable works with 'in' operator
http://hg.tryton.org/modules/account/rev/8ad150deef93
New changeset 60804f386114 by Cédric Krier in branch 'default':
Make search_receivable_payable works with 'in' operator
http://hg.tryton.org/modules/account/rev/60804f386114

New changeset 5fb82f106d51 by Cédric Krier in branch 'default':
Test in operator on search_receivable_payable
http://hg.tryton.org/modules/account/rev/5fb82f106d51
review38641003 updated at https://codereview.tryton.org/38641003/#ps1
msg35611 (view) Author: [hidden] (ced) (Tryton committer) (Tryton translator) Date: 2017-09-09.16:47:32
review38641003 fix the search method for receivable and payable.
The msg35115 is for another issue.
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 party.party model crashes with the following backtrace:

Traceback (most recent call last):
  File "/trytond/wsgi.py", line 47, in dispatch_request
    return endpoint(request, **request.view_args)
  File "/trytond/protocols/dispatcher.py", line 41, in rpc
    request, database_name, *request.rpc_params)
  File "/trytond/wsgi.py", line 39, in auth_required
    return wrapped(*args, **kwargs)
  File "/trytond/protocols/wrappers.py", line 105, in wrapper
    return func(request, pool, *args, **kwargs)
  File "/trytond/protocols/dispatcher.py", line 165, in _dispatch
    result = rpc.result(meth(*c_args, **c_kwargs))
  File "/trytond/model/modelsql.py", line 1128, in search
    tables, expression = cls.search_domain(domain)
  File "/trytond/model/modelsql.py", line 1318, in search_domain
    expression = convert(domain)
  File "/trytond/model/modelsql.py", line 1316, in convert
    domain[1:] if domain[0] == 'AND' else domain)))
  File "/trytond/model/modelsql.py", line 1315, in <genexpr>
    return And((convert(d) for d in (
  File "/trytond/model/modelsql.py", line 1306, in convert
    expression = field.convert_domain(domain, tables, cls)
  File "/trytond/model/fields/function.py", line 78, in convert_domain
    return getattr(Model, self.searcher)(name, domain)
  File "/trytond/modules/account/party.py", line 220, in search_receivable_payable
    value = Cast(Literal(Decimal(clause[2] or 0)), type_)
  File "/decimal.py", 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.
History
Date User Action Args
2017-09-30 01:43:22roundup-botsetmessages: + msg35951
2017-09-15 19:41:38roundup-botsetstatus: testing -> resolved
nosy: + roundup-bot
messages: + msg35655
2017-09-09 16:49:23reviewbotsetnosy: + reviewbot
messages: + msg35612
2017-09-09 16:47:33cedsetstatus: chatting -> testing
messages: + msg35611
keyword: + review
nosy: + ced
component: + account, - tryton
reviews: 38641003
assignedto: ced
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)