Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
8375 มุมมอง

Is it possible to show groups (columns) without any items in Kanban view of Odoo10?

I found an article how to do that in Odoo8, but the way that is described there doesn't seem to work anymore:

http://ludwiktrammer.github.io/odoo/odoo-grouping-kanban-view-empty.html

อวตาร
ละทิ้ง
ผู้เขียน

It looks like if you use Selection field for the group, it doesn't work, but if Many2one is used, then it is showing the empty columns.

คำตอบที่ดีที่สุด

Hi

I think it's possible to create those groups in you xml file, just like in this tutorial https://www.odoo.com/documentation/9.0/howtos/backend.html you can add partner catagory (in the "domain" chapter). If you make a group_by with those elements created they should be displayed.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด
field_name= fields.Many2one('model.name', string="Label", group_expand='_function_name')

@api.model
def _function_name(self,stages,domain,order):
    columns_ids = self.env['columns.model'].search([])
    ​return columns_ids
อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
Many2many in kanban view แก้ไขแล้ว
1
ก.พ. 19
5021
To show all stages in Kanban view แก้ไขแล้ว
3
ธ.ค. 23
21623
0
ส.ค. 18
5600
2
พ.ค. 18
4086
2
ก.ค. 25
4624