Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
1793 Представления

Cómo deshabilitar la ordenación por en una vista de árbol 'One2many'

Аватар
Отменить
Лучший ответ

Hi,

Here you can use the '_order ' attribute of odoo which is used to sort the recordset in list view either in ascending or descending.

Go to the class definition python code of your co-model of the One2many field, there we can set the attributes _name, _description, _rec_name, etc. Like that, _order can also be given as

_order = "sequence"
If you want to sort in descending order, give

_order = "sequence desc"

Hope it helps

Аватар
Отменить
Related Posts Ответы Просмотры Активность
3
апр. 25
11905
1
сент. 21
3167
3
мая 16
9405
1
апр. 16
4464
1
авг. 25
569