diff --git a/README.md b/README.md index 7ba78365980..2302bdeb5dd 100644 --- a/README.md +++ b/README.md @@ -74,7 +74,7 @@ addon | version | maintainers | summary [server_action_logging](server_action_logging/) | 16.0.1.0.0 | | Module that provides a logging mechanism for server actions [session_db](session_db/) | 16.0.1.0.6 | [![sbidoul](https://github.com/sbidoul.png?size=30px)](https://github.com/sbidoul) | Store sessions in DB [tracking_manager](tracking_manager/) | 16.0.1.1.7 | [![Kev-Roche](https://github.com/Kev-Roche.png?size=30px)](https://github.com/Kev-Roche) [![sebastienbeau](https://github.com/sebastienbeau.png?size=30px)](https://github.com/sebastienbeau) | This module tracks all fields of a model, including one2many and many2many ones. -[upgrade_analysis](upgrade_analysis/) | 16.0.1.1.0 | [![StefanRijnhart](https://github.com/StefanRijnhart.png?size=30px)](https://github.com/StefanRijnhart) [![legalsylvain](https://github.com/legalsylvain.png?size=30px)](https://github.com/legalsylvain) | Performs a difference analysis between modules installed on two different Odoo instances +[upgrade_analysis](upgrade_analysis/) | 16.0.1.2.0 | [![StefanRijnhart](https://github.com/StefanRijnhart.png?size=30px)](https://github.com/StefanRijnhart) [![legalsylvain](https://github.com/legalsylvain.png?size=30px)](https://github.com/legalsylvain) | Performs a difference analysis between modules installed on two different Odoo instances [url_attachment_search_fuzzy](url_attachment_search_fuzzy/) | 16.0.1.0.0 | [![mariadforgelow](https://github.com/mariadforgelow.png?size=30px)](https://github.com/mariadforgelow) | Fuzzy Search of URL in Attachments [//]: # (end addons) diff --git a/upgrade_analysis/README.rst b/upgrade_analysis/README.rst index 6dc740b49c2..8a96d42d242 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:d3fed94216a53b58bca8455d3a2758193f7641ca45adee8e03cf50464674a61d + !! source digest: sha256:530141731a853793cda478da96e88f4ecbc21374090758a88258a61a3e75f78d !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |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/__manifest__.py b/upgrade_analysis/__manifest__.py index 6ffce92269f..087bc5970d8 100644 --- a/upgrade_analysis/__manifest__.py +++ b/upgrade_analysis/__manifest__.py @@ -5,7 +5,7 @@ "name": "Upgrade Analysis", "summary": "Performs a difference analysis between modules" " installed on two different Odoo instances", - "version": "16.0.1.1.0", + "version": "16.0.1.2.0", "category": "Migration", "author": "Therp BV, Opener B.V., GRAP, Odoo Community Association (OCA)", "maintainers": ["StefanRijnhart", "legalsylvain"], diff --git a/upgrade_analysis/models/upgrade_analysis.py b/upgrade_analysis/models/upgrade_analysis.py index 8d0e53aa5d9..370a3774b93 100644 --- a/upgrade_analysis/models/upgrade_analysis.py +++ b/upgrade_analysis/models/upgrade_analysis.py @@ -532,7 +532,16 @@ def generate_module_coverage_file(self, no_changes_modules): module_domain = [ ("state", "=", "installed"), - ("name", "not in", ["upgrade_analysis", "openupgrade_records"]), + ( + "name", + "not in", + [ + "upgrade_analysis", + "openupgrade_records", + "openupgrade_scripts", + "openupgrade_framework", + ], + ), ] connection = self.config_id.get_connection() @@ -552,16 +561,19 @@ def generate_module_coverage_file(self, no_changes_modules): module_descriptions = {} for module in all_modules: status = "" + is_new = False if module in all_local_modules and module in all_remote_modules: module_description = " %s" % module elif module in all_local_modules: module_description = " |new| %s" % module + is_new = True else: module_description = " |del| %s" % module - if module in compare.apriori.merged_modules: + # new modules cannot be merged/renamed in same version + if not is_new and module in compare.apriori.merged_modules: status = "Merged into %s. " % compare.apriori.merged_modules[module] - elif module in compare.apriori.renamed_modules: + elif not is_new and module in compare.apriori.renamed_modules: status = "Renamed to %s. " % compare.apriori.renamed_modules[module] elif module in compare.apriori.renamed_modules.values(): status = ( 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 b535245c5b8..5f533df81e5 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:d3fed94216a53b58bca8455d3a2758193f7641ca45adee8e03cf50464674a61d +!! source digest: sha256:530141731a853793cda478da96e88f4ecbc21374090758a88258a61a3e75f78d !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

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