diff --git a/do_tests.py b/do_tests.py
index 0f63cdaa7f3232a4d1ba844da3b7360ec1d37187_ZG9fdGVzdHMucHk=..0de493c9e6a6e9d0d4ee7ef64cf9cd947d28c32f_ZG9fdGVzdHMucHk= 100755
--- a/do_tests.py
+++ b/do_tests.py
@@ -189,9 +189,13 @@
         c.has_option('odoo_scripts', 'load-language') and
         c.get('odoo_scripts', 'load-language')) or None
     postgresql_version = (
-         c.has_section('odoo_scripts') and
-         c.has_option('odoo_scripts', 'postgresql_version') and
-         c.get('odoo_scripts', 'postgresql_version')) or '9.6'
+        c.has_section('odoo_scripts') and
+        c.has_option('odoo_scripts', 'postgresql_version') and
+        c.get('odoo_scripts', 'postgresql_version')) or '9.6'
+    odoo_type = (
+        c.has_section('odoo_scripts') and
+        c.has_option('odoo_scripts', 'odoo_type') and
+        c.get('odoo_scripts', 'odoo_type')) or 'odoo7'
     image = "%s/%s:latest" % (registry, project)
     _logger.debug("Docker image: %s", image)
     extensions = (
@@ -255,7 +259,7 @@
             args.append('--dbport')
             args.append(dbport)
 
-    docker_dev_start.flake8()
+    docker_dev_start.flake8(odoo_type)
     if start_postgresql:
         args.append('--start-postgresql')
     if recreate_db: