Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
799 Ansichten

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
Verwerfen
Beste Antwort

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
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
3
Aug. 25
2286
1
Mai 25
2533
1
Apr. 25
3509
1
Apr. 25
4339
1
Apr. 25
1812