-
-
Notifications
You must be signed in to change notification settings - Fork 707
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIG] hr_hourly_cost: migrate 15 to 16
- Loading branch information
1 parent
300336f
commit 94ae90f
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
openupgrade_scripts/scripts/hr_hourly_cost/16.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,15 @@ | ||
from openupgradelib import openupgrade | ||
|
||
_renamed_fields = [ | ||
( | ||
"hr.employee" | ||
"hr_employee" | ||
"timesheet_cost", | ||
"hourly_cost", | ||
), | ||
] | ||
|
||
|
||
@openupgrade.migrate() | ||
def migrate(env, version): | ||
openupgrade.rename_fields(env.cr, _fields_renames) |
14 changes: 14 additions & 0 deletions
14
openupgrade_scripts/scripts/hr_hourly_cost/16.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,14 @@ | ||
---Models in module 'hr_hourly_cost'--- | ||
---Fields in module 'hr_hourly_cost'--- | ||
hr_hourly_cost / hr.employee / currency_id (many2one) : previously in module hr_timesheet | ||
|
||
# NOTHING TO DO | ||
|
||
hr_hourly_cost / hr.employee / hourly_cost (float) : NEW hasdefault: default | ||
|
||
# DONE: rename fields from timesheet_cost to hourly_cost in pre-migration | ||
|
||
---XML records in module 'hr_hourly_cost'--- | ||
NEW ir.ui.view: hr_hourly_cost.view_employee_form | ||
|
||
#NOTHING TO DO |