Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
2219 Zobrazení

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šit
Nejlepší odpověď

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šit
Related Posts Odpovědi Zobrazení Aktivita
0
pro 23
1242
1
led 23
2026
1
lis 22
3205
2
čvc 22
6937
1
čvc 22
3877