From d1cff975be87e5a7d54de68556d38419b78ed9c3 Mon Sep 17 00:00:00 2001 From: Olivier Dony Date: Fri, 9 Oct 2015 14:38:49 +0200 Subject: [PATCH] [IMP] runbot: exclude l10n_ modules unless explicit As of Odoo 9 the first l10n module installed will automatically install its chart of account on the main company, so installing the first one (l10n_ae) is surprising/strange. Branches that want to build l10n_* modules should list them explicitly in the "modules to install" field (modules). In addition, having demo data to set the country of the main company will automatically installe the relevant l10n module if it exists. This is the default in Odoo 9 with l10n_us. --- runbot/runbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runbot/runbot.py b/runbot/runbot.py index 2b082c7a..91ad244a 100644 --- a/runbot/runbot.py +++ b/runbot/runbot.py @@ -707,7 +707,7 @@ class runbot_build(osv.osv): mod_filter = lambda m: ( m in available_modules and - (m in explicit_modules or (not m.startswith(('hw_', 'theme_')) + (m in explicit_modules or (not m.startswith(('hw_', 'theme_', 'l10n_')) and m not in blacklist_modules)) ) return uniq_list(filter(mod_filter, modules))