Skip to Content
Menú
This question has been flagged
1 Respondre
2210 Vistes

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
Descartar
Best Answer

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
Descartar
Related Posts Respostes Vistes Activitat
0
de des. 23
1237
1
de gen. 23
2019
1
de nov. 22
3197
2
de jul. 22
6919
1
de jul. 22
3850