Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
2658 Vizualizări

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.

Imagine profil
Abandonează
Autor Cel mai bun răspuns

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

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
mar. 19
13523
1
ian. 25
1806
3
oct. 23
9008
1
sept. 23
3415
1
mai 23
2375