From 6f994ee4ade862e14fad4f7dcf38ba06ca713ffe Mon Sep 17 00:00:00 2001 From: remi-filament <30716308+remi-filament@users.noreply.github.com> Date: Thu, 28 Mar 2024 09:46:14 +0100 Subject: [PATCH 1/2] [OU-IMP] project: bump version to 1.3 --- .../project/16.0.1.2/noupdate_changes.xml | 96 ------------------- .../project/16.0.1.2/upgrade_analysis.txt | 77 --------------- .../{16.0.1.2 => 16.0.1.3}/post-migration.py | 2 +- .../{16.0.1.2 => 16.0.1.3}/pre-migration.py | 0 .../{16.0.1.2 => 16.0.1.3}/tests/__init__.py | 0 .../tests/test_project_migration.py | 0 .../upgrade_analysis_work.txt | 2 + 7 files changed, 3 insertions(+), 174 deletions(-) delete mode 100644 openupgrade_scripts/scripts/project/16.0.1.2/noupdate_changes.xml delete mode 100644 openupgrade_scripts/scripts/project/16.0.1.2/upgrade_analysis.txt rename openupgrade_scripts/scripts/project/{16.0.1.2 => 16.0.1.3}/post-migration.py (89%) rename openupgrade_scripts/scripts/project/{16.0.1.2 => 16.0.1.3}/pre-migration.py (100%) rename openupgrade_scripts/scripts/project/{16.0.1.2 => 16.0.1.3}/tests/__init__.py (100%) rename openupgrade_scripts/scripts/project/{16.0.1.2 => 16.0.1.3}/tests/test_project_migration.py (100%) rename openupgrade_scripts/scripts/project/{16.0.1.2 => 16.0.1.3}/upgrade_analysis_work.txt (97%) diff --git a/openupgrade_scripts/scripts/project/16.0.1.2/noupdate_changes.xml b/openupgrade_scripts/scripts/project/16.0.1.2/noupdate_changes.xml deleted file mode 100644 index ddfcc1c1af90..000000000000 --- a/openupgrade_scripts/scripts/project/16.0.1.2/noupdate_changes.xml +++ /dev/null @@ -1,96 +0,0 @@ - - - - Project: Request Acknowledgment - Set this template on a project's stage to automate email when tasks reach stages - - - [ - '|', ('project_id', '!=', False), - ('user_ids', 'in', user.id), - ] - Project/Task: project manager: see all tasks linked to a project or its own tasks - - - - -
- - - - - - - - - - - - - - -
- Hello Brandon Freeman,

-
- Hello,

-
- Please take a moment to rate our services related to the task "Planning and budget" - - assigned to Mitchell Admin.
-
- - .
-
-
- - - - - - - -
- Tell us how you feel about our service -
- (click on one of these smileys) -
- - - - - - -
- - Satisfied - - - - Okay - - - - Dissatisfied - -
-
-
- We appreciate your feedback. It helps us to improve continuously. -

