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

Using Studio, I want to create 2 additional menu's in the 'manufacturing' app.

Each menu should show the list of 'Transfer' items. But in each menu I want a different filter applied to this list by default. One menu should show the transfers of operation type X, the other of operation type Y.

I know a default filter can be applied (using 'Filter Rules' in Studio), but I noticed this default filter is then applied over all menu's that list all transfers.


Is it possible to achieve what I want using Studio? Or any other way to achieve this?

Thank you.

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

Yes, you can use Context to achieve this.

For example, the “Customers” menu initially displays a list of customers, and not any other type of contact.  This is set in the Windows Action: 

{'search_default_customer': 1}

Note: the customer filter is defined in the Search View. If you need to add a new filter you will have to update the search view (which you can do in Studio - and then you can rename the filter by directly editing the XML).

This is the filter (note the ‘X’ to show that it can be removed):

https://odootricks.tips/context/#filters

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 3 25
778
0
thg 2 25
533
0
thg 2 25
599
0
thg 2 25
637
2
thg 2 25
1108