Odoo Help


How to sort a list of records in a mako file ?

on 12/30/13, 10:21 AM 1,457 views

Can anyone knows how to sort a list in mako file for a webkit report?


Atul Arvind

--Atul Arvind--
| 3 3 5
vadodara, India
--Atul Arvind--


I am odoo Enthusiast/Developer from Vadodara, India. Working with odoo from v5 to v11 and other opensource technology since 5+ years. Having Strong Expertise in

Odoo Development

Odoo Customization

Odoo Training

Odoo Integration

Server Administration

Odoo Migration


Here is my StackOverflow profile.  you can also find me on LinkedIn.

Contact: atul.surficle@gmail.com.

Atul Arvind
On 1/1/14, 2:35 PM

Webkit report supports Python code, to use the python code in the mako template you can use,

#Python code

Here you can write your python code to sort the data!

On 1/1/14, 1:26 PM

Hi Surendar,

In mako template you can open python code block like this:

      # You can sort your list of records here

I hope this helps :-) Cheers, Petar

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)


Asked: 12/30/13, 10:21 AM
Seen: 1457 times
Last updated: 3/16/15, 8:10 AM