跳至内容
菜单
此问题已终结
1 回复
2528 查看

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...

形象
丢弃
相关帖文 回复 查看 活动
1
3月 19
13375
1
1月 25
1651
3
10月 23
8632
1
9月 23
3243
1
5月 23
2218