Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
9010 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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 -- > |

Ảnh đại diện
Huỷ bỏ
Tác giả

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 10 24
1405
1
thg 5 16
6043
2
thg 3 15
8810
3
thg 1 25
13231
0
thg 7 22
2644