Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
953 มุมมอง

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


อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,

You can add the priority to the view like this:

<field name="priority">99</field>
อวตาร
ละทิ้ง
ผู้เขียน

Thanks for replay but not working

Related Posts ตอบกลับ มุมมอง กิจกรรม
0
พ.ย. 24
15
0
ต.ค. 24
944
0
ต.ค. 24
985
2
ก.ค. 25
260
0
เม.ย. 25
658