generated from OCA/oca-addons-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
T1613 Muskathlon Profile parts missing (#23)
* 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
1 parent
c335286
commit 49d877f
Showing
3 changed files
with
19 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |