Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
7481 Visualizações

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

 

Avatar
Cancelar
Melhor resposta

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

Avatar
Cancelar
Autor

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

Publicações relacionadas Respostas Visualizações Atividade
1
dez. 24
3080
2
mar. 15
7003
0
set. 21
2737
1
jun. 19
4780
3
ago. 24
2431