Skip to Content
Menu
This question has been flagged
1 Atsakyti
2563 Rodiniai

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.

Portretas
Atmesti
Autorius Best Answer

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

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
kov. 19
13406
1
saus. 25
1681
3
spal. 23
8689
1
rugs. 23
3264
1
geg. 23
2228