Se rendre au contenu
Menu
Cette question a été signalée
2 Réponses
1878 Vues

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
Ignorer
Meilleure réponse

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
Ignorer
Auteur Meilleure réponse

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

Avatar
Ignorer
Publications associées Réponses Vues Activité
4
janv. 24
22414
0
août 23
1873
5
sept. 21
16942
3
janv. 21
15345
0
déc. 19
3640