Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
4230 Lượt xem

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.

JMB

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

JMB,

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.

Thanks.

Ảnh đại diện
Huỷ bỏ