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

[13.0][FIX] payroll: add group migration #137

Merged
merged 4 commits into from
Dec 18, 2023
Merged
Changes from 2 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
134 changes: 71 additions & 63 deletions payroll/migrations/13.0.1.0.2/pre-migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,111 +5,119 @@

xmlid_renames = [
(
"hr_payroll.act_contribution_reg_payslip_lines",
"hr_payroll.hr_payslip_line_action",
"payroll.act_contribution_reg_payslip_lines",
"payroll.hr_payslip_line_action",
),
(
"hr_payroll.act_hr_employee_payslip_list",
"hr_payroll.hr_payslip_action_employee",
"payroll.act_hr_employee_payslip_list",
"payroll.hr_payslip_action_employee",
),
(
"hr_payroll.act_payslip_lines",
"hr_payroll.hr_payslip_line_action_computation_details",
"payroll.act_payslip_lines",
"payroll.hr_payslip_line_action_computation_details",
),
(
"hr_payroll.action_contribution_register_form",
"hr_payroll.hr_contribution_register_action",
"payroll.action_contribution_register_form",
"payroll.hr_contribution_register_action",
),
(
"hr_payroll.action_hr_payroll_configuration",
"hr_payroll.payroll_configuration_action",
"payroll.action_hr_payroll_configuration",
"payroll.payroll_configuration_action",
),
("hr_payroll.action_hr_payslip_run_tree", "hr_payroll.hr_payslip_run_action"),
("payroll.action_hr_payslip_run_tree", "payroll.hr_payslip_run_action"),
(
"hr_payroll.action_hr_salary_rule_category",
"hr_payroll.hr_salary_rule_category_action",
"payroll.action_hr_salary_rule_category",
"payroll.hr_salary_rule_category_action",
),
(
"hr_payroll.action_view_hr_payroll_structure_list_form",
"hr_payroll.hr_payroll_structure_action",
"payroll.action_view_hr_payroll_structure_list_form",
"payroll.hr_payroll_structure_action",
),
("hr_payroll.action_view_hr_payslip_form", "hr_payroll.hr_payslip_action"),
("payroll.action_view_hr_payslip_form", "payroll.hr_payslip_action"),
(
"hr_payroll.menu_action_hr_contribution_register_form",
"hr_payroll.hr_contribution_register_menu",
"payroll.menu_action_hr_contribution_register_form",
"payroll.hr_contribution_register_menu",
),
("hr_payroll.menu_department_tree", "hr_payroll.hr_payslip_menu"),
("payroll.menu_department_tree", "payroll.hr_payslip_menu"),
(
"hr_payroll.menu_hr_payroll_configuration",
"hr_payroll.payroll_menu_configuration",
"payroll.menu_hr_payroll_configuration",
"payroll.payroll_menu_configuration",
),
(
"hr_payroll.menu_hr_payroll_global_settings",
"hr_payroll.menu_payroll_global_settings",
"payroll.menu_hr_payroll_global_settings",
"payroll.menu_payroll_global_settings",
),
("hr_payroll.menu_hr_payroll_root", "hr_payroll.payroll_menu_root",),
("payroll.menu_hr_payroll_root", "payroll.payroll_menu_root",),
(
"hr_payroll.menu_hr_payroll_structure_view",
"hr_payroll.hr_payroll_structure_menu",
"payroll.menu_hr_payroll_structure_view",
"payroll.hr_payroll_structure_menu",
),
("hr_payroll.menu_hr_payslip_run", "hr_payroll.hr_payslip_run_menu"),
("hr_payroll.hr_contract_form_inherit", "hr_payroll.hr_contract_view_form"),
("payroll.menu_hr_payslip_run", "payroll.hr_payslip_run_menu"),
("payroll.hr_contract_form_inherit", "payroll.hr_contract_view_form"),
(
"hr_payroll.hr_contribution_register_filter",
"hr_payroll.hr_contribution_register_view_search",
"payroll.hr_contribution_register_filter",
"payroll.hr_contribution_register_view_search",
),
(
"hr_payroll.hr_contribution_register_form",
"hr_payroll.hr_contribution_register_view_form",
"payroll.hr_contribution_register_form",
"payroll.hr_contribution_register_view_form",
),
(
"hr_payroll.hr_contribution_register_tree",
"hr_payroll.hr_contribution_register_view_tree",
"payroll.hr_contribution_register_tree",
"payroll.hr_contribution_register_view_tree",
),
("hr_payroll.hr_payslip_run_filter", "hr_payroll.hr_payslip_run_view_search"),
("hr_payroll.hr_payslip_run_form", "hr_payroll.hr_payslip_run_view_form"),
("hr_payroll.hr_payslip_run_tree", "hr_payroll.hr_payslip_run_view_tree"),
("payroll.hr_payslip_run_filter", "payroll.hr_payslip_run_view_search"),
("payroll.hr_payslip_run_form", "payroll.hr_payslip_run_view_form"),
("payroll.hr_payslip_run_tree", "payroll.hr_payslip_run_view_tree"),
(
"hr_payroll.hr_salary_rule_category_form",
"hr_payroll.hr_salary_rule_category_view_form",
"payroll.hr_salary_rule_category_form",
"payroll.hr_salary_rule_category_view_form",
),
(
"hr_payroll.hr_salary_rule_category_tree",
"hr_payroll.hr_salary_rule_category_view_tree",
"payroll.hr_salary_rule_category_tree",
"payroll.hr_salary_rule_category_view_tree",
),
("hr_payroll.hr_salary_rule_form", "hr_payroll.hr_salary_rule_view_form"),
("hr_payroll.hr_salary_rule_list", "hr_payroll.hr_salary_rule_view_tree_children"),
("hr_payroll.hr_salary_rule_tree", "hr_payroll.hr_salary_rule_view_tree"),
("hr_payroll.payroll_hr_employee_view_form", "hr_payroll.hr_employee_view_form"),
("payroll.hr_salary_rule_form", "payroll.hr_salary_rule_view_form"),
("payroll.hr_salary_rule_list", "payroll.hr_salary_rule_view_tree_children"),
("payroll.hr_salary_rule_tree", "payroll.hr_salary_rule_view_tree"),
("payroll.payroll_hr_employee_view_form", "payroll.hr_employee_view_form"),
(
"hr_payroll.view_hr_employee_grade_form",
"hr_payroll.hr_payroll_structure_view_form",
"payroll.view_hr_employee_grade_form",
"payroll.hr_payroll_structure_view_form",
),
(
"hr_payroll.view_hr_payroll_structure_filter",
"hr_payroll.hr_payroll_structure_view_search",
"payroll.view_hr_payroll_structure_filter",
"payroll.hr_payroll_structure_view_search",
),
(
"hr_payroll.view_hr_payroll_structure_list_view",
"hr_payroll.hr_payroll_structure_view_tree",
"payroll.view_hr_payroll_structure_list_view",
"payroll.hr_payroll_structure_view_tree",
),
(
"hr_payroll.view_hr_payroll_structure_tree",
"hr_payroll.hr_payroll_structure_view_tree_children",
"payroll.view_hr_payroll_structure_tree",
"payroll.hr_payroll_structure_view_tree_children",
),
("hr_payroll.view_hr_payslip_filter", "hr_payroll.hr_payslip_view_search"),
("hr_payroll.view_hr_payslip_form", "hr_payroll.hr_payslip_view_form"),
("payroll.view_hr_payslip_filter", "payroll.hr_payslip_view_search"),
("payroll.view_hr_payslip_form", "payroll.hr_payslip_view_form"),
(
"hr_payroll.view_hr_payslip_line_filter",
"hr_payroll.hr_payslip_line_view_search",
"payroll.view_hr_payslip_line_filter",
"payroll.hr_payslip_line_view_search",
),
("hr_payroll.view_hr_payslip_line_form", "hr_payroll.hr_payslip_line_view_form"),
("hr_payroll.view_hr_payslip_line_tree", "hr_payroll.hr_payslip_line_view_tree"),
("hr_payroll.view_hr_payslip_tree", "hr_payroll.hr_payslip_view_tree"),
("hr_payroll.view_hr_rule_filter", "hr_payroll.hr_salary_rule_view_search"),
("payroll.view_hr_payslip_line_form", "payroll.hr_payslip_line_view_form"),
("payroll.view_hr_payslip_line_tree", "payroll.hr_payslip_line_view_tree"),
("payroll.view_hr_payslip_tree", "payroll.hr_payslip_view_tree"),
("payroll.view_hr_rule_filter", "payroll.hr_salary_rule_view_search"),
(
"hr_payroll.view_hr_salary_rule_category_filter",
"hr_payroll.hr_salary_rule_category_view_search",
"payroll.view_hr_salary_rule_category_filter",
"payroll.hr_salary_rule_category_view_search",
),
(
"payroll.group_hr_payroll_manager",
"payroll.group_payroll_manager",
),
(
"payroll.group_hr_payroll_user",
"payroll.group_payroll_user",
),
]

Expand Down