跳至内容
菜单
此问题已终结
2 回复
2633 查看

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
23429
0
8月 23
2400
5
9月 21
17754
3
1月 21
17331
0
12月 19
4050