Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
2817 Lượt xem

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!

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhấ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

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
4
thg 1 24
23742
0
thg 8 23
2622
5
thg 9 21
18027
3
thg 1 21
17971
0
thg 12 19
4227