Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
1759 Ansichten

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

Avatar
Verwerfen
Beste Antwort

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

Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
3
Apr. 25
11839
1
Sept. 21
3109
3
Mai 16
9365
1
Apr. 16
4431
1
Aug. 25
511