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

If I create a separate filter for the domain and the group by, they work fine. But I want the user to be able to select both of them from the same click.

I am trying to create the following filter

<filter name="En Route"
domain="[('delivery_state', '=', 'en_route')]"
context="{'group_by': 'vehicle_id'}"/>

When I do this, Odoo ignores the domain and only creates a group by filter.

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

You need to create a custom filter via record. Check out xmlid filter_invoice_refund for more info.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 1 23
3566
0
thg 5 16
3346
0
thg 5 23
2718
2
thg 9 16
7933
1
thg 7 15
4647