Skip to content

Commit

Permalink
muskathlon migration script added reload of modified data
Browse files Browse the repository at this point in the history
  • Loading branch information
dcruz committed Apr 18, 2024
1 parent 3ada74c commit 0e8aa70
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions muskathlon/migrations/14.0.1.0.0/pre-migrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,25 @@
("child_protection_config", "partner.communication.config", 220),
]

reload_data = [
"security/access_rules.xml",
"data/res_users.xml",
"data/product.xml",
"data/mail_template.xml",
"data/event_type.xml",
"data/event_registration_task.xml",
"data/event_registration_stage.xml",
"data/event_type_mail.xml",
"data/website.xml",
"templates/muskathlon_page.xml",
]

def migrate(cr, version):
# Associate prod records to XML records
for data in module_data:
openupgrade.add_xmlid(
cr, "muskathlon", data[0], data[1], data[2], noupdate=False
)

for data in reload_data:
openupgrade.load_data(cr, 'muskathlon', data)

0 comments on commit 0e8aa70

Please sign in to comment.