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

Hello,

in a tree view (ie : sale.order), i would like to add a predetermined filter but with a value entered by the user.
Example filter:
"Orders with an amount greater than X"
And the user, choosing this filter, will be prompted to enter the value of X

Is it possible to do this in Odoo?

Thank you

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

Hi Cybrosis,

Yes I know this possibility but the problem is that you have to do it every time.
What I want to do is have a pre-determined filter in this list of filters.
And when I click on it, I have a popup that asks me the amount to compare.
So, with a single filter, it can be used to search for orders > 100 or >1000 or >xxxx etc...

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

Hi,

In odoo, Tree view has a filter option. By clicking this we have an option ‘Add custom filter”. From that, we can choose the filter.

For “ Orders with an amount greater than X “, from the custom filter, we can choose the total and can specify the amount. 

Regards

Ảnh đại diện
Huỷ bỏ