From e29c25c7dc1cc715a66567aa6a03c8b3c42d6476 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Fri, 1 Jul 2016 14:50:18 +0200 Subject: [PATCH] [IMP] runbot: add sequence field on repo model --- runbot/runbot.py | 3 ++- runbot/runbot.xml | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/runbot/runbot.py b/runbot/runbot.py index d7a35884..e5536d78 100644 --- a/runbot/runbot.py +++ b/runbot/runbot.py @@ -170,7 +170,7 @@ def local_pgadmin_cursor(): class runbot_repo(osv.osv): _name = "runbot.repo" - _order = 'id' + _order = 'sequence, name, id' def _get_path(self, cr, uid, ids, field_name, arg, context=None): root = self.root(cr, uid) @@ -193,6 +193,7 @@ class runbot_repo(osv.osv): _columns = { 'name': fields.char('Repository', required=True), + 'sequence': fields.integer('Sequence'), 'path': fields.function(_get_path, type='char', string='Directory', readonly=1), 'base': fields.function(_get_base, type='char', string='Base URL', readonly=1), 'nginx': fields.boolean('Nginx'), diff --git a/runbot/runbot.xml b/runbot/runbot.xml index 3516b15b..75f81a6b 100644 --- a/runbot/runbot.xml +++ b/runbot/runbot.xml @@ -18,6 +18,7 @@