Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
775 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
kvě 25
2463
1
dub 25
3485
1
dub 25
4316
1
dub 25
1791
4
bře 25
6908