콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
5369 화면

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.

관련 게시물 답글 화면 활동
4
1월 24
23416
Attrs attribute 해결 완료
2
1월 24
2613
0
8월 23
2395
5
9월 21
17745
3
1월 21
17269