odoo - why xpath not worked in priority views? - Stack Overflow

I am trying to inherit all time off views (Time off --> Management -->Timeoff) for remove create

I am trying to inherit all time off views (Time off --> Management -->Timeoff) for remove create and create and edit option for employees fields .

The employees fields is the many2many fields

I tried like this ,

<record id="hr_leave_view_form_manager_inherit" model="ir.ui.view">
    <field name="model">hr.leave</field>
    <field name="inherit_id" ref="hr_holidays.hr_leave_view_form_manager"/>
    <field name="arch" type="xml">
        <xpath expr="//field[@name='employee_ids']" position="attributes">
            <attribute name="options">{'no_create': True, 'no_open': True}</attribute>
        </xpath>
    </field>
</record>

but it is not working , i tried replace but not working ,

i think the issue with priority . in default the mode is primary and priority is 16.

I am using odoo17 enterprice edition

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742349681a4427261.html

相关推荐

  • odoo - why xpath not worked in priority views? - Stack Overflow

    I am trying to inherit all time off views (Time off --> Management -->Timeoff) for remove create

    2小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信