跳至内容
菜单
此问题已终结
1 回复
870 查看

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

形象
丢弃
相关帖文 回复 查看 活动
3
8月 25
2854
1
5月 25
2782
1
4月 25
3750
1
4月 25
4615
1
4月 25
2054