Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syncing from upstream OCA/server-tools (16.0) #1693

Merged
merged 5 commits into from
Jan 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
13 changes: 10 additions & 3 deletions upgrade_analysis/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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**

Expand Down
2 changes: 1 addition & 1 deletion upgrade_analysis/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down
18 changes: 15 additions & 3 deletions upgrade_analysis/models/upgrade_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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 = (
Expand Down
8 changes: 7 additions & 1 deletion upgrade_analysis/models/upgrade_comparison_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)],
}
11 changes: 9 additions & 2 deletions upgrade_analysis/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -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.
13 changes: 10 additions & 3 deletions upgrade_analysis/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -367,11 +367,18 @@ <h1 class="title">Upgrade Analysis</h1>
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:d3fed94216a53b58bca8455d3a2758193f7641ca45adee8e03cf50464674a61d
!! source digest: sha256:530141731a853793cda478da96e88f4ecbc21374090758a88258a61a3e75f78d
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/server-tools/tree/16.0/upgrade_analysis"><img alt="OCA/server-tools" src="https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-upgrade_analysis"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/server-tools&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>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: <a class="reference external" href="https://doc.therp.nl/openupgrade/analysis.html">https://doc.therp.nl/openupgrade/analysis.html</a></p>
<p>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.</p>
<p>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: <a class="reference external" href="https://doc.therp.nl/openupgrade/analysis.html">https://doc.therp.nl/openupgrade/analysis.html</a></p>
<p>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.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
Expand Down
Loading