Skip to content

Commit

Permalink
FIX group_visit migration
Browse files Browse the repository at this point in the history
  • Loading branch information
ecino committed Apr 22, 2024
1 parent 1dfd18f commit 510985a
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ def migrate(cr, version):
cr.execute(
"""
UPDATE ir_model_data
SET module= 'website_switzerland'
SET module= 'website_switzerland', noupdate=FALSE
WHERE module = 'website_event_compassion'
AND (model IN ('mail.template', 'partner.communication.config',
'event.registration.task', 'event.type.mail')
Expand All @@ -20,3 +20,10 @@ def migrate(cr, version):
WHERE name = 'website_switzerland'
"""
)
cr.execute(
"""
UPDATE event_type
SET compassion_event_type = 'tour'
WHERE compassion_event_type = 'group_visit'
"""
)

0 comments on commit 510985a

Please sign in to comment.