Skip to content

Commit

Permalink
FIX Migrations and malformed .po files
Browse files Browse the repository at this point in the history
  • Loading branch information
ecino committed May 9, 2024
1 parent 6bd1c86 commit 2891205
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion muskathlon/data/mail_template.xml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
name="email_template_id"
ref="ambassador_donation_confirmation_template"
/>
<field name="model_id" ref="model_account_move_line" />
<field name="model_id" ref="account.model_account_move_line" />
</record>

<!-- Registration confirmation -->
Expand Down
2 changes: 1 addition & 1 deletion muskathlon/migrations/14.0.1.0.0/pre-migrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
"data/res_users.xml",
"data/product.xml",
"data/mail_template.xml",
"data/event_registration_stage.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",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
def migrate(cr, version):
cr.execute(
"""
UPDATE event_type
SET compassion_event_type = 'tour'
WHERE compassion_event_type = 'group_visit'
"""
)
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,3 @@ 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 2891205

Please sign in to comment.