From 45010151dd890c0decf9d2e659bfdf7dad2cce3d Mon Sep 17 00:00:00 2001 From: Johan Demaret Rivarola Date: Tue, 9 Apr 2019 15:52:38 +0000 Subject: [PATCH] [[FIX] account: l10n_mx_edi installation To comply with Mexican laws, this l10n_mx_edi should always be installed when both l10n_mx and the accounting modules are installed. It should ease the onboarding process a bit too. opw-1960982 closes #32566 Signed-off-by: Christophe Simonis --- addons/account/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/account/__init__.py b/addons/account/__init__.py index c5e9b15a355..80cc9d75e05 100644 --- a/addons/account/__init__.py +++ b/addons/account/__init__.py @@ -40,6 +40,8 @@ def _auto_install_l10n(cr, registry): 'PL', 'PT', 'RO', 'SI', 'TR', 'UK', 'VE', 'VN' ]: module_list.append('base_vat') + if country_code == 'MX': + module_list.append('l10n_mx_edi') #european countries will be using SEPA europe = env.ref('base.europe', raise_if_not_found=False)