mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 23:45:44 +07:00
[IMP] runbot: allow to search multi terms with |
With this feature you can easily search your branch and branch from your team; or your features... Eg: jke|-website or -jke|-rde|-qsm|...
This commit is contained in:
parent
cfba7da06d
commit
2a04261b9e
@ -76,7 +76,8 @@ class Runbot(http.Controller):
|
||||
domain = [('repo_id', '=', repo.id)]
|
||||
domain += [('state', '!=', key) for key, value in iter(filters.items()) if value == '0']
|
||||
if search:
|
||||
domain += ['|', '|', ('dest', 'ilike', search), ('subject', 'ilike', search), ('branch_id.branch_name', 'ilike', search)]
|
||||
for to_search in search.split('|'):
|
||||
domain += ['|', '|', '|', ('dest', 'ilike', to_search), ('subject', 'ilike', to_search), ('branch_id.branch_name', 'ilike', to_search)]
|
||||
|
||||
build_ids = build_obj.search(domain, limit=int(limit))
|
||||
branch_ids, build_by_branch_ids = [], {}
|
||||
|
Loading…
Reference in New Issue
Block a user