İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
2283 Görünümler

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
Vazgeç
En İyi Yanıt

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
Vazgeç
Üretici En İyi Yanıt

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

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
4
Oca 24
22918
0
Ağu 23
2197
5
Eyl 21
17355
3
Oca 21
16254
0
Ara 19
3825