Issue 11840

Title
Many2One on tree editable does not fill when only one record is found
Priority
bug
Status
chatting
Nosy list
acaubet, ced
Assigned to
Keywords

Created on 2022-10-31.11:01:05 by acaubet, last changed 3 weeks ago by acaubet.

Messages

Author: [hidden] (acaubet)
Date: 2022-11-03.12:47:29

It was working in tryton-64bit-6.4.1.exe, if the search on editable list have only 1 result and you press tab, it selects the unique record.
I does not happen in tryton-64bit-6.4.4.exe.
This is a common use for inventory / picking with a barcode reader on TAB mode.

Author: [hidden] (ced) Tryton committer Tryton translator
Date: 2022-10-31.11:43:54

This is a behavior that was never implemented in editable list. So in contrary of issue11632 which failed because of a change in the way list are rendered, this is a feature for a new behavior.

Author: [hidden] (acaubet)
Date: 2022-10-31.11:34:35

When the search has only 1 result, normally (since issue11632) the result is selected without showing the dialog, but only this is happening if it's a form view.
When is a tree view with editable="1", the unique result is not selected, it's displayed on the dropdown list to pick instead of selected.

Author: [hidden] (ced) Tryton committer Tryton translator
Date: 2022-10-31.11:24:40

Please explain?

Author: [hidden] (acaubet)
Date: 2022-10-31.11:01:03

On issue11632 was partially solved, as works for form view but it's not working on tree editable view.

History
Date User Action Args
2022-11-03 12:47:29acaubetsetmessages: + msg79908
priority: feature -> bug
2022-10-31 11:43:54cedsetmessages: + msg79649
priority: bug -> feature
status: need-eg -> chatting
2022-10-31 11:34:35acaubetsetmessages: + msg79647
title: Many2xxx on tree editable does not fill when only one record is found -> Many2One on tree editable does not fill when only one record is found
2022-10-31 11:24:40cedsetmessages: + msg79646
nosy: + ced
status: chatting -> need-eg
2022-10-31 11:01:05acaubetcreate

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