[[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 <chs@odoo.com>
This commit is contained in:
Johan Demaret Rivarola
2019-04-10 06:57:09 +00:00
parent 492c5b6e17
commit 45010151dd
+2
View File
@@ -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)