From 534bb728ce05928b89d59ffd281e780fb013f192 Mon Sep 17 00:00:00 2001 From: Xavier-Do Date: Fri, 17 Jan 2020 11:39:47 +0100 Subject: [PATCH] [IMP] runbot: add parent_path --- runbot/models/build.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/runbot/models/build.py b/runbot/models/build.py index 7e964fc7..a11c750a 100644 --- a/runbot/models/build.py +++ b/runbot/models/build.py @@ -35,6 +35,7 @@ class runbot_build(models.Model): _name = "runbot.build" _description = "Build" + _parent_store = True _order = 'id desc' _rec_name = 'id' @@ -96,6 +97,7 @@ class runbot_build(models.Model): default='normal', string='Build type') parent_id = fields.Many2one('runbot.build', 'Parent Build', index=True) + parent_path = fields.Char('Parent path', index=True) # should we add a has children stored boolean? hidden = fields.Boolean("Don't show build on main page", default=False) # index? children_ids = fields.One2many('runbot.build', 'parent_id')