Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
5299 Lượt xem

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?

Ảnh đại diện
Huỷ bỏ

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

Câu trả lời hay nhất

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


Ảnh đại diện
Huỷ bỏ
Tác giả

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.

Bài viết liên quan Trả lời Lượt xem Hoạt động
4
thg 1 24
23255
Attrs attribute Đã xử lý
2
thg 1 24
2552
0
thg 8 23
2352
5
thg 9 21
17632
3
thg 1 21
16958