跳至內容
選單
此問題已被標幟
2 回覆
1458 瀏覽次數

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

頭像
捨棄
作者 最佳答案

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...

頭像
捨棄
最佳答案

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

頭像
捨棄