← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 631904] Re: [trunk] search widget - parameter sort option

 

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
   Importance: Wishlist => Undecided

** Changed in: openobject-client
       Status: Confirmed => Incomplete

** Changed in: openobject-client
     Assignee: OpenERP sa GTK client R&D (openerp-dev-gtk) => (unassigned)

-- 
[trunk] search widget - parameter sort option
https://bugs.launchpad.net/bugs/631904
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in OpenObject GTK Client: Incomplete

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