Issue 4511

Title
Ability to filter One2Many field
Priority
feature
Status
resolved
Superseder
Add relate from inventory to lines (issue 4574)
Nosy list
ced, mar, ohuisman, pokoli, resteve, reviewbot, roundup-bot
Assigned to
ced
Keywords
review

Created on 2015-01-26.13:00:42 by mar, last changed 1 month ago by roundup-bot.

Messages

New changeset e16a3481a725 by Cédric Krier in branch 'default':
Add interactive search on tree view
https://hg.tryton.org/tryton-env/rev/e16a3481a725
New changeset e5d46c9fc7fb by Cédric Krier in branch 'default':
Add interactive search on tree view
https://hg.tryton.org/tryton/rev/e5d46c9fc7fb
Author: [hidden] (ced) Tryton committer Tryton translator
Date: 2020-11-10.19:10:53

Here is review320371002 which implement it.
I implemented a simple search by word on all the visible column.
I had to change the <CTRL>+F because it is the GTK standard for quick search into <CTRL>+<Shift>+F.

Author: [hidden] (mar)
Date: 2015-01-29.14:33:05
I tried using .set_search_column on One2Many widget.

The search window showed up, when the One2Many list is empty, but not when there are some entries (probably something is stealing the event).

I also noticed that this feature is in todo list http://hg.tryton.org/tryton/file/fb7c6e9e50b0/TODO#l1
Author: [hidden] (ced) Tryton committer Tryton translator
Date: 2015-01-26.13:22:35
I think filtering one2many is wrong but searching could be possible.
This could be achieved using the gtk.TreeView search_entry [1].

[1] http://pygtk.org/docs/pygtk/class-gtktreeview.html#method-gtktreeview--get-search-entry
Author: [hidden] (mar)
Date: 2015-01-26.13:00:41
It would be nice if there was ability to filter One2Many fields with something similar (or simplified) like in tree view.

Use case is:

You have many moves as production input and want to check if certain product is in that list.

Ctrl+F, enter product code -> One2Many field shows only the move with the product code you entered.

Currently the only reasonable way to do this is to sort the list by product, and search for it alphabetically.
History
Date User Action Args
2020-12-17 00:22:44roundup-botsetmessages: + msg63324
2020-12-17 00:22:41roundup-botsetmessages: + msg63323
nosy: + roundup-bot
status: testing -> resolved
2020-11-10 19:29:10reviewbotsetmessages: + msg61822
nosy: + reviewbot
2020-11-10 19:10:53cedsetkeyword: + review
messages: + msg61821
reviews: 320371002
status: in-progress -> testing
2020-11-10 19:05:06cedsetassignedto: ced
status: chatting -> in-progress
type: feature request
2015-02-18 10:34:28pokolisetsuperseder: + Add relate from inventory to lines
2015-02-18 09:13:57restevesetnosy: + resteve
2015-01-29 14:33:06marsetmessages: + msg19945
2015-01-26 22:49:22ohuismansetnosy: + ohuisman
2015-01-26 13:22:36cedsetstatus: unread -> chatting
nosy: + ced
messages: + msg19816

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