Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
436 มุมมอง
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
อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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'"
อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ม.ค. 25
772
3
ส.ค. 24
15845
1
พ.ย. 19
3758
1
ส.ค. 18
5041
1
มี.ค. 15
4936