Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
866 Weergaven

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
Annuleer
Beste antwoord

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
3
aug. 25
2846
1
mei 25
2782
1
apr. 25
3744
1
apr. 25
4613
1
apr. 25
2049