From 6f5489cc938d829ff5d0d4d8b00b8b92e37a12b5 Mon Sep 17 00:00:00 2001 From: xmo-odoo Date: Tue, 8 Jul 2014 12:18:45 +0200 Subject: [PATCH] Compatibility with openerp -> odoo rename --- runbot/runbot.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/runbot/runbot.py b/runbot/runbot.py index d7548348..ee5b5ce7 100644 --- a/runbot/runbot.py +++ b/runbot/runbot.py @@ -506,8 +506,12 @@ class runbot_build(osv.osv): build.repo_id.fallback_id.git_export(name, build.path()) # move all addons to server addons path + if os.path.exists(build.path('odoo')): + dest = build.path('odoo/addons') + else: + dest = build.path('openerp/addons') for i in glob.glob(build.path('addons/*')): - shutil.move(i, build.path('openerp/addons')) + shutil.move(i, dest) def pg_dropdb(self, cr, uid, dbname): pid_col = 'pid' if cr._cnx.server_version >= 90200 else 'procpid'