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

I want to add a filter to the tree view to show only products that have real stock greater than 0.
I tried to add a custom filter from CONFIGURATION - TECHNICAL - USER INTERFACE - USER DEFINED FILTERS, but nothing happened
The values ​​I used in the filter are:

NAME FILTER: My filter
MODEL: Product
DOMAIN: [['qty_available', '>', 0]]
CONTEXT: {}

Any suggestions?

I'm using odoo version from the odoo official page

 

頭像
捨棄
最佳答案

Does the filter itself show up? If so, is nothing changes when you select it from the list view?

頭像
捨棄
作者

Yes, the filter correctly on SALES - PRODUCTS - PRODUCTS but when selected nothing happens (does not filter the database). Another thing I find strange is that, being in SALES - PRODUCTS - PRODUCT, if I click on the columns "internal reference", "variant", "name", etc. the database is sorted, whereas if I click on "quantity on hand" or "forecasted quantity" database is not ordered

相關帖文 回覆 瀏覽次數 活動
1
12月 24
3381
2
3月 15
7146
0
9月 21
2861
1
6月 19
4911
3
8月 24
2617