コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
5303 ビュー

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
23257
2
1月 24
2553
0
8月 23
2352
5
9月 21
17632
3
1月 21
16959