【问题标题】:Removing the accounting tab (page) on Partner form删除合作伙伴表单上的会计选项卡(页面)
【发布时间】:2014-02-11 19:01:22
【问题描述】:

我已尝试消除合作伙伴上的“会计”标签,但无法“隐藏”“会计”标签。是否有我应该在其中使用以下代码(或类似代码)的特定文件:

        <page string="Sales & Purchases" position="attributes">
            <attribute name='invisible'>1</attribute> 
        </page>

我正在尝试将其放入会计中的 partner_view.xml。我迷失了方向,希望能对此提供任何帮助。

提前非常感谢。 马蒂亚斯

【问题讨论】:

    标签: forms customization openerp accounting


    【解决方案1】:

    切勿对主要插件模块进行更改。更好地创建自定义模块。并继承base.view_patner_form并将其添加到您的xml中,

        <xpath expr="//page[@string='Accounting']" position="attributes">
            <attribute name='invisible'>True</attribute> 
        </xpath>
    

    供您参考,如果您想知道如何创建自定义模块,请查看After inheriting CRM-Lead unable to hide or add fields to my Custom module in Openerp

    希望这会对你有所帮助。

    【讨论】:

      猜你喜欢
      • 2021-07-20
      • 2021-08-30
      • 2013-01-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-08-04
      相关资源
      最近更新 更多