跳至內容
選單
此問題已被標幟
1 回覆
2286 瀏覽次數

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
1304
1
1月 23
2073
1
11月 22
3268
2
7月 22
7002
1
7月 22
3968