Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
802 Переглядів

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

Аватар
Відмінити
Найкраща відповідь

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

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
3
серп. 25
2308
1
трав. 25
2541
1
квіт. 25
3512
1
квіт. 25
4343
1
квіт. 25
1818