Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
5298 Widoki

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?

Awatar
Odrzuć

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

Najlepsza odpowiedź

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


Awatar
Odrzuć
Autor

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.

Powiązane posty Odpowiedzi Widoki Czynność
4
sty 24
23254
Attrs attribute Rozwiązane
2
sty 24
2552
0
sie 23
2352
5
wrz 21
17632
3
sty 21
16958