Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
8307 Переглядів

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 Відповіді Переглядів Дія
1
лют. 19
4995
3
груд. 23
21588
0
серп. 18
5538
2
трав. 18
4059
2
лип. 25
4504