From 1833a930b9e626ddc084d68404b339f3f3e3c57b Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Sat, 25 May 2024 19:23:22 +0200 Subject: [PATCH] [OU-ADD] hr_holidays_attendance: Migration scripts TT45869 --- docsource/modules150-160.rst | 2 +- .../hr_holidays_attendance/16.0.1.0/post-migration.py | 11 +++++++++++ .../16.0.1.0/upgrade_analysis_work.txt | 6 ++++++ 3 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 openupgrade_scripts/scripts/hr_holidays_attendance/16.0.1.0/post-migration.py create mode 100644 openupgrade_scripts/scripts/hr_holidays_attendance/16.0.1.0/upgrade_analysis_work.txt diff --git a/docsource/modules150-160.rst b/docsource/modules150-160.rst index 6520d61aad46..ff554e613a38 100644 --- a/docsource/modules150-160.rst +++ b/docsource/modules150-160.rst @@ -178,7 +178,7 @@ Module coverage 15.0 -> 16.0 +-------------------------------------------------+----------------------+-------------------------------------------------+ | hr_holidays | Done | | +-------------------------------------------------+----------------------+-------------------------------------------------+ -| hr_holidays_attendance | | | +| hr_holidays_attendance | Done | | +-------------------------------------------------+----------------------+-------------------------------------------------+ | |new| hr_hourly_cost | Nothing to do | | +-------------------------------------------------+----------------------+-------------------------------------------------+ diff --git a/openupgrade_scripts/scripts/hr_holidays_attendance/16.0.1.0/post-migration.py b/openupgrade_scripts/scripts/hr_holidays_attendance/16.0.1.0/post-migration.py new file mode 100644 index 000000000000..ebe70e17de37 --- /dev/null +++ b/openupgrade_scripts/scripts/hr_holidays_attendance/16.0.1.0/post-migration.py @@ -0,0 +1,11 @@ +# 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.load_data( + env.cr, "hr_holidays_attendance", "16.0.1.0/noupdate_changes.xml" + ) diff --git a/openupgrade_scripts/scripts/hr_holidays_attendance/16.0.1.0/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/hr_holidays_attendance/16.0.1.0/upgrade_analysis_work.txt new file mode 100644 index 000000000000..12bb178b49ad --- /dev/null +++ b/openupgrade_scripts/scripts/hr_holidays_attendance/16.0.1.0/upgrade_analysis_work.txt @@ -0,0 +1,6 @@ +---Models in module 'hr_holidays_attendance'--- +---Fields in module 'hr_holidays_attendance'--- +---XML records in module 'hr_holidays_attendance'--- +NEW ir.ui.view: hr_holidays_attendance.hr_leave_view_form_overtime +DEL ir.ui.view: hr_holidays_attendance.hr_user_view_form +# NOTHING TO DO: noupdate=0 ir stuff