Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
4739 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Autor Nejlepší odpověď

Great answer mate. 

thank you.

Avatar
Zrušit