Issue 11730

Title
MultiSelection not supported by MultiValue
Priority
bug
Status
testing
Nosy list
ced, reviewbot, tiyujopite
Assigned to
tiyujopite
Keywords
backport, review

Created on 2022-09-23.18:07:11 by tiyujopite, last changed 2 days ago by reviewbot.

Messages

Author: [hidden] (ced) Tryton committer Tryton translator
Date: 2022-09-28.21:31:03

If you put correct the issue number in the review description, this issue will receive notification.

Author: [hidden] (tiyujopite)
Date: 2022-09-28.21:17:51

I have updated the code again. Just to be clear, it's necessary to notify it in this issue or are you notified that I have updated the patch?

Author: [hidden] (tiyujopite)
Date: 2022-09-28.08:15:27
Author: [hidden] (tiyujopite)
Date: 2022-09-26.17:15:06

I have updated the patch with your notes.

Author: [hidden] (tiyujopite)
Date: 2022-09-26.09:51:59
Traceback (most recent call last):
  File "/trytond/wsgi.py", line 117, in dispatch_request
    return endpoint(request, **request.view_args)
  File "/trytond/protocols/dispatcher.py", line 46, in rpc
    return methods.get(request.rpc_method, _dispatch)(
  File "/trytond/wsgi.py", line 84, in auth_required
    return wrapped(*args, **kwargs)
  File "/trytond/protocols/wrappers.py", line 159, in wrapper
    return func(request, pool, *args, **kwargs)
  File "/trytond/protocols/dispatcher.py", line 180, in _dispatch
    result = rpc.result(meth(*c_args, **c_kwargs))
  File "/trytond/model/modelsql.py", line 867, in read
    getter_results = field.get(
  File "/trytond/model/fields/function.py", line 105, in get
    return dict((name, call(name)) for name in names)
  File "/trytond/model/fields/function.py", line 105, in <genexpr>
    return dict((name, call(name)) for name in names)
  File "/trytond/model/fields/function.py", line 100, in call
    return dict((r.id, method(r, name)) for r in records)
  File "/trytond/model/fields/function.py", line 100, in <genexpr>
    return dict((r.id, method(r, name)) for r in records)
  File "/trytond/model/multivalue.py", line 63, in _multivalue_getter
    return [r.id for r in value]
  File "/trytond/model/multivalue.py", line 63, in <listcomp>
    return [r.id for r in value]
AttributeError: 'str' object has no attribute 'id'

Fault: 'str' object has no attribute 'id'
Author: [hidden] (ced) Tryton committer Tryton translator
Date: 2022-09-23.18:26:16

Could you provide the full traceback?

Author: [hidden] (tiyujopite)
Date: 2022-09-23.18:14:35
Author: [hidden] (tiyujopite)
Date: 2022-09-23.18:07:11

Trying get a saved value raise AttributeError: 'str' object has no attribute 'id'

History
Date User Action Args
2022-10-03 17:40:10reviewbotsetmessages: + msg78542
nosy: + reviewbot
2022-09-29 23:55:38cedsetkeyword: + backport
status: in-progress -> testing
2022-09-28 21:31:03cedsetmessages: + msg78379
2022-09-28 21:17:51tiyujopitesetmessages: + msg78378
2022-09-28 08:15:27tiyujopitesetmessages: + msg78358
2022-09-26 17:15:06tiyujopitesetmessages: + msg78343
2022-09-26 10:01:19cedsetassignedto: tiyujopite
status: chatting -> in-progress
2022-09-26 10:01:08cedsetpriority: feature -> bug
type: feature request -> crash
2022-09-26 09:51:59tiyujopitesetmessages: + msg78320
2022-09-26 09:51:50tiyujopitesetfiles: - trace.jpg

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