[FIX] account: do not auto install modules that depend on Accounting

Moved in the post init hook of account_accountant

closes odoo/odoo#60068

X-original-commit: f997bc8f6e9d5138de6faed80e9774d359bfbe8d
Related: odoo/enterprise#14100
Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
Signed-off-by: wan <william-andre@users.noreply.github.com>
This commit is contained in:
wan
2020-10-15 10:14:25 +00:00
parent fb261e7b03
commit 1c30b8a95c
-2
View File
@@ -59,8 +59,6 @@ def _auto_install_l10n(env):
module_list.append('base_vat')
if country_code == 'MX':
module_list.append('l10n_mx_edi')
if country_code == 'AU':
module_list.append('account_reports_cash_basis')
module_ids = env['ir.module.module'].search([('name', 'in', module_list), ('state', '=', 'uninstalled')])
module_ids.sudo().button_install()