Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
2615 Vizualizări

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!

Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
Autor Cel mai bun răspuns

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

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
4
ian. 24
23422
0
aug. 23
2399
5
sept. 21
17750
3
ian. 21
17289
0
dec. 19
4045