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

Hello, I 've made some custom fields in account invoice form, and i want to make them required or not depended on journal_id. As far {'required':[('journal_id', '=', 1)]} works, but its only for 1 condition. i want to make something like {'required':[('journal_id', '=', 1), ('journal_id', '=', 12)]} but nothing happens. Also I 've tried {'required':['I', ('journal_id', '=', 1), ('journal_id', '=', 12)]} but then it says that "I" is not in the domain. Any ideas?

Also I want to know if there is a way to invoice products without delivery order and manage quantity on hand.

Thanks in advance

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

That's because you mistakenly used an "I" to place or. But it's not an L or an i. It's a bar. |. Use this bar -- > |

อวตาร
ละทิ้ง
ผู้เขียน

LOL. Thank you very much. You saved me from some more hours of dumb research. :)

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ต.ค. 24
1342
1
พ.ค. 16
5975
2
มี.ค. 15
8740
3
ม.ค. 25
13152
0
ก.ค. 22
2566