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
- Księgowość
- Zapasy
- PoS
- Project
- MRP
To pytanie dostało ostrzeżenie
1
Odpowiedz
772
Widoki
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
Podoba Ci się ta dyskusja? Dołącz do niej!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
|
1
maj 25
|
2463 | ||
|
1
kwi 25
|
3485 | ||
|
1
kwi 25
|
4316 | ||
|
1
kwi 25
|
1791 | ||
|
4
mar 25
|
6908 |