Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
3 Antwoorden
10349 Weergaven

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

Beste antwoord

Add to YOUR model

_order = "YOUR FIELD"

It will sort by YOUR FIELD

Avatar
Annuleer

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

Auteur Beste antwoord

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
Annuleer
Beste antwoord

Hello,

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

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
mrt. 24
2569
1
jan. 25
1818
1
jan. 24
2243
1
dec. 22
3405
0
aug. 22
2679