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

This should be an easy one, yet...


I'm trying to disable a whole view. Naturally, I try to do the same thing i would do for menus, reports, etc.: I define a view using the same identifier as the original view and I only change the field I want...


<record id="hr_holidays.view_employee_form_leave_inherit" model="ir.ui.view">

    <field name="active" eval="0"/>

</record>


Unfortunately, this won't do the trick...

Any ideas, please?

อวตาร
ละทิ้ง

I'm not a developer, but I would xpath to the main "div" of the view and replace it with nothing.

คำตอบที่ดีที่สุด

<field name="active" invisible="1" />


อวตาร
ละทิ้ง
ผู้เขียน

That would work if I were trying to hide a form field called "active".

I want to change the value of "active" in the view definition, so that it won't be taken into consideration by Odoo when loading views.

Related Posts ตอบกลับ มุมมอง กิจกรรม
4
ม.ค. 24
23250
Attrs attribute แก้ไขแล้ว
2
ม.ค. 24
2552
0
ส.ค. 23
2352
Not displaying the form and tree view แก้ไขแล้ว
5
ก.ย. 21
17631
3
ม.ค. 21
16954