Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
2804 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Autore Risposta migliore

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

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
4
gen 24
23719
0
ago 23
2612
5
set 21
18002
3
gen 21
17904
0
dic 19
4216