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

There is no way for me to hide a field in the method fields_view_get, I tried all the possible ways to set invisible to the field, none of them worked (attrs, modifiers, invisible directly, invisible inside the tag.)

            for node in doc.xpath("//field[starts-with(@name, 'module_')]"):
                node.set('invisible', '1')  //don't work
                node.set('attrs', '{"invisible": 1 }') //don't work

What is my mistake here?

 

 

頭像
捨棄
最佳答案

Refer the LInk may be help you.

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
12月 17
7677
2
11月 16
6484
1
9月 15
5144
3
8月 15
9287
1
7月 15
8677