跳至內容
選單
此問題已被標幟
2 回覆
2797 瀏覽次數

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
1月 24
23715
0
8月 23
2608
5
9月 21
17999
3
1月 21
17891
0
12月 19
4214