states="done,ignore"
states="draft"
attrs="{'readonly':[('state','in',['done','ignore'])]}"
attrs="{'required':[('type','in',['sms'])],'invisible':[('type','in',['mail','chat'])]}"
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
states="done,ignore"
states="draft"
attrs="{'readonly':[('state','in',['done','ignore'])]}"
attrs="{'required':[('type','in',['sms'])],'invisible':[('type','in',['mail','chat'])]}"
You can review the Documentation to learn about that changes
Use readonly and required and invisible
You can give like this,
attrs="{
'readonly': [('state', 'in', ['done', 'ignore'])],
'required': [('type', 'in', ['sms'])],
'invisible': [('type', 'in', ['mail', 'chat'])],
'string': 'Custom Label'
}"/>
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
0
Apr 24
|
889 | ||
|
1
Nov 24
|
753 | ||
|
0
Jan 24
|
746 | ||
|
5
Oct 24
|
2259 | ||
|
5
Dec 24
|
4986 |
in odoo17 attrs and states is no longer supported brother