跳至内容
菜单
此问题已终结

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
3123
2
3月 15
7034
0
9月 21
2753
1
6月 19
4825
3
8月 24
2449