Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
868 Tampilan

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

Avatar
Buang
Jawaban Terbai

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

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
3
Agu 25
2852
1
Mei 25
2782
1
Apr 25
3749
1
Apr 25
4615
1
Apr 25
2054