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

Hello everyone,

I'm trying to create a custom filter in the Inventory module that displays only the warehouses associated with the sales teams to which the logged-in user belongs. I've been struggling to get this working and tried several combinations, but nothing seems to work. For example, I tried the following domain filter:

[("warehouse_id.sale_team_ids", "in", [uid])]


Unfortunately, this filter doesn't return any results. Could someone guide me on how to correctly set up a domain filter that achieves this?

Thanks in advance for your help!

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

Hi,

Thank you for your help. I managed to create a filter that shows the inventory for the user sales team of the logged-in user as follows:

[("warehouse_id.sale_team_ids.crm_team_member_ids.user_id", "in", [uid])]


However, this raised a question: Is it possible to display the sale_team_ids instead of just the sale_team_id? I need to show the warehouses associated with all the permitted sales teams to which the logged-in user belongs.

Thank you in advance for your assistance with this query.

Best regards,

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

Hi,

To create or configure custom filters in odoo 17, Please refer the following link:

https://www.cybrosys.com/blog/how-to-configure-search-view-filter-group-by-in-odoo-17


Hope it helps.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 9 24
842
0
thg 7 25
803
1
thg 6 25
765
1
thg 6 25
806
2
thg 6 25
1516