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 odoo18
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- 회계
- 재고 관리
- PoS
- Project
- MRP
신고된 질문입니다
2
답글
767
화면
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
|
870 | ||
|
3
8월 24
|
16043 | ||
|
1
11월 19
|
3856 | ||
|
1
8월 18
|
5157 | ||
|
1
3월 15
|
5055 |