odoo/odoo#196522

Created by fw-bot
Merged at 3757daca84dc080a276c04f310262a3ddf340a0f

Statuses:

label
odoo-dev:18.0-17.0-fix-es-tax-update-jbw-414065-fw
head
4ca3feff3ad9b284befa7bb29b09401bb38be39f
merged
9 months ago by Accounting, Habib Ayob (ayh)
odoo/odoo
17.0 #196360
saas-17.2 #196507
saas-17.4 #196515
18.0 #196522
saas-18.1 #196545
saas-18.2
saas-18.3
saas-18.4
19.0
master #196552

[FW][FIX] l10n_es_edi_facturae: fix update from 16

Tax account_tax_template_s_iva0_g_i was added in 17.0.
Init hook will load the data from account.tax-es_common.csv (_l10n_es_edi_facturae_post_init_hook) when upgrading from 16.0 and fail because account_tax_template_s_iva0_g_i does not exists yet.
Removing account_tax_template_s_iva0_g_i from account.tax-es_common.csv prevent the bug and l10n_es_edi_facturae_tax_type will still be set to 1 as it is the default value.

Runbot error: https://runbot.odoo.com/odoo/runbot.build.error/114680

Forward-Port-Of: #196360