Skip to Content
Menu
This question has been flagged
1 Atsakyti
2361 Rodiniai

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

Portretas
Atmesti
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

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
0
gruod. 23
1329
1
saus. 23
2130
1
lapkr. 22
3334
2
liep. 22
7081
1
liep. 22
4039