Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
5866 Vues

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
Ignorer
Meilleure réponse

Refer the LInk may be help you.

Avatar
Ignorer
Publications associées Réponses Vues Activité
1
déc. 17
7685
2
nov. 16
6491
1
sept. 15
5154
3
août 15
9300
1
juil. 15
8703