Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
2548 Prikazi

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
Opusti
Avtor Best Answer

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

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
1
mar. 19
13384
1
jan. 25
1662
3
okt. 23
8649
1
sep. 23
3248
1
maj 23
2222