Se rendre au contenu
Menu
Cette question a été signalée
3 Réponses
10459 Vues

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
Ignorer
Auteur

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"

Meilleure réponse

Add to YOUR model

_order = "YOUR FIELD"

It will sort by YOUR FIELD

Avatar
Ignorer

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

Auteur Meilleure réponse

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
Ignorer
Meilleure réponse

Hello,

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

Avatar
Ignorer
Publications associées Réponses Vues Activité
1
mars 24
2738
1
janv. 25
2022
1
janv. 24
2441
1
déc. 22
3542
0
août 22
2823