Odoo Help


How to sort categories inside XML file ?

Anne-Sylvie Burri
on 11/4/13, 6:09 AM 1,483 views

Hi everybody,

I'm trying to sort my partners categories by "name" but it doesn't work. I have done this sort for "partner.category" but it doesn't work for "partner.category.tree". I can't find a class named like this in partner.category.py.

Someone knows how to sort data in XML file ?

Thanks in advance.



Serpent Consulting Services Pvt. Ltd.

--Serpent Consulting Services Pvt. Ltd.--
| 6 6 8
Gandhinagar, India
--Serpent Consulting Services Pvt. Ltd.--

Serpent Consulting Services Pvt. Ltd. Your Odoo/OpenERP Solution, just an email away!

Serpent Consulting Services Pvt. Ltd.
On 1/1/14, 11:33 AM


The category model is a hierarchical driven model and the display is complete_name, not the name.

Go on the xml file and display the name field instead compete_name and set_order='name' which should help.


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: 11/4/13, 6:09 AM
Seen: 1483 times
Last updated: 3/16/15, 8:10 AM