Skip to Content
Menu
This question has been flagged
1 Atsakyti
777 Rodiniai

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

Portretas
Atmesti
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

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
geg. 25
2466
1
bal. 25
3490
1
bal. 25
4319
1
bal. 25
1793
4
kov. 25
6915