[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.
This commit is contained in:
Olivier Dony 2015-10-09 14:38:49 +02:00
parent 19f6c36156
commit d1cff975be

View File

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