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

Hi everyone, 

I know that in order to pass default search conditions to tree view (for example), you can pass context like this one

context: {"search_default_transfers_filter": 1, "search_default_journal_id": 25}


It will create the following condition: (transfers_filter=True AND journal_id=25)

The question is:

how do I pass OR condition in context?

I need result condition to be like this: (transfers_filter=True AND (journal_id=25 OR destination_journal_id=25))


Thanks!

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 7 25
2652
1
thg 1 25
1441
0
thg 5 23
2347
3
thg 3 25
24084
1
thg 11 22
2283