首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何删除odoo14中所有型号的kanban视图?

如何删除odoo14中所有型号的kanban视图?
EN

Stack Overflow用户
提问于 2021-07-22 10:15:31
回答 1查看 160关注 0票数 0

我需要删除所有型号的看板视图,如销售,购买等。我试着继承看板视图,并替换为空白。它显示了继承xpath时的错误。

任何帮助都是值得感激的!

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-07-23 05:49:45

请尝试继承此操作,例如:

代码语言:javascript
复制
<record id="action_orders" model="ir.actions.act_window">
    <field name="name">Sales Orders</field>
    <field name="type">ir.actions.act_window</field>
    <field name="res_model">sale.order</field>
    <field name="view_type">form</field>
    <field name="view_mode">tree,kanban,form,calendar,pivot,graph,activity</field>
    <field name="search_view_id" ref="sale_order_view_search_inherit_sale"/>
    <field name="context">{}</field>
    <field name="domain">[('state', 'not in', ('draft', 'sent', 'cancel'))]</field>
    <field name="help" type="html">
        <p class="o_view_nocontent_smiling_face">
            Create a new quotation, the first step of a new sale!
        </p><p>
            Once the quotation is confirmed, it becomes a sales order.<br/> You will be able to create an invoice and collect the payment.
        </p>
    </field>
</record>

通过继承,您可以编辑任何要实现的内容:

代码语言:javascript
复制
<record id="sale.action_orders" model="ir.actions.act_window">
    <field name="name">Sales Orders</field>
    <field name="type">ir.actions.act_window</field>
    <field name="res_model">sale.order</field>
    <field name="view_type">form</field>
    <field name="view_mode">tree,form,calendar,pivot,graph,activity</field>
    <field name="search_view_id" ref="sale_order_view_search_inherit_sale"/>
    <field name="context">{}</field>
    <field name="domain">[('state', 'not in', ('draft', 'sent', 'cancel'))]</field>
    <field name="help" type="html">
        <p class="o_view_nocontent_smiling_face">
            Create a new quotation, the first step of a new sale!
        </p><p>
            Once the quotation is confirmed, it becomes a sales order.<br/> You will be able to create an invoice and collect the payment.
        </p>
    </field>
</record>

另外,我也不确定字段视图get是否可以使用,但是您可以尝试一下。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/68483080

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档