Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
796 Представления

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
2250
1
мая 25
2515
1
апр. 25
3502
1
апр. 25
4334
1
апр. 25
1802