Skip to Content
Menú
This question has been flagged
1 Respondre
5883 Vistes

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?

 

 

Avatar
Descartar
Best Answer

Refer the LInk may be help you.

Avatar
Descartar
Related Posts Respostes Vistes Activitat
1
de des. 17
7695
2
de nov. 16
6502
1
de set. 15
5166
3
d’ag. 15
9323
1
de jul. 15
8716