Skip to Content
Menu
This question has been flagged
1 Odpoveď
2273 Zobrazenia

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
Zrušiť
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
Zrušiť
Related Posts Replies Zobrazenia Aktivita
0
dec 23
1296
1
jan 23
2060
1
nov 22
3255
2
júl 22
6989
1
júl 22
3953