Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
3 Respostas
10376 Visualizações

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

Avatar
Cancelar
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"

Melhor resposta

Add to YOUR model

_order = "YOUR FIELD"

It will sort by YOUR FIELD

Avatar
Cancelar

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

Autor Melhor resposta

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()

 

Avatar
Cancelar
Melhor resposta

Hello,

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

Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
1
mar. 24
2592
1
jan. 25
1871
1
jan. 24
2278
1
dez. 22
3428
0
ago. 22
2712