Issue 11730

Title
MultiSelection not supported by MultiValue
Priority
bug
Status
resolved
Nosy list
ced, reviewbot, roundup-bot, tiyujopite
Assigned to
tiyujopite
Keywords
review

Created on 2022-09-23.18:07:11 by tiyujopite, last changed 1 month ago by roundup-bot.

Messages

New changeset bac74c2ea3cd by José Antonio Díaz in branch '6.4':
Support MultiSelection in MultiValue field
https://hg.tryton.org/trytond/rev/bac74c2ea3cd

New changeset 9444c2eb9be8 by José Antonio Díaz in branch '6.2':
Support MultiSelection in MultiValue field
https://hg.tryton.org/trytond/rev/9444c2eb9be8

New changeset ce982fabd69a by José Antonio Díaz in branch '6.0':
Support MultiSelection in MultiValue field
https://hg.tryton.org/trytond/rev/ce982fabd69a
New changeset 065ec22bd036 by Cédric Krier in branch 'default':
Support MultiSelection in MultiValue field
https://hg.tryton.org/tryton-env/rev/065ec22bd036
New changeset bd9ad6eedf5c by José Antonio Díaz in branch 'default':
Support MultiSelection in MultiValue field
https://hg.tryton.org/trytond/rev/bd9ad6eedf5c
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-30 10:39:15roundup-botsetkeyword: - backport
messages: + msg79642
2022-10-15 22:09:06roundup-botsetmessages: + msg78958
2022-10-15 22:09:00roundup-botsetmessages: + msg78957
nosy: + roundup-bot
status: testing -> resolved
2022-10-15 22:04:03reviewbotsetmessages: + msg78956
2022-10-13 17:13:42reviewbotsetmessages: + msg78940
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
2022-09-23 18:52:00tiyujopitesetfiles: + trace.jpg
2022-09-23 18:26:16cedsetmessages: + msg78284
nosy: + ced
status: unread -> chatting
2022-09-23 18:14:35tiyujopitesetkeyword: + review
messages: + msg78283
reviews: 427811003
2022-09-23 18:07:11tiyujopitecreate