Ir al contenido
Menú
Se marcó esta pregunta
3 Respuestas
10307 Vistas

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
Descartar
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"

Mejor respuesta

Add to YOUR model

_order = "YOUR FIELD"

It will sort by YOUR FIELD

Avatar
Descartar

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

Autor Mejor respuesta

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
Descartar
Mejor respuesta

Hello,

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

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
mar 24
2522
1
ene 25
1746
1
ene 24
2144
1
dic 22
3364
0
ago 22
2614