Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
4751 Visualizzazioni

question: Are readonly or invisible attributes possible in group tag? like below example? if not how i can make non editable all fields in a group? thanks

example:

group attrs="{'readonly' : [('state' , '!=' , 'done')]}"


Avatar
Abbandona
Risposta migliore

Hi, The invisible attribute is working on group tag as below:

odoo/purchase_views.xml at 15.0 · odoo/odoo (github.com)

But the readonly is not working and you have to add it on field tag.


Avatar
Abbandona
Autore Risposta migliore

Great answer mate. 

thank you.

Avatar
Abbandona