Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
5874 Visualizzazioni

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
Abbandona
Risposta migliore

Refer the LInk may be help you.

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
dic 17
7687
2
nov 16
6498
1
set 15
5155
3
ago 15
9305
1
lug 15
8706