Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
2517 Zobrazení

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
Zrušit
Autor Nejlepší odpověď

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

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
bře 19
13373
1
led 25
1650
3
říj 23
8627
1
zář 23
3242
1
kvě 23
2211