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.
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.
In odoo 10 group_by_default
is replaced by group_expand
and it takes list of all your stages.
for e.g your columns are stage
and you want to show all empty stages.
@api.model
def _read_group_stage_ids(self,stages,domain,order):
stage_ids = self.env['stage.stage'].search([])
return stage_ids
stage = fields.Many2one('stage.stage', group_expand='_read_group_stage_ids')