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
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký| Bài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
|---|---|---|---|---|
|
how to use and in search?
Đã xử lý
|
2
thg 12 22
|
17097 | ||
|
1
thg 9 22
|
2879 | |||
|
1
thg 4 20
|
142 | |||
|
1
thg 6 19
|
4935 | |||
|
1
thg 11 18
|
3544 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.