mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 23:45:44 +07:00
[FIX] runbot: prevent showing old fixed build error
When a build error is archived, a linked children with an assigned fixer may still appear on the error frontend page. With this commit, old children are not showing up again.
This commit is contained in:
parent
2604d962e9
commit
cfac0a11ef
@ -368,7 +368,10 @@ class Runbot(Controller):
|
||||
|
||||
sort_order = sort if sort in sort_order_choices else 'last_seen_date desc'
|
||||
|
||||
current_user_errors = request.env['runbot.build.error'].search([('responsible', '=', request.env.user.id)], order='last_seen_date desc, build_count desc')
|
||||
current_user_errors = request.env['runbot.build.error'].search([
|
||||
('responsible', '=', request.env.user.id),
|
||||
('parent_id', '=', False),
|
||||
], order='last_seen_date desc, build_count desc')
|
||||
|
||||
domain = [('parent_id', '=', False), ('responsible', '!=', request.env.user.id), ('build_count', '>', 1)]
|
||||
build_errors_count = request.env['runbot.build.error'].search_count(domain)
|
||||
|
Loading…
Reference in New Issue
Block a user