-
-
Notifications
You must be signed in to change notification settings - Fork 700
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 #2815 from ForgeFlow/14.0-mig-maintenance
[14.0][MIG] maintenance
- Loading branch information
Showing
5 changed files
with
46 additions
and
3 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
8 changes: 8 additions & 0 deletions
8
openupgrade_scripts/scripts/maintenance/14.0.1.0/post-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,8 @@ | ||
# Copyright 2021 ForgeFlow S.L. <https://www.forgeflow.com> | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
from openupgradelib import openupgrade | ||
|
||
|
||
@openupgrade.migrate() | ||
def migrate(env, version): | ||
openupgrade.load_data(env.cr, "maintenance", "14.0.1.0/noupdate_changes.xml") |
22 changes: 22 additions & 0 deletions
22
openupgrade_scripts/scripts/maintenance/14.0.1.0/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 2021 ForgeFlow S.L. <https://www.forgeflow.com> | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
from openupgradelib import openupgrade | ||
|
||
|
||
@openupgrade.migrate() | ||
def migrate(env, version): | ||
openupgrade.set_xml_ids_noupdate_value( | ||
env, | ||
"maintenance", | ||
[ | ||
"equipment_request_rule_admin_user", | ||
"equipment_request_rule_user", | ||
"equipment_rule_admin_user", | ||
"equipment_rule_user", | ||
"maintenance_equipment_category_comp_rule", | ||
"maintenance_equipment_comp_rule", | ||
"maintenance_request_comp_rule", | ||
"maintenance_team_comp_rule", | ||
], | ||
True, | ||
) |
12 changes: 12 additions & 0 deletions
12
openupgrade_scripts/scripts/maintenance/14.0.1.0/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,12 @@ | ||
---Models in module 'maintenance'--- | ||
---Fields in module 'maintenance'--- | ||
---XML records in module 'maintenance'--- | ||
ir.rule: maintenance.equipment_request_rule_admin_user (noupdate) (noupdate switched) | ||
ir.rule: maintenance.equipment_request_rule_user (noupdate) (noupdate switched) | ||
ir.rule: maintenance.equipment_rule_admin_user (noupdate) (noupdate switched) | ||
ir.rule: maintenance.equipment_rule_user (noupdate) (noupdate switched) | ||
ir.rule: maintenance.maintenance_equipment_category_comp_rule (noupdate) (noupdate switched) | ||
ir.rule: maintenance.maintenance_equipment_comp_rule (noupdate) (noupdate switched) | ||
ir.rule: maintenance.maintenance_request_comp_rule (noupdate) (noupdate switched) | ||
ir.rule: maintenance.maintenance_team_comp_rule (noupdate) (noupdate switched) | ||
# DONE: pre-migration: switched noupdate |