Tryton - Issues

 

Message44969

Author pokoli
Recipients
Date 2018-11-21.19:56:53
Content
When following the next steps:

1. Create a sale opportunity
2. Use the relate action to open it's sales
3. Create a new sale from the new action
4. On the origin field, select "Sale Opportunity" model and use the magnifing glass to search for the opportunity. 

The following exceptions is raised:

Traceback (most recent call last):
  File "/usr/local/lib/python35/dist-packages/trytond/wsgipy", line 73, in dispatch_request
    return endpoint(request, **requestview_args)
  File "/usr/local/lib/python35/dist-packages/trytond/protocols/dispatcherpy", line 46, in rpc
    request, database_name, *requestrpc_params)
  File "/usr/local/lib/python35/dist-packages/trytond/wsgipy", line 44, in auth_required
    return wrapped(*args, **kwargs)
  File "/usr/local/lib/python35/dist-packages/trytond/protocols/wrapperspy", line 122, in wrapper
    return func(request, pool, *args, **kwargs)
  File "/usr/local/lib/python35/dist-packages/trytond/protocols/dispatcherpy", line 176, in _dispatch
    result = rpcresult(meth(*c_args, **c_kwargs))
  File "/usr/local/lib/python35/dist-packages/trytond/model/modelsqlpy", line 1172, in search
    tables, expression = clssearch_domain(domain)
  File "/usr/local/lib/python35/dist-packages/trytond/model/modelsqlpy", line 1356, in search_domain
    expression = convert(domain)
  File "/usr/local/lib/python35/dist-packages/trytond/model/modelsqlpy", line 1354, in convert
    domain[1:] if domain[0] == 'AND' else domain)))
  File "/usr/local/lib/python35/dist-packages/trytond/model/modelsqlpy", line 1353, in <genexpr>
    return And((convert(d) for d in (
  File "/usr/local/lib/python35/dist-packages/trytond/model/modelsqlpy", line 1344, in convert
    expression = fieldconvert_domain(domain, tables, cls)
  File "/usr/local/lib/python35/dist-packages/trytond/model/fields/fieldpy", line 348, in convert_domain
    name, operator, value = domain
ValueError: too many values to unpack (expected 3)

On tryton the same steps work without problem
History
Date User Action Args
2018-11-21 19:56:54pokolisetmessageid: <1542826614.01.0.71865421777.issue7876@tryton.org>
2018-11-21 19:56:53pokolilinkissue7876 messages
2018-11-21 19:56:53pokolicreate

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