* Betr.: " [tryton] Default search criteria" (Mon, 11 Jan 2010 20:10:41 +0100):
> I would like to discuss about the search criteria on window actions.
>
> First, for those who don't know what is search criteria, it is default value
> that can be set in the client when openning a new tab. It is like the domain
> except that they are visible (the search widgets are filled) and they are
> editable. (There is no example currently in standard modules)
>
> I think it could be good to have it filled in standard modules like sale,
> purchase, account_invoice etc. Because they have models that will grow with
> time and they can become annoying when working with a lot of records by
> default.
>
> So I propose to add a default search criteria on those actions like this one
> for invoice:
>
> {'invoice_date': ['between', datetime.date.today() -
> datetime.timedelta(days=365)]}
>
> It will show only the invoice from last year. You can try it in Tryton by
> editing the invoices window actions in
> "Administration>User Interface>Actions>Window Actions"
>
> What do you think about?
Principally good idea on some large datasets where you will get
uninteresting data by the time.
But: The restriction of the current view should be clear to the user.
Some ideas:
- Could the search criteria be added in some way to the window title, be it in
a general manner like 'Parties (restricted)' or be it in a specific way like
'Parties by <search-field(s)>'?
- Could we have some label (perhaps besides label 'Record saved!', that says
'Search criteria set'?
- Another approach would be to have colored search fields for values different
from default, but the user won't see fields in Advanced Search. So ven if
this would be a nice to have I would rather gi with one of the first
proposals.
--
Mathias Behrle
MBSolutions
Gilgenmatten 10 A
D-79114 Freiburg
Tel: +49(761)471023
Fax: +49(761)4770816
http://mbsolutions.selfip.biz
UStIdNr: DE 142009020
PGP/GnuPG key availabable from any keyserver, ID: 0x89BCA161
signature.asc
Description: PGP signature
