attrs="{'readonly': [('invoice_count','!=',0),('state','=','sale')]}" This is odoo 16 xml readonly attribute part, Can someone help me to convert this readonly condituion to odoo18Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- 회계
- 재고 관리
- PoS
- 프로젝트
- MRP
신고된 질문입니다
2
답글
2355
화면
Hi,
Try with the following code.
<field name="your_field_name" readonly="invoice_count != 0 and state == sale)"/>
Hope it helps
readonly="invoice_count and state == 'sale'"
| 관련 게시물 | 답글 | 화면 | 활동 | |
|---|---|---|---|---|
|
|
0
1월 25
|
1461 | ||
|
|
3
8월 24
|
16881 | ||
|
|
1
11월 19
|
4354 | ||
|
|
1
8월 18
|
5650 | ||
|
|
1
3월 15
|
5730 |