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 @@