Fail to assign dictionary value to One2One field
The instantiation fails with:
Traceback (most recent call last):
File "/home/ced/Projects/tryton/trytond/trytond/tests/test_tryton.py", line 272, in wrapper
result = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/ced/Projects/tryton/trytond/trytond/tests/test_field_one2one.py", line 344, in test_set_dict
record.one2one = {'name': "Test"}
^^^^^^^^^^^^^^
File "/home/ced/Projects/tryton/trytond/trytond/model/fields/one2one.py", line 57, in __set__
value = Target(*value)
^^^^^^^^^^^^^^
File "/home/ced/Projects/tryton/trytond/trytond/model/modelstorage.py", line 1625, in __init__
id = int(id)
^^^^^^^
ValueError: invalid literal for int() with base 10: 'name'