-
-
Notifications
You must be signed in to change notification settings - Fork 708
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4393 from Tecnativa/16-0-ou_add-website_event_que…
…stions [16.0][OU-ADD] website_event_questions: Migration scripts
- Loading branch information
Showing
3 changed files
with
31 additions
and
1 deletion.
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
22 changes: 22 additions & 0 deletions
22
openupgrade_scripts/scripts/website_event_questions/16.0.1.2/pre-migration.py
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,22 @@ | ||
# Copyright 2024 Tecnativa - Pedro M. Baeza | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
|
||
from openupgradelib import openupgrade | ||
|
||
|
||
@openupgrade.migrate() | ||
def migrate(env, version): | ||
openupgrade.add_fields( | ||
env, | ||
[ | ||
( | ||
"is_mandatory_answer", | ||
"event.question", | ||
"event_question", | ||
"boolean", | ||
False, | ||
"website_event_questions", | ||
True, | ||
) | ||
], | ||
) |
8 changes: 8 additions & 0 deletions
8
openupgrade_scripts/scripts/website_event_questions/16.0.1.2/upgrade_analysis_work.txt
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,8 @@ | ||
---Models in module 'website_event_questions'--- | ||
---Fields in module 'website_event_questions'--- | ||
website_event_questions / event.question / is_mandatory_answer (boolean) : NEW | ||
# DONE: pre-migration: Pre-create column with default=True, which preserves v15 behavior | ||
|
||
---XML records in module 'website_event_questions'--- | ||
NEW ir.ui.view: website_event_questions.event_registration_view_tree | ||
# NOTHING TO DO: ir stuff with noupdate=0 |