This customer survey has been sent because your task has been moved to the stage In progress
-
This customer survey is sent Weekly as long as the task is in the In progress stage.
-
-
-
- {{ (object._rating_get_operator().email_formatted if object._rating_get_operator() else user.email_formatted) }} - {{ object._rating_get_partner().lang }} - Project: Task Rating Request - {{ object._rating_get_partner().id }} - Set this template on a project stage to request feedback from your customers. Enable the "customer ratings" feature on the project -
-
diff --git a/openupgrade_scripts/scripts/project/16.0.1.2/upgrade_analysis.txt b/openupgrade_scripts/scripts/project/16.0.1.2/upgrade_analysis.txt deleted file mode 100644 index 046b9a201c17..000000000000 --- a/openupgrade_scripts/scripts/project/16.0.1.2/upgrade_analysis.txt +++ /dev/null @@ -1,77 +0,0 @@ ----Models in module 'project'--- -obsolete model project.delete.wizard [transient] ----Fields in module 'project'--- -pad_project / project.project / description_pad (char) : DEL -pad_project / project.project / use_pads (boolean) : DEL -pad_project / project.task / description_pad (char) : DEL -project / account.analytic.tag / task_ids (many2many) : DEL relation: project.task -project / project.milestone / task_ids (one2many) : NEW relation: project.task -project / project.project / allow_milestones (boolean) : NEW hasdefault: default -project / project.project / last_update_status (selection): not a function anymore -project / project.project / last_update_status (selection): now required -project / project.project / last_update_status (selection): selection_keys is now '['at_risk', 'off_track', 'on_hold', 'on_track', 'to_define']' ('['at_risk', 'off_track', 'on_hold', 'on_track']') -project / project.project / task_properties_definition (properties_definition): NEW -project / project.tags / project_ids (many2many) : NEW relation: project.project -project / project.tags / task_ids (many2many) : NEW relation: project.task -project / project.task / analytic_tag_ids (many2many) : DEL relation: account.analytic.tag -project / project.task / ancestor_id (many2one) : NEW relation: project.task, isfunction: function, stored -project / project.task / is_analytic_account_id_changed (boolean): NEW isfunction: function, stored -project / project.task / is_blocked (boolean) : NEW isfunction: function, stored -project / project.task / is_closed (boolean) : is now stored -project / project.task / milestone_id (many2one) : NEW relation: project.milestone, hasdefault: compute -project / project.task / task_properties (properties) : NEW hasdefault: compute -project / project.task.type / is_closed (boolean) : DEL -project / res.company / analytic_plan_id (many2one) : NEW relation: account.analytic.plan, hasdefault: compute ----XML records in module 'project'--- -NEW digest.tip: project.digest_tip_project_1 -NEW ir.actions.act_window: project.action_send_mail_project_project -NEW ir.actions.act_window: project.action_send_mail_project_task -NEW ir.actions.act_window: project.action_view_task_from_milestone -NEW ir.actions.act_window: project.open_view_project_all_config_group_stage -NEW ir.actions.act_window: project.project_sharing_project_task_action_sub_task -NEW ir.actions.act_window: project.project_task_action_sub_task -DEL ir.actions.act_window: project.project_milestone_all -NEW ir.actions.act_window.view: project.open_view_all_task_list_calendar -NEW ir.actions.act_window.view: project.open_view_all_task_list_kanban -NEW ir.actions.act_window.view: project.open_view_all_task_list_tree -NEW ir.actions.act_window.view: project.open_view_project_all_config_group_stage_kanban_action_view -NEW ir.actions.act_window.view: project.open_view_project_all_config_group_stage_tree_action_view -NEW ir.actions.act_window.view: project.project_all_task_activity_action_view -NEW ir.actions.act_window.view: project.project_all_task_calendar_action_view -NEW ir.actions.act_window.view: project.project_all_task_graph_action_view -NEW ir.actions.act_window.view: project.project_all_task_pivot_action_view -NEW ir.actions.act_window.view: project.project_sharing_subtasks_form_action_view -NEW ir.actions.act_window.view: project.project_sharing_subtasks_kanban_action_view -NEW ir.actions.act_window.view: project.project_sharing_subtasks_tree_action_view -NEW ir.actions.act_window.view: project.project_task_form_action_view -NEW ir.actions.act_window.view: project.project_task_kanban_action_view -NEW ir.actions.act_window.view: project.project_task_tree_action_view -NEW ir.actions.act_window.view: project.rating_rating_action_task_kanban -NEW ir.actions.act_window.view: project.rating_rating_action_view_project_rating_kanban -DEL ir.actions.server: project.unlink_project_action -NEW ir.model.access: project.access_project_task_burndown_chart_report_user -NEW ir.model.access: project.access_report_project_task_user_project_user -DEL ir.model.access: project.access_project_delete_wizard -NEW ir.rule: project.burndown_chart_project_manager_rule (noupdate) -NEW ir.rule: project.burndown_chart_project_user_rule (noupdate) -NEW ir.rule: project.report_project_task_manager_rule (noupdate) -NEW ir.rule: project.report_project_task_user_rule (noupdate) -NEW ir.ui.menu: project.menu_projects_config_group_stage -NEW ir.ui.view: project.rating_rating_project_view_kanban -NEW ir.ui.view: project.task_type_tree_inherited -NEW ir.ui.view: project.view_project_calendar -NEW ir.ui.view: project.view_project_config_kanban -NEW ir.ui.view: project.view_project_task_pivot_inherit -NEW ir.ui.view: project.view_project_task_type_unarchive_wizard -NEW ir.ui.view: project.view_task_all_calendar -NEW ir.ui.view: project.view_task_kanban_inherit_my_task -DEL ir.ui.view: pad_project.project_project_view_form -DEL ir.ui.view: pad_project.res_config_settings_view_form -DEL ir.ui.view: pad_project.view_task_form2_inherit_pad_project -DEL ir.ui.view: project.project_collaborator_view_form -DEL ir.ui.view: project.project_delete_wizard_form -DEL ir.ui.view: project.project_task_burndown_chart_report_view_pivot -NEW mail.message.subtype: project.mt_project_update_create (noupdate) -NEW mail.message.subtype: project.mt_task_progress (noupdate) -NEW mail.message.subtype: project.mt_update_create (noupdate) -NEW res.groups: project.group_project_milestone diff --git a/openupgrade_scripts/scripts/project/16.0.1.2/post-migration.py b/openupgrade_scripts/scripts/project/16.0.1.3/post-migration.py similarity index 89% rename from openupgrade_scripts/scripts/project/16.0.1.2/post-migration.py rename to openupgrade_scripts/scripts/project/16.0.1.3/post-migration.py index 10877ae3633e..199cb6135360 100644 --- a/openupgrade_scripts/scripts/project/16.0.1.2/post-migration.py +++ b/openupgrade_scripts/scripts/project/16.0.1.3/post-migration.py @@ -14,5 +14,5 @@ @openupgrade.migrate() def migrate(env, version): - openupgrade.load_data(env.cr, "project", "16.0.1.2/noupdate_changes.xml") + openupgrade.load_data(env.cr, "project", "16.0.1.3/noupdate_changes.xml") openupgrade.delete_record_translations(env.cr, "project", _translations_to_delete) diff --git a/openupgrade_scripts/scripts/project/16.0.1.2/pre-migration.py b/openupgrade_scripts/scripts/project/16.0.1.3/pre-migration.py similarity index 100% rename from openupgrade_scripts/scripts/project/16.0.1.2/pre-migration.py rename to openupgrade_scripts/scripts/project/16.0.1.3/pre-migration.py diff --git a/openupgrade_scripts/scripts/project/16.0.1.2/tests/__init__.py b/openupgrade_scripts/scripts/project/16.0.1.3/tests/__init__.py similarity index 100% rename from openupgrade_scripts/scripts/project/16.0.1.2/tests/__init__.py rename to openupgrade_scripts/scripts/project/16.0.1.3/tests/__init__.py diff --git a/openupgrade_scripts/scripts/project/16.0.1.2/tests/test_project_migration.py b/openupgrade_scripts/scripts/project/16.0.1.3/tests/test_project_migration.py similarity index 100% rename from openupgrade_scripts/scripts/project/16.0.1.2/tests/test_project_migration.py rename to openupgrade_scripts/scripts/project/16.0.1.3/tests/test_project_migration.py diff --git a/openupgrade_scripts/scripts/project/16.0.1.2/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/project/16.0.1.3/upgrade_analysis_work.txt similarity index 97% rename from openupgrade_scripts/scripts/project/16.0.1.2/upgrade_analysis_work.txt rename to openupgrade_scripts/scripts/project/16.0.1.3/upgrade_analysis_work.txt index caa4d8615f6b..06f59c43d58c 100644 --- a/openupgrade_scripts/scripts/project/16.0.1.2/upgrade_analysis_work.txt +++ b/openupgrade_scripts/scripts/project/16.0.1.3/upgrade_analysis_work.txt @@ -77,6 +77,7 @@ NEW ir.model.access: project.access_report_project_task_user_project_user DEL ir.model.access: project.access_project_delete_wizard NEW ir.rule: project.burndown_chart_project_manager_rule (noupdate) NEW ir.rule: project.burndown_chart_project_user_rule (noupdate) +NEW ir.rule: project.project_milestone_rule_portal_project_sharing (noupdate) NEW ir.rule: project.report_project_task_manager_rule (noupdate) NEW ir.rule: project.report_project_task_user_rule (noupdate) NEW ir.ui.menu: project.menu_projects_config_group_stage @@ -94,6 +95,7 @@ DEL ir.ui.view: pad_project.view_task_form2_inherit_pad_project DEL ir.ui.view: project.project_collaborator_view_form DEL ir.ui.view: project.project_delete_wizard_form DEL ir.ui.view: project.project_task_burndown_chart_report_view_pivot +DEL ir.ui.view: project_account.res_config_settings_view_form NEW mail.message.subtype: project.mt_project_update_create (noupdate) NEW mail.message.subtype: project.mt_task_progress (noupdate) NEW mail.message.subtype: project.mt_update_create (noupdate) From 9785b356eec65874512f02d83a1d71e653a80d3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20-=20Le=20Filament?= <30716308+remi-filament@users.noreply.github.com> Date: Thu, 6 Feb 2025 14:20:09 +0100 Subject: [PATCH 2/2] [OU-FIX] add missing method in pre-migration --- openupgrade_scripts/scripts/project/16.0.1.3/pre-migration.py | 1 + 1 file changed, 1 insertion(+) diff --git a/openupgrade_scripts/scripts/project/16.0.1.3/pre-migration.py b/openupgrade_scripts/scripts/project/16.0.1.3/pre-migration.py index 163f7e94956e..dbc6681826a7 100644 --- a/openupgrade_scripts/scripts/project/16.0.1.3/pre-migration.py +++ b/openupgrade_scripts/scripts/project/16.0.1.3/pre-migration.py @@ -161,6 +161,7 @@ def migrate(env, version): _set_task_type_fold_if_is_closed(env) _fill_project_task_is_closed(env) _fill_project_last_update_status_if_null(env) + _fill_project_allow_milestones(env) _compute_project_task_ancestor_id(env) _compute_project_task_is_analytic_account_id_changed(env)