Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
2 Vastaukset
2858 Näkymät

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
Hylkää
Paras vastaus

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
Hylkää
Tekijä Paras vastaus

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

Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
4
tammik. 24
23802
0
elok. 23
2665
5
syysk. 21
18089
3
tammik. 21
18079
0
jouluk. 19
4273