On Thu, Nov 24, 2016 at 6:42 PM, Cédric Krier <cedric.kr...@b2ck.com> wrote:
> On 2016-11-23 22:16, Vincent Bastos wrote: > > Is there any reason why ordering by create_date wouldn't work? > > > > Can't I use the following domain - 'create_date', 'DESC'? > > You can but if you have an issue please provide the traceback. > > -- > Cédric Krier - B2CK SPRL > Email/Jabber: cedric.kr...@b2ck.com > Tel: +32 472 54 46 59 > Website: http://www.b2ck.com/ Sorry for wasting both your times. I didn't have an error, the ordering was just not working. In case you were wondering; I removed the following statements from the model and it has fixed my issue: cls._order.insert(0, ('create_date', 'DESC')) cls._order.insert(1, ('number', 'DESC')) cls._order.insert(2, ('id', 'DESC')) -- *Vincent Bastos* *Lava Lab Software* -- You received this message because you are subscribed to the Google Groups "tryton-dev" group. To view this discussion on the web visit https://groups.google.com/d/msgid/tryton-dev/CACLX58ChJhFNup9Oi6Cs4fjrXkRxY14N7VV4KDz9kVPBEDN_0Q%40mail.gmail.com.