El 03/07/17 a les 07:43, Khurram Shahzad ha escrit:
Dear All,

I am trying to sort the searched records using following code:

roundings = PatientRounding.search([
             ('name', '=', self.name <http://self.name>),
             ], order=[('evaluation_start', 'DESC')])

But, I am not getting the results sorted on 'evaluation_start' field. Infact, the 'order' clause is not affecting the sorting of searched records!

Is this the correct way of sorting the searched records? Or there is some other way of searching for a model and retuning the sorted results?
Is the correct way.

Which type of field is the evaluation_start? Is it a functional one? Have you implemented some order_ function to override it?



--
Sergi Almacellas Abellana
www.koolpi.com
Twitter: @pokoli_srk

--
You received this message because you are subscribed to the Google Groups 
"tryton" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/099b8502-3039-e862-67f5-096970fa5fbd%40koolpi.com.

Reply via email to