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'
}"/>
| 相关帖文 | 回复 | 查看 | 活动 | |
|---|---|---|---|---|
|
0
4月 24
|
1493 | |||
|
1
11月 24
|
1234 | |||
|
0
1月 24
|
1264 | |||
|
5
10月 24
|
2998 | |||
|
5
12月 24
|
6785 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.
in odoo17 attrs and states is no longer supported brother