تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
2822 أدوات العرض

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!

الصورة الرمزية
إهمال
أفضل إجابة

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

الصورة الرمزية
إهمال
الكاتب أفضل إجابة

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

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
4
يناير 24
23743
0
أغسطس 23
2623
5
سبتمبر 21
18030
3
يناير 21
17979
0
ديسمبر 19
4230