Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
1462 มุมมอง

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

อวตาร
ละทิ้ง