Odoo10看板视图中的空组 [英] Empty groups in Kanban view of Odoo10

查看:140
本文介绍了Odoo10看板视图中的空组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在Odoo10的看板视图中显示没有任何项目的组(列)?

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

找到了文章怎么办在Odoo8中可以解决,但那里描述的方法似乎不再起作用.

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

推荐答案

在odoo 10中,group_by_defaultgroup_expand取代,它包含所有阶段的列表. 例如,您的列为stage,并且您想显示所有空白阶段.

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')

这篇关于Odoo10看板视图中的空组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