Sounds good.

We implemented something similar in one of our old systems by
reserving two user definable database records per database for the
start and end condition, what made an advanced search on every single
field possible.
One of the advantages was that we could use the underlying routines
for every new table we created, only comparison of the search criteria
had to be adjusted.

Just an idea, but you wanted a discussion ;-)

Yours

Stephan Reihle

On 11 Jan., 20:10, Cédric Krier <[email protected]> wrote:
> Hi,
>
> 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?
>
> If we agree I will implement it after the pyson [1] migration.
>
> [1]http://groups.google.com/group/tryton-dev/browse_frm/thread/365e9d6b4...
>
> --
> Cédric Krier
>
> B2CK SPRL
> Rue de Rotterdam, 4
> 4000 Liège
> Belgium
> Tel: +32 472 54 46 59
> Email: [email protected]
> Jabber: [email protected]
> Website:http://www.b2ck.com/
> twitter:http://twitter.com/cedrickrier
> identi.ca:http://identi.ca/cedrickrier
>
>  application_pgp-signature_part
> < 1 KBAnzeigenHerunterladen
-- 
[email protected] mailing list

Reply via email to