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

Hey,

I need to compute my available_qty

I would like to search in my db, all the records with the state 'ongoing' so that i could make my calcul, if some one have an idea and can help me ?



Thx a lot

Avatar
Cancelar
Melhor resposta

Hello Ugo Di Zenzo

You can search in your compute method like
self.env["object.name"].search([("state", "=", "ongoing")])

Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari

Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
0
dez. 23
1306
1
jan. 23
2077
1
nov. 22
3271
2
jul. 22
7009
1
jul. 22
3969