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

I need an python function to select all task which are in open stage how can I do that using python code I am using odoo16

アバター
破棄
最善の回答

Hi,

You can get all the tasks that are in the open state by using the following Python code 
open_tasks = self.env['project.task'].search([('stage_id.id', '=', 'open_stage_id' )])

In the above code change the value of open_stage_id with the corresponding id of the stage where the task is in open.

Hope it helps

アバター
破棄
関連投稿 返信 ビュー 活動
3
8月 25
2189
1
5月 25
2495
1
4月 25
3495
1
4月 25
4322
1
4月 25
1799