Odoo Help


This community 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.


How to sort categories inside XML file ?

Anne-Sylvie Burri
on 11/4/13, 6:09 AM 968 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.


Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)


Asked: 11/4/13, 6:09 AM
Seen: 968 times
Last updated: 3/16/15, 8:10 AM