From 1f0f1cd1bacb363f7fb0a1c5abee100349aed61c Mon Sep 17 00:00:00 2001 From: Jeremy Kersten Date: Mon, 13 Oct 2014 17:30:15 +0200 Subject: [PATCH] [IMP] search : search also in the branch name and not only in dest, because when the branch name is too long, we cannot retrieve own commit because trigram has been replaced by build number --- runbot/runbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runbot/runbot.py b/runbot/runbot.py index 56d176fd..a0906e75 100644 --- a/runbot/runbot.py +++ b/runbot/runbot.py @@ -1003,7 +1003,7 @@ class RunbotController(http.Controller): domain = [('repo_id','=',repo.id)] domain += [('state', '!=', key) for key, value in filters.iteritems() if value == '0'] if search: - domain += ['|', ('dest', 'ilike', search), ('subject', 'ilike', search)] + domain += ['|', '|', ('dest', 'ilike', search), ('subject', 'ilike', search), ('branch_id.branch_name', 'ilike', search)] build_ids = build_obj.search(cr, uid, domain, limit=int(limit)) branch_ids, build_by_branch_ids = [], {}