Skip to Content
मेन्यू
This question has been flagged
1 Reply
847 Views

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
Discard
Best Answer

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
Discard
Related Posts Replies Views Activity
3
अग॰ 25
2841
1
मई 25
2778
1
अप्रैल 25
3744
1
अप्रैल 25
4612
1
अप्रैल 25
2048