コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
2315 ビュー

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

アバター
破棄
最善の回答

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

アバター
破棄
関連投稿 返信 ビュー 活動
0
12月 23
1310
1
1月 23
2099
1
11月 22
3279
2
7月 22
7042
1
7月 22
3977