Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
2405 Vistas

Is there a way to use a field of a certain model in attrs attribute without showing that specific field in the view form?

This is the error:

Field 'type_name' used in attrs ({'invisible': [('type_name', '=', 'Invoice')]}) must be present in view but is missing.

Many thanks!

Avatar
Descartar
Mejor respuesta

Hi 

Make sure that the field type_name is present in view,otherwise add the following code in view record 

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


Regards

Avatar
Descartar
Autor Mejor respuesta

Thank you, I just make the field to be invisible so that it doesn't show on the view form

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
4
ene 24
23081
0
ago 23
2280
5
sept 21
17466
3
ene 21
16511
0
dic 19
3877