Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
5860 Widoki

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?

 

 

Awatar
Odrzuć
Najlepsza odpowiedź

Refer the LInk may be help you.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
gru 17
7685
2
lis 16
6490
1
wrz 15
5154
3
sie 15
9299
1
lip 15
8700