Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
2527 Widoki

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.

Awatar
Odrzuć
Autor Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
mar 19
13375
1
sty 25
1651
3
paź 23
8632
1
wrz 23
3243
1
maj 23
2218