تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
2525 أدوات العرض

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
مارس 19
13374
1
يناير 25
1651
3
أكتوبر 23
8631
1
سبتمبر 23
3242
1
مايو 23
2215