mirror of
https://github.com/bringout/oca-ocb-l10n_europe.git
synced 2026-04-27 09:01:59 +02:00
19.0 vanilla
This commit is contained in:
parent
ff721d030e
commit
7721452493
1826 changed files with 124775 additions and 274114 deletions
|
|
@ -27,20 +27,21 @@ def migrate(cr, version):
|
|||
# that upgraded won't have the old tags data transferred to the new tags but they will still be able to have the updated sheet.
|
||||
cr.execute(
|
||||
"""SELECT 1 FROM ir_model_data
|
||||
WHERE module='l10n_de' AND name='tag_de_liabilities_bs_B_1'
|
||||
WHERE module='l10n_de' AND name='tag_de_liabilities_bs_B_1'
|
||||
""")
|
||||
if cr.rowcount:
|
||||
# If the script didn't run, we should remove the tags that have been replaced from ir_model_data too so they're
|
||||
# not deleted by the ORM if they were already used.
|
||||
cr.execute(
|
||||
"""DELETE FROM ir_model_data
|
||||
WHERE module='l10n_de'
|
||||
AND name IN ('tag_de_liabilities_bs_F', 'tag_de_liabilities_bs_D_1', 'tag_de_liabilities_bs_D_2',
|
||||
'tag_de_liabilities_bs_D_3', 'tag_de_liabilities_bs_D_4', 'tag_de_liabilities_bs_D_5',
|
||||
'tag_de_liabilities_bs_D_6', 'tag_de_liabilities_bs_D_7', 'tag_de_liabilities_bs_D_8')
|
||||
WHERE module='l10n_de'
|
||||
AND name IN ('tag_de_liabilities_bs_F', 'tag_de_liabilities_bs_D_1', 'tag_de_liabilities_bs_D_2',
|
||||
'tag_de_liabilities_bs_D_3', 'tag_de_liabilities_bs_D_4', 'tag_de_liabilities_bs_D_5',
|
||||
'tag_de_liabilities_bs_D_6', 'tag_de_liabilities_bs_D_7', 'tag_de_liabilities_bs_D_8')
|
||||
"""
|
||||
)
|
||||
return
|
||||
|
||||
rename_tag(cr, "tag_de_liabilities_bs_C_1", "tag_de_liabilities_bs_B_1")
|
||||
rename_tag(cr, "tag_de_liabilities_bs_C_2", "tag_de_liabilities_bs_B_2")
|
||||
rename_tag(cr, "tag_de_liabilities_bs_C_3", "tag_de_liabilities_bs_B_3")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue