I need to find for example all projects that have tasks.
task_ids = fields.One2Many('project.task', 'project_id')
Like: search([('task_ids', '>', 0)])?
Is there a way to do that or do I have to get tasks and then loop trough them to get project ids?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
I need to find for example all projects that have tasks.
task_ids = fields.One2Many('project.task', 'project_id')
Like: search([('task_ids', '>', 0)])?
Is there a way to do that or do I have to get tasks and then loop trough them to get project ids?
task_ids","!=",False
| 相关帖文 | 回复 | 查看 | 活动 | |
|---|---|---|---|---|
|
2
12月 22
|
17089 | |||
|
1
9月 22
|
2870 | |||
|
1
4月 20
|
142 | |||
|
1
6月 19
|
4930 | |||
|
1
11月 18
|
3534 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.