xml - Odoo 10 看板 View 隐藏 "Add new Column"

标签 xml odoo odoo-10

我将 Odoo 从 9 版本升级到 10 版本,并且看板 View 出现问题。我无法隐藏“添加新列”菜单。在 9 版本上这个菜单我没有注意到...

在 xml 上尝试过此方法:

        <kanban position="attributes">
            <attribute name="group_create">false</attribute>
        </kanban>

但这对我没有帮助。还有其他建议吗?

最佳答案

请尝试以下操作,不要忘记添加<field name="mode">primary</field>

        <record id="project_issue_view_kanban_inherit_no_group_create" model="ir.ui.view">
            <field name="name">project.issue.view.kanban.inherit.no.group.create</field>
            <field name="model">project.issue</field>
            <field name="inherit_id" ref="project_issue.project_issue_kanban_view"/>
            <field name="mode">primary</field>
            <field name="priority">32</field>
            <field name="arch" type="xml">
                <kanban position="attributes">
                    <attribute name="group_create">false</attribute>
                </kanban>
            </field>
        </record>

关于xml - Odoo 10 看板 View 隐藏 "Add new Column",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51514144/

相关文章:

java - GridView 在 Android 中无法全屏显示

sql - 如何在postgresql中加入两个以上的表?

postgresql - openerp 6 中的 Controller 文件..?

odoo - Odoo 10 中的产品和产品模板

python - 如何创建并写入 xlsx 文件

android - 无法使用 "startActivityForResult"启动第二个 Activity

java - 按钮与底部对齐,从 ImageView 中隐藏

JavaScript 代码未执行!

python - 如何在 OpenERP 6.1 中调试 python 代码

python - 如何为不同字段添加 "decoration-danger"?例如,如果我的字段不属于 50-100,我想将其更改为红色。对于其他可能是 85-95