Skip to Content
मेन्यू
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
Discard
Author

in odoo17 attrs and states is no longer supported brother

Best Answer

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
Discard
Best Answer

You can give like this,

       attrs="{

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

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

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

           'string': 'Custom Label'

       }"/>

Avatar
Discard
Related Posts Replies Views Activity
0
अप्रैल 24
964
1
नव॰ 24
795
0
जन॰ 24
790
5
अक्तू॰ 24
2344
5
दिस॰ 24
5143