From 509a6a71975214ae981a6247bf26ae06bc98c9a9 Mon Sep 17 00:00:00 2001 From: nguyenvietlam0640 Date: Wed, 5 Jul 2023 15:56:26 +0700 Subject: [PATCH 1/2] [MIG] hr_presence: migrate 15to 16 --- docsource/modules150-160.rst | 2 +- .../scripts/hr_presence/16.0.1.0/post-migration.py | 6 ++++++ .../scripts/hr_presence/16.0.1.0/upgrade_analysis_work.txt | 6 ++++++ 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 openupgrade_scripts/scripts/hr_presence/16.0.1.0/post-migration.py create mode 100644 openupgrade_scripts/scripts/hr_presence/16.0.1.0/upgrade_analysis_work.txt diff --git a/docsource/modules150-160.rst b/docsource/modules150-160.rst index 1463389c97b8..95ff52a1c643 100644 --- a/docsource/modules150-160.rst +++ b/docsource/modules150-160.rst @@ -192,7 +192,7 @@ Module coverage 15.0 -> 16.0 +-------------------------------------------------+----------------------+-------------------------------------------------+ | hr_org_chart | Nothing to do |No DB layout changes. | +-------------------------------------------------+----------------------+-------------------------------------------------+ -| hr_presence | |No DB layout changes. | +| hr_presence | Done |No DB layout changes. | +-------------------------------------------------+----------------------+-------------------------------------------------+ | hr_recruitment | Done | | +-------------------------------------------------+----------------------+-------------------------------------------------+ diff --git a/openupgrade_scripts/scripts/hr_presence/16.0.1.0/post-migration.py b/openupgrade_scripts/scripts/hr_presence/16.0.1.0/post-migration.py new file mode 100644 index 000000000000..32261f298a42 --- /dev/null +++ b/openupgrade_scripts/scripts/hr_presence/16.0.1.0/post-migration.py @@ -0,0 +1,6 @@ +from openupgradelib import openupgrade + + +@openupgrade.migrate() +def migrate(env, version): + openupgrade.load_data(env.cr, "hr_presence", "16.0.1.0/noupdate_changes.xml") diff --git a/openupgrade_scripts/scripts/hr_presence/16.0.1.0/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/hr_presence/16.0.1.0/upgrade_analysis_work.txt new file mode 100644 index 000000000000..e4602bab2429 --- /dev/null +++ b/openupgrade_scripts/scripts/hr_presence/16.0.1.0/upgrade_analysis_work.txt @@ -0,0 +1,6 @@ +---Models in module 'hr_presence'--- +---Fields in module 'hr_presence'--- +---XML records in module 'hr_presence'--- +---nothing has changed in this module-- + +# NOTHING TO DO \ No newline at end of file From d64e3d931aec6fe3445524c3c143af4400fb8c87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miquel=20Ra=C3=AFch?= Date: Thu, 23 Jan 2025 12:33:21 +0100 Subject: [PATCH 2/2] [OU-IMP] hr_presence: finish migration --- .../scripts/hr_presence/16.0.1.0/post-migration.py | 7 +++++++ .../scripts/hr_presence/16.0.1.0/upgrade_analysis_work.txt | 3 +-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/openupgrade_scripts/scripts/hr_presence/16.0.1.0/post-migration.py b/openupgrade_scripts/scripts/hr_presence/16.0.1.0/post-migration.py index 32261f298a42..32c39330d56e 100644 --- a/openupgrade_scripts/scripts/hr_presence/16.0.1.0/post-migration.py +++ b/openupgrade_scripts/scripts/hr_presence/16.0.1.0/post-migration.py @@ -4,3 +4,10 @@ @openupgrade.migrate() def migrate(env, version): openupgrade.load_data(env.cr, "hr_presence", "16.0.1.0/noupdate_changes.xml") + openupgrade.delete_record_translations( + env.cr, + "hr_presence", + [ + "mail_template_presence", + ], + ) diff --git a/openupgrade_scripts/scripts/hr_presence/16.0.1.0/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/hr_presence/16.0.1.0/upgrade_analysis_work.txt index e4602bab2429..3ac0ba7353a7 100644 --- a/openupgrade_scripts/scripts/hr_presence/16.0.1.0/upgrade_analysis_work.txt +++ b/openupgrade_scripts/scripts/hr_presence/16.0.1.0/upgrade_analysis_work.txt @@ -2,5 +2,4 @@ ---Fields in module 'hr_presence'--- ---XML records in module 'hr_presence'--- ---nothing has changed in this module-- - -# NOTHING TO DO \ No newline at end of file +# NOTHING TO DO