コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
2520 ビュー

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
13374
1
1月 25
1651
3
10月 23
8631
1
9月 23
3242
1
5月 23
2214