Skip to content
Snippets Groups Projects
Commit 1b37eaaf authored by Josse Colpaert's avatar Josse Colpaert
Browse files

[FIX] l10n_es_edi_sii: bien inversion should be properly set for sii info


The SII module adds some fields on the taxes, so after installing
the module, those fields need to be set on the already installed CoAs.

We forgot to set the l10n_es_bien_inversion field, which is used in
l10n_es_edi_sii to send the right information about the taxes to the gov.

closes odoo/odoo#135059

Signed-off-by: default avatarOlivier Colson (oco) <oco@odoo.com>
parent a658dfcd
No related branches found
No related tags found
No related merge requests found
......@@ -17,10 +17,11 @@ def _l10n_es_edi_post_init(cr, registry):
if all_chart_templates:
tax_templates = env['account.tax.template'].search([
('chart_template_id', 'in', all_chart_templates.ids),
'|', '|',
'|', '|', '|',
('l10n_es_type', '!=', False),
('l10n_es_exempt_reason', '!=', False),
('tax_scope', '!=', False),
('l10n_es_bien_inversion', '!=', False),
])
xml_ids = tax_templates.get_external_id()
for company in companies:
......@@ -32,4 +33,5 @@ def _l10n_es_edi_post_init(cr, registry):
'l10n_es_exempt_reason': tax_template.l10n_es_exempt_reason,
'tax_scope': tax_template.tax_scope,
'l10n_es_type': tax_template.l10n_es_type,
'l10n_es_bien_inversion': tax_template.l10n_es_bien_inversion,
})
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment