Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
2518 Представления

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.

Аватар
Отменить
Автор Лучший ответ

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

Аватар
Отменить
Related Posts Ответы Просмотры Активность
1
мар. 19
13374
1
янв. 25
1651
3
окт. 23
8631
1
сент. 23
3242
1
мая 23
2214