Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
3 Răspunsuri
10329 Vizualizări

Hi I want to order the kanban view for a particular field. 
Example: crm.lead ordered by priority, in view kanban 
If someone can give me a hand. 
Of course grateful

Imagine profil
Abandonează
Autor

the kanban are grouped by stage. Need, that order under each stage, with priority ascending Order.

For ascending order use "priority asc" or just "priority"

Cel mai bun răspuns

Add to YOUR model

_order = "YOUR FIELD"

It will sort by YOUR FIELD

Imagine profil
Abandonează

Thanks @Vasiliy it's worked perfectly for me. :)

Autor Cel mai bun răspuns

It does not work, I'm doing something wrong?

class crm_lead(osv.osv):
    _name = "crm.lead"
    _inherit = "crm.lead"
    _order = "priority desc"
crm_lead()

 

Imagine profil
Abandonează
Cel mai bun răspuns

Hello,

Perhaps, i don't understand your need but  Order in list view and go to kanban view.

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
mar. 24
2548
1
ian. 25
1796
1
ian. 24
2231
1
dec. 22
3398
0
aug. 22
2665