Skip to Content
Menú
This question has been flagged
1 Respondre
2540 Vistes

Hi,

I'm setting the attribute for a regular Selection field - no grouping happens automatically - on page refresh the cards remain ungrouped.

state = fields.Selection(
[
('draft', 'Unavailable'),
('available', 'Available'),
('borrowed', 'Borrowed'),
('lost', 'Lost'),
],
'State',
default='draft',
)

...

<kanban default_group_by="state" class="o_kanban_small_column">

Forcing the grouping via view search record and action context works fine, so as via UI by manual filter apply...

Is there anything required for the default_group_by to work?

Thanks.

Avatar
Descartar
Autor Best Answer

It appears I mistakenly put <templates> outside of <kanban> tags...

Avatar
Descartar
Related Posts Respostes Vistes Activitat
1
de març 19
13379
1
de gen. 25
1657
3
d’oct. 23
8636
1
de set. 23
3246
1
de maig 23
2220