From 24e3060a84c876ed6c30eb89a2b7ee5f2672139e Mon Sep 17 00:00:00 2001 From: Jean-Charles Drubay Date: Tue, 10 May 2022 22:16:31 +0700 Subject: [PATCH 1/2] [FIX] smart button to open the list of analysis from a config --- upgrade_analysis/README.rst | 13 ++++++++++--- .../models/upgrade_comparison_config.py | 8 +++++++- upgrade_analysis/readme/DESCRIPTION.rst | 11 +++++++++-- upgrade_analysis/static/description/index.html | 13 ++++++++++--- 4 files changed, 36 insertions(+), 9 deletions(-) diff --git a/upgrade_analysis/README.rst b/upgrade_analysis/README.rst index 4f4fe9a37df..09026c08b3a 100644 --- a/upgrade_analysis/README.rst +++ b/upgrade_analysis/README.rst @@ -7,7 +7,7 @@ Upgrade Analysis !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:ada8f25289029379d85b984bf620229c46489507dfe7db9dc785c7602d95aade + !! source digest: sha256:a39177670fd60e4ec4dde6623773c251cf22e3757d4e6cd307b860dda562455c !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png @@ -28,9 +28,16 @@ Upgrade Analysis |badge1| |badge2| |badge3| |badge4| |badge5| -This module provides the tool to generate the database analysis files that indicate how the Odoo data model and module data have changed between two versions of Odoo. Database analysis files for the core modules are included in the OpenUpgrade distribution so as a migration script developer you will not usually need to use this tool yourself. If you do need to run your analysis of a custom set of modules, please refer to the documentation here: https://doc.therp.nl/openupgrade/analysis.html +This module provides the tool to generate the database analysis files that indicate +how the Odoo data model and module data have changed between two versions of Odoo. +Database analysis files for the core modules are included in the OpenUpgrade +distribution so as a migration script developer you will not usually need to use +this tool yourself. If you do need to run your analysis of a custom set of modules, +please refer to the documentation here: https://doc.therp.nl/openupgrade/analysis.html -This module is just a tool, a continuation of the old openupgrade_records in OpenUpgrade in previous versions. It's not recommended to have this module in a production database. +This module is just a tool, a continuation of the old openupgrade_records in +OpenUpgrade in previous versions. It's not recommended to have this module in a +production database. **Table of contents** diff --git a/upgrade_analysis/models/upgrade_comparison_config.py b/upgrade_analysis/models/upgrade_comparison_config.py index 649866379af..9ba4e2b3ac8 100644 --- a/upgrade_analysis/models/upgrade_comparison_config.py +++ b/upgrade_analysis/models/upgrade_comparison_config.py @@ -93,4 +93,10 @@ def new_analysis(self): def action_show_analysis(self): self.ensure_one() - return {} + return { + "type": "ir.actions.act_window", + "name": "Analyses", + "res_model": "upgrade.analysis", + "view_mode": "tree,form", + "domain": [("id", "in", self.analysis_ids.ids)], + } diff --git a/upgrade_analysis/readme/DESCRIPTION.rst b/upgrade_analysis/readme/DESCRIPTION.rst index 1b12e675fe0..d6539b4f1a1 100644 --- a/upgrade_analysis/readme/DESCRIPTION.rst +++ b/upgrade_analysis/readme/DESCRIPTION.rst @@ -1,3 +1,10 @@ -This module provides the tool to generate the database analysis files that indicate how the Odoo data model and module data have changed between two versions of Odoo. Database analysis files for the core modules are included in the OpenUpgrade distribution so as a migration script developer you will not usually need to use this tool yourself. If you do need to run your analysis of a custom set of modules, please refer to the documentation here: https://doc.therp.nl/openupgrade/analysis.html +This module provides the tool to generate the database analysis files that indicate +how the Odoo data model and module data have changed between two versions of Odoo. +Database analysis files for the core modules are included in the OpenUpgrade +distribution so as a migration script developer you will not usually need to use +this tool yourself. If you do need to run your analysis of a custom set of modules, +please refer to the documentation here: https://doc.therp.nl/openupgrade/analysis.html -This module is just a tool, a continuation of the old openupgrade_records in OpenUpgrade in previous versions. It's not recommended to have this module in a production database. +This module is just a tool, a continuation of the old openupgrade_records in +OpenUpgrade in previous versions. It's not recommended to have this module in a +production database. diff --git a/upgrade_analysis/static/description/index.html b/upgrade_analysis/static/description/index.html index e2fdcf012a2..e0c501fc0bb 100644 --- a/upgrade_analysis/static/description/index.html +++ b/upgrade_analysis/static/description/index.html @@ -367,11 +367,18 @@

Upgrade Analysis

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:ada8f25289029379d85b984bf620229c46489507dfe7db9dc785c7602d95aade +!! source digest: sha256:a39177670fd60e4ec4dde6623773c251cf22e3757d4e6cd307b860dda562455c !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Beta License: AGPL-3 OCA/server-tools Translate me on Weblate Try me on Runboat

-

This module provides the tool to generate the database analysis files that indicate how the Odoo data model and module data have changed between two versions of Odoo. Database analysis files for the core modules are included in the OpenUpgrade distribution so as a migration script developer you will not usually need to use this tool yourself. If you do need to run your analysis of a custom set of modules, please refer to the documentation here: https://doc.therp.nl/openupgrade/analysis.html

-

This module is just a tool, a continuation of the old openupgrade_records in OpenUpgrade in previous versions. It’s not recommended to have this module in a production database.

+

This module provides the tool to generate the database analysis files that indicate +how the Odoo data model and module data have changed between two versions of Odoo. +Database analysis files for the core modules are included in the OpenUpgrade +distribution so as a migration script developer you will not usually need to use +this tool yourself. If you do need to run your analysis of a custom set of modules, +please refer to the documentation here: https://doc.therp.nl/openupgrade/analysis.html

+

This module is just a tool, a continuation of the old openupgrade_records in +OpenUpgrade in previous versions. It’s not recommended to have this module in a +production database.

Table of contents