Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
2546 Visualizzazioni

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
Abbandona
Autore Risposta migliore

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

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
mar 19
13380
1
gen 25
1659
3
ott 23
8642
1
set 23
3246
1
mag 23
2222