From d30856107cfe958c3d5e34615bf64f873bfa2ec3 Mon Sep 17 00:00:00 2001 From: Xavier-Do Date: Thu, 5 Dec 2024 14:58:00 +0100 Subject: [PATCH] [IMP] runbot: apply upgrade code --- runbot/models/branch.py | 2 +- runbot/models/build_error.py | 6 ++-- runbot/templates/badge.xml | 4 +-- runbot/tests/test_branch.py | 2 +- runbot/views/branch_views.xml | 8 ++--- runbot/views/build_error_views.xml | 56 +++++++++++++++--------------- runbot/views/build_views.xml | 16 ++++----- runbot/views/bundle_views.xml | 50 +++++++++++++------------- runbot/views/codeowner_views.xml | 8 ++--- runbot/views/commit_views.xml | 16 ++++----- runbot/views/config_views.xml | 32 ++++++++--------- runbot/views/dashboard_views.xml | 52 +++++++++++++-------------- runbot/views/dockerfile_views.xml | 52 +++++++++++++-------------- runbot/views/error_log_views.xml | 8 ++--- runbot/views/host_views.xml | 12 +++---- runbot/views/repo_views.xml | 46 ++++++++++++------------ runbot/views/stat_views.xml | 8 ++--- runbot/views/upgrade.xml | 12 +++---- runbot/views/user.xml | 2 +- runbot/views/warning_views.xml | 8 ++--- 20 files changed, 200 insertions(+), 200 deletions(-) diff --git a/runbot/models/branch.py b/runbot/models/branch.py index cfcd6561..e70225ba 100644 --- a/runbot/models/branch.py +++ b/runbot/models/branch.py @@ -135,7 +135,7 @@ class Branch(models.Model): if branch.is_pr: branch.branch_url = "https://%s/pull/%s" % (branch.remote_id.base_url, branch.name) else: - branch.branch_url = "https://%s/tree/%s" % (branch.remote_id.base_url, branch.name) + branch.branch_url = "https://%s/list/%s" % (branch.remote_id.base_url, branch.name) else: branch.branch_url = '' diff --git a/runbot/models/build_error.py b/runbot/models/build_error.py index c2b4569e..51e5d318 100644 --- a/runbot/models/build_error.py +++ b/runbot/models/build_error.py @@ -235,7 +235,7 @@ class BuildError(models.Model): def action_view_errors(self): return { 'type': 'ir.actions.act_window', - 'views': [(False, 'tree'), (False, 'form')], + 'views': [(False, 'list'), (False, 'form')], 'res_model': 'runbot.build.error.content', 'domain': [('error_id', '=', self.id)], 'context': {'active_test': False}, @@ -311,7 +311,7 @@ class BuildError(models.Model): window_action = { "type": "ir.actions.act_window", "res_model": "runbot.build.error", - "views": [[False, "tree"]], + "views": [[False, "list"]], "domain": [('id', 'in', build_error_contents.ids)] } if len(build_error_contents) == 1: @@ -576,7 +576,7 @@ class BuildErrorContent(models.Model): "domain": [('id', 'in', duplicate_ids)], "context": {"create": False, 'group_by': ['fingerprint']}, "name": "Duplicate Error contents", - 'view_mode': 'tree,form' + 'view_mode': 'list,form' } def action_qualify(self): diff --git a/runbot/templates/badge.xml b/runbot/templates/badge.xml index 98f3f289..39ab5d69 100644 --- a/runbot/templates/badge.xml +++ b/runbot/templates/badge.xml @@ -3,7 +3,7 @@