Help

欢迎!

该社区面向专业人士和我们产品和服务的爱好者。
分享和讨论最好的内容和新的营销理念,建立您的专业形象,一起成为更好的营销人员。


0

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

Avatar
odoo
1 Comment
Avatar
Discard
Avatar
odoo
-

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.

2 Answers
0
Avatar
odoo
Best Answer

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.

Avatar
Discard
0
Avatar
odoo
Best Answer
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
Avatar
Discard