Hi, If you are within the tryton api this may be what you are looking for?
http://doc.tryton.org/1.6/trytond/doc/ref/models/models.html#trytond.model.ModelStorage.search You can pass order = [('<field>', '<sort>')] for example order= [ ( 'sequence', 'DESC' ) ] With proteus find - I dont think we need more argumnts to find. Thanks, On Tue, Nov 23, 2010 at 4:37 PM, Paul J Stevens <[email protected]> wrote: > On 2010-11-23 11:49, "Cédric Krier" <[email protected]>" wrote: > >> On 23/11/10 11:49 +0100, Paul J Stevens wrote: >> >>> >>> Hi all, >>> >>> I know I can specify the ordering of records by tweaking the _order >>> attribute on a model, but is there a mechanism for doing this for a >>> domain as well? Or do I need to do manual queries? >>> >> >> I guess you want to talk about act_window. >> So there is no order field on act_window. >> > > No, I'm talking about the search method on models as exposed for example in > Proteus. > > If it's not supported, I'll just have to work around it :-) > > > > -- > ________________________________________________________________ > Paul Stevens paul at nfg.nl > NET FACILITIES GROUP GPG/PGP: 1024D/11F8CD31 > The Netherlands________________________________http://www.nfg.nl > > -- > [email protected] mailing list > -- Sharoon Thomas Business Analyst & Open Source ERP Consultant CEO @ http://openlabs.co.in -- [email protected] mailing list
