Skip to content

Commit

Permalink
T1613 Muskathlon Profile parts missing (#23)
Browse files Browse the repository at this point in the history
* feat: change task order as in email

* fix: fix invalid version string

* Update muskathlon/migrations/14.0.1.2.1/post-migrate.py

Co-authored-by: ecino <[email protected]>

* Update muskathlon/migrations/14.0.1.2.1/post-migrate.py

Co-authored-by: ecino <[email protected]>

* chore: format

---------

Co-authored-by: Clément <[email protected]>
Co-authored-by: ecino <[email protected]>
  • Loading branch information
3 people authored Aug 22, 2024
1 parent c335286 commit 49d877f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
2 changes: 1 addition & 1 deletion muskathlon/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
# pylint: disable=C8101
{
"name": "Muskathlon",
"version": "14.0.1.2.0",
"version": "14.0.1.2.1",
"category": "Reports",
"author": "Compassion CH",
"license": "AGPL-3",
Expand Down
8 changes: 4 additions & 4 deletions muskathlon/data/event_registration_task.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,25 @@
</record>
<record id="task_criminal" model="event.registration.task">
<field name="name">Upload Criminal Record</field>
<field name="sequence">3</field>
<field name="sequence">6</field>
<field name="stage_id" ref="stage_fill_profile" />
<field name="website_published" eval="True" />
</record>
<record id="task_flight_details" model="event.registration.task">
<field name="name">Give flight details</field>
<field name="sequence">4</field>
<field name="sequence">3</field>
<field name="stage_id" ref="stage_fill_profile" />
<field name="website_published" eval="True" />
</record>
<record id="task_medical" model="event.registration.task">
<field name="name">Fill medical survey</field>
<field name="sequence">5</field>
<field name="sequence">4</field>
<field name="stage_id" ref="stage_fill_profile" />
<field name="website_published" eval="True" />
</record>
<record id="task_sign_child_protection" model="event.registration.task">
<field name="name">Sign child protection agreement</field>
<field name="sequence">6</field>
<field name="sequence">5</field>
<field name="stage_id" ref="stage_fill_profile" />
<field name="website_published" eval="True" />
<field
Expand Down
14 changes: 14 additions & 0 deletions muskathlon/migrations/14.0.1.2.1/post-migrate.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
from openupgradelib import openupgrade

muskathlon_task_sequence = {
"task_criminal": 6,
"task_flight_details": 3,
"task_medical": 4,
"task_sign_child_protection": 5,
}


@openupgrade.migrate()
def migrate(env, version):
for task_id, task_sequence in muskathlon_task_sequence.items():
env.ref(f"muskathlon.{task_id}").sequence = task_sequence

0 comments on commit 49d877f

Please sign in to comment.