product_attribute: Error when assign some attribute type "Selection" to product
With Trytond 3.2.3 and Tryton 3.2.4
- I create an attribute set
- I assign an attribute with type "Selection" to the attribute set
- I assign the attribute set to the product and when I want to assign that attribute to the product, I get this error:
Traceback (most recent call last):
File "/trytond/protocols/jsonrpc.py", line 125, in _marshaled_dispatch
response['result'] = dispatch_method(method, params)
File "/trytond/protocols/jsonrpc.py", line 158, in _dispatch
res = dispatch(*args)
File "/trytond/protocols/dispatcher.py", line 158, in dispatch
result = rpc.result(meth(*c_args, **c_kwargs))
File "/trytond/model/dictschema.py", line 74, in get_keys
selection = dict(json.loads(english_key.selection_json))
ValueError: dictionary update sequence element #0 has length 1; 2 is required
The attribute with type "selection", for testing I tried to put 2 values. These values I tested them in these 3 different ways:
- Separated for only "Enter"
- Separated with semicolons
- Separated with commas
I'm tested it with Trytond 3.3 with the same scenario and I get this error:
Traceback (most recent call last):
File "/trytond/protocols/jsonrpc.py", line 150, in _marshaled_dispatch
response['result'] = dispatch_method(method, params)
File "/trytond/protocols/jsonrpc.py", line 179, in _dispatch
res = dispatch(*args)
File "/trytond/protocols/dispatcher.py", line 161, in dispatch
result = rpc.result(meth(*c_args, **c_kwargs))
File "/trytond/model/dictschema.py", line 84, in get_keys
english_key.selection_json))
File "/collections.py", line 51, in __init__
self.__update(*args, **kwds)
File "/_abcoll.py", line 499, in update
for key, value in other:
ValueError: need more than 1 value to unpack