On 26/09/14 18:08, Albert Cervera i Areny wrote:
2014-09-26 17:59 GMT+02:00 M. Murray <[email protected]>:
Hello Everyone,
I have a question regarding the search query builder in the tree view. It is
the window that pops up when you click the "Filters" button/label at top
left.
How can I modify the list of fields that shows in that popup?
Just change the tree view. You can search on all the fields of the
view except those that are not searchable (usually calculated fields)
and the client also adds some special fields such as id, create and
write date and users.
Note that you can add fields to the view but make them "invisible" so
they're searchable but are not shown to the user.
Adding filter fields with a more flexible way than changing the tree
view would be a nice feature for Tryton. In my experience, the user
wants to search by a lot of criteria, no only by the fields showed in
the tree view. This requirement is very common in party and product views.
I don't know if other people has this need and if it would be very
difficult to implement in the core of Tryton.
To fill this shortcoming, we have developed the searching module [1]. It
allows search records with flexible criteria in any Tryton model,
subfield search in m2o-o2m-m2m and store the criteria in a profile to be
reused.
[1] https://bitbucket.org/zikzakmedia/trytond-searching
--
Jordi Esteve
Consultor Zikzakmedia SL
[email protected]
Mòbil 679 170 693
Zikzakmedia SL
St. Jaume, 9, baixos, 2a
08720 Vilafranca del Penedès
Tel 93 890 2108