Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
2 Respostas
2344 Visualizações

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
Cancelar
Melhor resposta

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
Cancelar
Autor Melhor resposta

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

Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
4
jan. 24
22978
0
ago. 23
2243
5
set. 21
17405
3
jan. 21
16345
0
dez. 19
3854