[[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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user