Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
2516 Visualizações

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
Cancelar
Autor Melhor resposta

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

Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
1
mar. 19
13373
1
jan. 25
1650
3
out. 23
8626
1
set. 23
3241
1
mai. 23
2210