Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
2 Besvarelser
2887 Visninger

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
Kassér
Bedste svar

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
Kassér
Forfatter Bedste svar

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

Avatar
Kassér
Related Posts Besvarelser Visninger Aktivitet
4
jan. 24
23832
0
aug. 23
2700
5
sep. 21
18127
3
jan. 21
18183
0
dec. 19
4303