Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
5281 Vistas

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?

Avatar
Descartar

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

Mejor respuesta

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


Avatar
Descartar
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.

Publicaciones relacionadas Respuestas Vistas Actividad
4
ene 24
23248
2
ene 24
2549
0
ago 23
2349
5
sept 21
17625
3
ene 21
16948