Skip to Content
मेन्यू
This question has been flagged
1 Reply
2193 Views

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
Discard
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
Discard
Related Posts Replies Views Activity
0
दिस॰ 23
1222
1
जन॰ 23
2014
1
नव॰ 22
3192
2
जुल॰ 22
6899
1
जुल॰ 22
3843