Skip to content
Snippets Groups Projects
Commit 1398c5cd authored by Ali Alfie (alal)'s avatar Ali Alfie (alal)
Browse files

[FIX] l10n_de: remove tag B from ir_model_data


In odoo/odoo/pull/126249 the german balance sheet report was updated and tag tag_de_liabilities_bs_B was removed from account_account_tags_data.xml. This deletes it from ir_model_data so that the ORM doesn't delete this record. This is done so that it doesn't break if another table was already using this tag.

closes odoo/odoo#131530

Signed-off-by: default avatarLaurent Smet (las) <las@odoo.com>
parent ef3d4166
No related branches found
No related tags found
No related merge requests found
......@@ -25,3 +25,12 @@ def migrate(cr, version):
rename_tag(cr, "tag_de_liabilities_bs_D_8", "tag_de_liabilities_bs_C_8")
rename_tag(cr, "tag_de_liabilities_bs_E", "tag_de_liabilities_bs_D")
rename_tag(cr, "tag_de_liabilities_bs_F", "tag_de_liabilities_bs_E")
# By deleting tag B from ir_model_data we ensure that the ORM won't try to remove this record.
# This is done because the tag might be already used as a FK somewhere else.
cr.execute(
"""DELETE FROM ir_model_data
WHERE module='l10n_de'
AND name='tag_de_liabilities_bs_B'
"""
)
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