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
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- 회계
- 재고 관리
- PoS
- Project
- MRP
신고된 질문입니다
1
회신
831
화면
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
|
2613 | ||
|
1
5월 25
|
2646 | ||
|
1
4월 25
|
3637 | ||
|
1
4월 25
|
4492 | ||
|
1
4월 25
|
1963 |