Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged

states="done,ignore"

states="draft"

attrs="{'readonly':[('state','in',['done','ignore'])]}"

attrs="{'required':[('type','in',['sms'])],'invisible':[('type','in',['mail','chat'])]}"

Avatar
Zrušit
Autor

in odoo17 attrs and states is no longer supported brother

Nejlepší odpověď

You can review the Documentation to learn about that changes

https://www.odoo.com/documentation/17.0/developer/reference/user_interface/view_architectures.html#semantic-components

Use readonly and required and invisible 



Avatar
Zrušit
Nejlepší odpověď

You can give like this,

       attrs="{

           'readonly': [('state', 'in', ['done', 'ignore'])],

           'required': [('type', 'in', ['sms'])],

           'invisible': [('type', 'in', ['mail', 'chat'])],

           'string': 'Custom Label'

       }"/>

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
dub 24
964
1
lis 24
794
0
led 24
788
5
říj 24
2338
5
pro 24
5135