Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
2813 มุมมอง

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
4
ม.ค. 24
23737
0
ส.ค. 23
2619
Not displaying the form and tree view แก้ไขแล้ว
5
ก.ย. 21
18017
3
ม.ค. 21
17944
0
ธ.ค. 19
4223