ValueError when searching using semicolon notation
Example: When searching for multiple account moves in a list of move lines using
the semicolon notation (e.g. 'Move: 2013-0001;2013-0002') a ValueError gets
thrown (see below).
The error is not solely linked to the account moves, but occurs on all Many2One
fields and only when using semicolon notation.
Traceback (most recent call last):
File "/trytond/protocols/jsonrpc.py", line 123, in _marshaled_dispatch
response['result'] = dispatch_method(method, params)
File "/trytond/protocols/jsonrpc.py", line 156, in _dispatch
res = dispatch(*args)
File "/trytond/protocols/dispatcher.py", line 158, in dispatch
result = rpc.result(meth(*args, **kwargs))
File "/trytond/model/modelsql.py", line 1030, in search
qu1, qu2, tables, tables_args = cls.search_domain(domain)
File "/trytond/model/modelsql.py", line 1183, in search_domain
qu1, qu2 = cls.__search_domain_oper(domain, tables, tables_args)
File "/trytond/model/modelsql.py", line 1212, in __search_domain_oper
qu1, qu2 = cls.__search_domain_calc(tuple_args, tables, tables_args)
File "/trytond/model/modelsql.py", line 1634, in __search_domain_calc
for x in arg2]
File "/trytond/backend/fields.py", line 173, in sql_format
return int(value)
ValueError: invalid literal for int() with base 10: '2013-0001'