diff --git a/runbot/models/branch.py b/runbot/models/branch.py index 16aa14a8..330b0856 100644 --- a/runbot/models/branch.py +++ b/runbot/models/branch.py @@ -12,6 +12,7 @@ _re_patch = re.compile(r'.*patch-\d+$') class runbot_branch(models.Model): _name = "runbot.branch" + _description = "Branch" _order = 'name' _sql_constraints = [('branch_repo_uniq', 'unique (name,repo_id)', 'The branch must be unique per repository !')] diff --git a/runbot/models/build.py b/runbot/models/build.py index 3c08a4b4..f05d1095 100644 --- a/runbot/models/build.py +++ b/runbot/models/build.py @@ -32,6 +32,8 @@ def make_selection(array): class runbot_build(models.Model): _name = "runbot.build" + _description = "Build" + _order = 'id desc' _rec_name = 'id' diff --git a/runbot/models/build_config.py b/runbot/models/build_config.py index 29e2fbde..0dac6010 100644 --- a/runbot/models/build_config.py +++ b/runbot/models/build_config.py @@ -21,6 +21,7 @@ PYTHON_DEFAULT = "# type python code here\n\n\n\n\n\n" class Config(models.Model): _name = "runbot.build.config" + _description = "Build config" _inherit = "mail.thread" name = fields.Char('Config name', required=True, unique=True, track_visibility='onchange', help="Unique name for config please use trigram as postfix for custom configs") @@ -84,6 +85,7 @@ class Config(models.Model): class ConfigStep(models.Model): _name = 'runbot.build.config.step' + _description = "Config step" _inherit = 'mail.thread' # general info @@ -560,6 +562,7 @@ class ConfigStep(models.Model): class ConfigStepOrder(models.Model): _name = 'runbot.build.config.step.order' + _description = "Config step order" _order = 'sequence, id' # a kind of many2many rel with sequence diff --git a/runbot/models/build_dependency.py b/runbot/models/build_dependency.py index dc246341..0c8090dd 100644 --- a/runbot/models/build_dependency.py +++ b/runbot/models/build_dependency.py @@ -3,6 +3,7 @@ from odoo import models, fields class RunbotBuildDependency(models.Model): _name = "runbot.build.dependency" + _description = "Build dependency" build_id = fields.Many2one('runbot.build', 'Build', required=True, ondelete='cascade', index=True) dependecy_repo_id = fields.Many2one('runbot.repo', 'Dependency repo', required=True, ondelete='cascade') diff --git a/runbot/models/build_error.py b/runbot/models/build_error.py index 4d183c07..b7111cdc 100644 --- a/runbot/models/build_error.py +++ b/runbot/models/build_error.py @@ -13,6 +13,8 @@ _logger = logging.getLogger(__name__) class RunbotBuildError(models.Model): _name = "runbot.build.error" + _description = "Build error" + _inherit = "mail.thread" _rec_name = "id" @@ -171,6 +173,7 @@ class RunbotBuildError(models.Model): class RunbotBuildErrorTag(models.Model): _name = "runbot.build.error.tag" + _description = "Build error tag" name = fields.Char('Tag') error_ids = fields.Many2many('runbot.build.error', string='Errors') @@ -179,6 +182,7 @@ class RunbotBuildErrorTag(models.Model): class RunbotErrorRegex(models.Model): _name = "runbot.error.regex" + _description = "Build error regex" _inherit = "mail.thread" _rec_name = 'id' _order = 'sequence, id' diff --git a/runbot/models/event.py b/runbot/models/event.py index 99544e78..cfd3db9d 100644 --- a/runbot/models/event.py +++ b/runbot/models/event.py @@ -74,6 +74,7 @@ FOR EACH ROW EXECUTE PROCEDURE runbot_set_logging_build(); class RunbotErrorLog(models.Model): _name = "runbot.error.log" + _description = "Error log" _auto = False _order = 'id desc' diff --git a/runbot/models/host.py b/runbot/models/host.py index b5bdb031..f48c2361 100644 --- a/runbot/models/host.py +++ b/runbot/models/host.py @@ -6,6 +6,7 @@ _logger = logging.getLogger(__name__) class RunboHost(models.Model): _name = "runbot.host" + _description = "Host" _order = 'id' _inherit = 'mail.thread' diff --git a/runbot/models/repo.py b/runbot/models/repo.py index cfa48ebd..0acad0b0 100644 --- a/runbot/models/repo.py +++ b/runbot/models/repo.py @@ -30,6 +30,7 @@ class RunbotException(Exception): class runbot_repo(models.Model): _name = "runbot.repo" + _description = "Repo" _order = 'sequence, id' name = fields.Char('Repository', required=True) @@ -763,6 +764,7 @@ class runbot_repo(models.Model): class RefTime(models.Model): _name = "runbot.repo.reftime" + _description = "Repo reftime" _log_access = False time = fields.Float('Time', index=True, required=True) @@ -771,6 +773,7 @@ class RefTime(models.Model): class HookTime(models.Model): _name = "runbot.repo.hooktime" + _description = "Repo hooktime" _log_access = False time = fields.Float('Time') diff --git a/runbot/wizards/multi_build_wizard.py b/runbot/wizards/multi_build_wizard.py index 34fe13d1..707180f7 100644 --- a/runbot/wizards/multi_build_wizard.py +++ b/runbot/wizards/multi_build_wizard.py @@ -6,6 +6,7 @@ from odoo import fields, models, api class MultiBuildWizard(models.TransientModel): _name = 'runbot.build.config.multi.wizard' + _description = "Multi wizard" base_name = fields.Char('Generic name', required=True) prefix = fields.Char('Prefix', help="Leave blank to use login.")