mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 23:45:44 +07:00
[FIX] runbot: do not count linked errors
On the build errors frontend page, the linked errors are displayed too. With this commit, they are removed from the search query.
This commit is contained in:
parent
5c19342bf6
commit
2556145843
@ -368,7 +368,7 @@ class Runbot(Controller):
|
||||
|
||||
current_user_errors = request.env['runbot.build.error'].search([('responsible', '=', request.env.user.id)], order='last_seen_date desc, build_count desc')
|
||||
|
||||
domain = [('responsible', '!=', request.env.user.id), ('build_count', '>', 1)]
|
||||
domain = [('parent_id', '=', False), ('responsible', '!=', request.env.user.id), ('build_count', '>', 1)]
|
||||
build_errors_count = request.env['runbot.build.error'].search_count(domain)
|
||||
url_args = {}
|
||||
url_args['sort'] = sort
|
||||
|
Loading…
Reference in New Issue
Block a user