Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
7555 มุมมอง

i want to add this condition in a button 
invisible="['|', ('state', '!=', 'draft'), ('initial_invoice', '=', True)]"

It is not working for odoo17, How to make the or condition work ???

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Try like this.

invisible="state != 'draft' or initial_invoice = True"
อวตาร
ละทิ้ง

its work for me,thank you

คำตอบที่ดีที่สุด

You can try this. -> invisible="condition 1 or condition 2"

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
3
ก.พ. 24
2262
0
เม.ย. 24
30
2
ก.ค. 18
14937
Always invisible fields on V18 แก้ไขแล้ว
1
มิ.ย. 25
3306
0
มี.ค. 25
779