Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
2491 Widoki

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!

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Autor Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
4
sty 24
23193
0
sie 23
2321
5
wrz 21
17550
3
sty 21
16734
0
gru 19
3950