Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
789 Näkymät

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
Hylkää
Paras vastaus

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
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
3
elok. 25
2224
1
toukok. 25
2505
1
huhtik. 25
3496
1
huhtik. 25
4323
1
huhtik. 25
1799