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
- Accounting
- Inventory
- PoS
- Project
- MRP
This question has been flagged
1
Reply
770
Views
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
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
1
May 25
|
2461 | ||
|
1
Apr 25
|
3481 | ||
|
1
Apr 25
|
4312 | ||
|
1
Apr 25
|
1790 | ||
|
4
Mar 25
|
6904 |