Comment 3 for bug 631904

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.