[trunk] search widget - parameter sort option

Bug #631904 reported by Ferdinand
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo GTK Client (MOVED TO GITHUB)
Incomplete
Undecided
Unassigned

Bug Description

the search widget (search window ?) needs a sort option
* no sort
* NLS alphabetic sort

Example products - search category

currently it is
* neither sorted (long complex lists are not usable)
* not searchable - search as you type

Revision history for this message
Ferdinand (office-chricar) wrote :

AFAICS the search only returns data for the category entered at product level, but not for "parent" categories.
No user will unerstand this

Suggested solutions
* support search for parents inlcuding children (desired behaviour)
* do not display parents (this requires, that parents are never assigend as implemented for accounts but I think this should be a general rule)

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Search on parent+children can be achieved by setting proper domain(operator on filter).
Thanks.

affects: openobject-server → openobject-client
Changed in openobject-client:
status: New → Confirmed
importance: Undecided → Wishlist
assignee: nobody → OpenERP sa GTK client R&D (openerp-dev-gtk)
Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

Ferdinand,

Could you explain in more practical and precise terms what you mean, please - this bug report is either invalid or very hard to understand. (e.g: what are you talking about exactly? search widgets? search views? list views? The title talks about sorting, comment #1 talks about a seemingly unrelated search question..)

Search views do not exists by themselves, they're always coupled with another view, either a list view or a calendar/graph view.
Search views/widgets therefore have no sorting option and do not need any, as this is all handled in the associated view.

As for searching through hierarchical structures, this is also supported through the use of the 'child_of' operator, which can be used by search widgets. If I want the categ_id field to search for all products that are either in the selected category or any subcategory, you can make the search widget apply a specific domain by doing the following:

  <field name="categ_id" filter_domain="[('categ_id', 'child_of', self)]"/>

So this is supported by clients and server, and is available for addons to use. BTW this specific last point for products seems more specifically described by bug 631898, so we can close the current one.

Changed in openobject-client:
assignee: OpenERP sa GTK client R&D (openerp-dev-gtk) → nobody
importance: Wishlist → Undecided
status: Confirmed → Incomplete
Revision history for this message
Ferdinand (office-chricar) wrote :

let my try again
1)
Example warehouse / reporting / moves analysis

search for categories "all" - no result (btw category should be a top level search)

or Warehouse / reporting / moves analysis
search category "stuff" (computer stuff - no results

apparently only leaves are searchable not nodes - which is necessary in complex deep structures

2) sort
Warehouse / reporting / moves analysis
group by category + product

results are not sorted - comprehensive for 3 lines in demo data, but UNUSABLE for 50 groups with some 50-100 products / group

and click the column headers does not sort - sorry to say this is not user friendly at all.

unsorted and not sortable lists are an abolute NoGo.

these results can't even be exported to get them sorted in a spreadsheet..

a good idea - but not very useful in day to day live

3) Warehouse / reporting / moves analysis
the column Total Value is a complete nonesense
https://bugs.launchpad.net/openobject-addons/+bug/648678

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.