Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MIG][15.0] hr_timesheet: migration script #3306

Merged
merged 1 commit into from
Dec 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docsource/modules140-150.rst
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ Module coverage 14.0 -> 15.0
+-------------------------------------------------+----------------------+-------------------------------------------------+
| hr_skills_survey | | |
+-------------------------------------------------+----------------------+-------------------------------------------------+
| hr_timesheet | | |
| hr_timesheet |Done | |
+-------------------------------------------------+----------------------+-------------------------------------------------+
| hr_timesheet_attendance | | |
+-------------------------------------------------+----------------------+-------------------------------------------------+
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
from openupgradelib import openupgrade


@openupgrade.migrate()
def migrate(env, version):
openupgrade.load_data(env.cr, "hr_timesheet", "15.0.1.0/noupdate_changes.xml")
openupgrade.delete_record_translations(
env.cr,
"hr_timesheet",
[
"group_hr_timesheet_approver",
"group_hr_timesheet_user",
],
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---Models in module 'hr_timesheet'---
---Fields in module 'hr_timesheet'---
hr_timesheet / res.company / internal_project_id (many2one): NEW relation: project.project
# NOTHING TO DO: changed field name from left_timesheet_project_id to internal_project_id, was migrate in the project_timesheet_holidays module

---XML records in module 'hr_timesheet'---
NEW digest.tip: hr_timesheet.digest_tip_hr_timesheet_0
NEW ir.actions.act_window.view: hr_timesheet.act_hr_timesheet_line_view_graph
NEW ir.actions.act_window.view: hr_timesheet.act_hr_timesheet_line_view_pivot
NEW ir.actions.act_window.view: hr_timesheet.act_hr_timesheet_report_kanban
NEW ir.actions.act_window.view: hr_timesheet.timesheet_action_view_all_graph
NEW ir.actions.act_window.view: hr_timesheet.timesheet_action_view_report_by_project_kanban
NEW ir.actions.act_window.view: hr_timesheet.timesheet_action_view_report_by_task_kanban
NEW ir.actions.report: hr_timesheet.timesheet_report_project
NEW ir.actions.report: hr_timesheet.timesheet_report_task
NEW ir.model.access: hr_timesheet.access_account_analytic_line_portal_user
NEW ir.rule: hr_timesheet.timesheet_line_rule_portal_user
NEW ir.ui.menu: hr_timesheet.timesheet_menu_activity_user
NEW ir.ui.view: hr_timesheet.portal_my_task_planned_hours_template
NEW ir.ui.view: hr_timesheet.portal_tasks_list_inherit
NEW ir.ui.view: hr_timesheet.project_sharing_inherit_project_task_view_form
NEW ir.ui.view: hr_timesheet.project_sharing_inherit_project_task_view_search
NEW ir.ui.view: hr_timesheet.project_sharing_inherit_project_task_view_tree
NEW ir.ui.view: hr_timesheet.project_sharing_kanban_inherit_project_task_view_kanban
NEW ir.ui.view: hr_timesheet.project_task_view_graph
NEW ir.ui.view: hr_timesheet.project_task_view_pivot
NEW ir.ui.view: hr_timesheet.report_project_task_timesheet
NEW ir.ui.view: hr_timesheet.report_project_task_user_view_search
NEW ir.ui.view: hr_timesheet.report_project_task_user_view_tree
NEW ir.ui.view: hr_timesheet.report_timesheet_project
NEW ir.ui.view: hr_timesheet.timesheet_table
NEW ir.ui.view: hr_timesheet.view_hr_timesheet_line_graph_all
NEW ir.ui.view: hr_timesheet.view_hr_timesheet_line_graph_my
NEW ir.ui.view: hr_timesheet.view_my_timesheet_line_pivot
NEW ir.ui.view: hr_timesheet.view_task_project_user_graph_inherited
NEW ir.ui.view: hr_timesheet.view_task_project_user_pivot_inherited
NEW project.task.type: hr_timesheet.internal_project_default_stage
# NOTHING TO DO: new records

DEL ir.config_parameter: hr_timesheet.ir_config_parameter_timesheet_min_duration
DEL ir.config_parameter: hr_timesheet.ir_config_parameter_timesheet_rounding
DEL ir.model.constraint: hr_timesheet.constraint_project_task_create_timesheet_time_positive
DEL ir.ui.menu: hr_timesheet.hr_timesheet_config_settings_menu_action
DEL ir.ui.view: hr_timesheet.assets_backend
DEL ir.ui.view: hr_timesheet.portal_subtask_timesheet_tables
# NOTHING TO DO: Delete records with no correspondence