Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
151 commits
Select commit Hold shift + click to select a range
f83c000
[MOVE] openupgrade_records : move module from OCA/OpenUpgrade (branch…
legalsylvain Nov 6, 2020
d4b4307
[REF] rename module openupgrade_records into upgrade_analysis
legalsylvain Nov 6, 2020
fbe6090
[REF] rename files, apply OCA convention, remove obsolete 6.1 syntax,…
legalsylvain Nov 6, 2020
81c24cf
[IMP] upgrade_analysis: improve install wizard to have the possibilit…
legalsylvain Nov 6, 2020
f30ffff
[MOVE] Port patches and framework from openupgrade project
legalsylvain Nov 7, 2020
4b22e80
[REF] rename framework files, adapt to new module names, remove print…
legalsylvain Nov 7, 2020
eb9fc95
[RFR] Improve patchwork
StefanRijnhart Dec 1, 2020
e9b496e
[IMP] Create records with timestamp; [RFR] No /migration/ level when …
StefanRijnhart Dec 6, 2020
7ab00a3
[FIX] ImportError;
StefanRijnhart Dec 7, 2020
58e31a2
[IMP] various improvment from Yajo.
legalsylvain Dec 7, 2020
12896d6
[IMP] import apriori file of openupgrade_scripts, if available
legalsylvain Dec 7, 2020
66b8cb3
[RFR] upgrade_path not user writable
StefanRijnhart Dec 8, 2020
ca35944
[ADD] Generate noupdate_changes
StefanRijnhart Dec 11, 2020
b653611
[FIX] dataclasses for Python < 3.7
StefanRijnhart Dec 11, 2020
daa6ad7
Update upgrade_analysis/models/ir_module_module.py
legalsylvain Jan 20, 2021
f8dc207
[REM] remove obsolete roadmap point
legalsylvain Feb 24, 2021
b87b056
[IMP] remove pre-commit exception and fix various style in odoo_patch…
legalsylvain Feb 24, 2021
c5eef86
[UPD] Update upgrade_analysis.pot
oca-travis Feb 26, 2021
e2fc6c9
[UPD] README.rst
OCA-git-bot Feb 26, 2021
09a8603
[ADD] icon.png
OCA-git-bot Feb 26, 2021
0dffe10
[IMP] openupgrade_records: remove from analysis updating records
MiquelRForgeFlow Mar 23, 2021
c8a1681
[FIX] openupgrade_records: _inherits was not being compared
MiquelRForgeFlow Mar 23, 2021
d04165f
[IMP] openupgrade_records: compare columns of many2many tables
MiquelRForgeFlow Mar 23, 2021
6391aca
[IMP] openupgrade_records: add _order comparison
MiquelRForgeFlow Mar 23, 2021
830bf87
[IMP] upgrade_analysis: make us of odoorpc/openupgrade master
MiquelRForgeFlow Mar 23, 2021
1b2862f
upgrade_analysis 14.0.2.0.0
OCA-git-bot Mar 25, 2021
dddff87
[OU-MIG] upgrade_analysis: add migration scripts
MiquelRForgeFlow Mar 25, 2021
1005081
[UPD] README.rst
OCA-git-bot Mar 25, 2021
9eea0cd
[UPD] Update upgrade_analysis.pot
oca-travis Mar 25, 2021
d996299
upgrade_analysis 14.0.2.0.1
OCA-git-bot Mar 25, 2021
8fb079f
[FIX] upgrade_analysis: fix methods related to noupdate data
MiquelRForgeFlow Mar 26, 2021
25e0525
[FIX] upgrade_analysis: truncate upgrade records before generating ne…
MiquelRForgeFlow Mar 28, 2021
f4395e0
[UPD] README.rst
OCA-git-bot Mar 29, 2021
dfd8ca6
upgrade_analysis 14.0.2.1.0
OCA-git-bot Mar 29, 2021
8aa7a18
[FIX] upgrade_analysis: merged modules affecting noupdate files
MiquelRForgeFlow Apr 21, 2021
0443ee8
[FIX] upgrade_analysis: revert to 'files' approach instead of 'paths'
MiquelRForgeFlow Apr 21, 2021
7c38f6e
[UPD] Update upgrade_analysis.pot
oca-travis Apr 30, 2021
f95793e
Added translation using Weblate (French)
Yvesldff May 14, 2021
a2af382
[IMP] update dotfiles [ci skip]
sbidoul May 14, 2021
0b3d30f
Translated using Weblate (French)
Yvesldff May 14, 2021
3ff6ca0
[FIX] Other modules upgrade write file full path
Yasaie Oct 12, 2021
bd31313
upgrade_analysis 14.0.2.1.1
OCA-git-bot Oct 13, 2021
6df798e
[MIG] upgrade_analysis from 14.0 to 15.0
legalsylvain Oct 20, 2021
de83503
[UPD] Update upgrade_analysis.pot
Nov 10, 2021
3b2b191
[UPD] README.rst
OCA-git-bot Nov 10, 2021
486b55d
[IMP] upgrade_coverage : generate coverage module file
legalsylvain Nov 11, 2021
965189d
[IMP] upgrade_analysis : prefill status with trivial information
legalsylvain Nov 14, 2021
7b65de3
[REF] in coverage module file, split column into 2. a column that sho…
legalsylvain Nov 15, 2021
e63d00f
upgrade_analysis 15.0.1.0.2
OCA-git-bot Nov 15, 2021
6d9e689
[15.0][ADD] link to usage instructions
jcdrubay May 10, 2022
41b42ae
[UPD] README.rst
OCA-git-bot May 10, 2022
2059b3c
upgrade_analysis 15.0.1.0.3
OCA-git-bot May 10, 2022
3431b22
[DOC] upgrade_analysis : update roadmap.rst
legalsylvain Jun 16, 2022
b0beaf9
[REF] upgrade_analysis add maintainers
legalsylvain Jun 16, 2022
9309c49
[UPD] README.rst
OCA-git-bot Jun 16, 2022
2e18886
upgrade_analysis 15.0.1.0.4
OCA-git-bot Jun 16, 2022
e0295cf
[ADD] upgrade_analysis: generate noupdate_changes for template tag
royle-vietnam Jul 5, 2022
522dbd8
[IMP] upgrade_analysis: log sql_constraints in analysis
MiquelRForgeFlow Dec 13, 2021
6f370f7
[UPD] Update upgrade_analysis.pot
Jul 18, 2022
82a229f
[MIG] upgrade_analysis: Migration to 16.0
StefanRijnhart Oct 5, 2022
88726de
[FIX] upgrade_analysis: misleading representation of read/write compu…
StefanRijnhart Oct 11, 2022
383093a
[UPD] Update upgrade_analysis.pot
Oct 19, 2022
3603310
[FIX] upgrade_analysis : avoid KeyError "module"
metaminux May 17, 2023
0878144
upgrade_analysis 16.0.1.0.1
OCA-git-bot May 18, 2023
caa8c58
[UPD] README.rst
OCA-git-bot Sep 3, 2023
ccc8bd9
[IMP] upgrade_analysis: pre-commit auto fixes
StefanRijnhart Feb 2, 2024
1237990
[MIG] upgrade_analysis: Migration to 17.0
StefanRijnhart Feb 2, 2024
dded5ac
[FIX] upgrade_analysis: Proper UI in forms
pedrobaeza Oct 21, 2023
54e3ab3
[FIX] upgrade_analysis: Add to blacklist deprecated modules
pedrobaeza Oct 21, 2023
91a26c0
[REF] upgrade_analysis: allow to set upgrade_path manually
StefanRijnhart Feb 2, 2024
2aa4fda
[REF] upgrade_analysis: increase module description column in generat…
StefanRijnhart Feb 3, 2024
37ff16a
[UPD] Update upgrade_analysis.pot
May 23, 2024
a32e169
[FIX] upgrade_analysis: fix constraint logging
hbrunn Oct 23, 2024
a185ed4
[IMP] upgrade_analysis: black, isort
sergio-teruel Nov 4, 2024
55ca2e9
[MIG] upgrade_analysis: Migration to v18.0
sergio-teruel Nov 4, 2024
ae39b4a
[UPD] Update upgrade_analysis.pot
Nov 5, 2024
7ea5b77
[BOT] post-merge updates
OCA-git-bot Nov 5, 2024
7c26c17
Update translation files
weblate Nov 5, 2024
933bfe0
[FIX] upgrade_analysis: new modules cannot be merged/renamed in same …
MiquelRForgeFlow Dec 12, 2024
5955b3d
[FIX] upgrade_analysis: exclude OU modules from coverage file
MiquelRForgeFlow Dec 12, 2024
07fd986
[FIX] smart button to open the list of analysis from a config
jcdrubay May 10, 2022
2964493
[IMP] upgrade_analysis: Don't reinstall installed modules
pedrobaeza Oct 21, 2023
f1c3d07
[FIX] upgrade_analysis: migration errors
MiquelRForgeFlow Dec 12, 2024
fd3fc94
[BOT] post-merge updates
OCA-git-bot Jan 2, 2025
1359116
[IMP] upgrade_analysis: don't depend on mako
hbrunn Jan 20, 2025
8ba482e
[BOT] post-merge updates
OCA-git-bot Jan 20, 2025
b16b696
[ADD] upgrade_analysis: be more helpful for v18 property conversion
hbrunn Jan 20, 2025
af03c8b
[UPD] Update upgrade_analysis.pot
Jan 20, 2025
15c08cb
[BOT] post-merge updates
OCA-git-bot Jan 20, 2025
d32ea3a
Update translation files
weblate Jan 20, 2025
d8b2372
[BOT] post-merge updates
OCA-git-bot Jan 20, 2025
c6af6bf
Translated using Weblate (Italian)
mymage Jan 20, 2025
af19c55
[FIX] upgrade_analysis: fill upgrade_path
MiquelRForgeFlow Mar 4, 2025
651c971
[BOT] post-merge updates
OCA-git-bot Mar 5, 2025
d0ce200
[UPD] Update upgrade_analysis.pot
Mar 16, 2025
03a3866
Update translation files
weblate Mar 16, 2025
49e5148
Translated using Weblate (Italian)
mymage Mar 18, 2025
c6979df
[FIX] upgrade_analysis: avoid call privatized 'mapped' function.
legalsylvain Mar 4, 2025
4dcb035
[BOT] post-merge updates
OCA-git-bot Mar 28, 2025
3b580a2
[FIX] upgrade_analysis: avoid breaking coverage file
MiquelRForgeFlow May 20, 2025
a144e2e
[BOT] post-merge updates
OCA-git-bot May 21, 2025
b42a9e4
[FIX] upgrade_analysis: avoid caring about non stored fields
MiquelRForgeFlow May 20, 2025
3e71b4c
[BOT] post-merge updates
OCA-git-bot May 21, 2025
d8b5f8a
[IMP] upgrade_analysis: handle merge models
MiquelRForgeFlow Apr 7, 2025
1ac7f5d
[FIX] upgrade_analysis: comparing relation
MiquelRForgeFlow Apr 7, 2025
74d50fb
[IMP] upgrade_analysis: better matches and analysis
MiquelRForgeFlow Apr 7, 2025
5493d0d
[FIX] upgrade_analysis: non-stored has to be shown
MiquelRForgeFlow May 21, 2025
1856ed0
[BOT] post-merge updates
OCA-git-bot May 21, 2025
b62ad02
[BOT] post-merge updates
OCA-git-bot May 23, 2025
4ce40da
[IMP] upgrade_analysis: consider 'translate' value attribute
MiquelRForgeFlow May 26, 2025
2f102c6
[BOT] post-merge updates
OCA-git-bot Jun 12, 2025
ba7c274
[IMP] upgrade_analysis: tell user which selection keys were added/rem…
hbrunn Jun 23, 2025
22d057c
[BOT] post-merge updates
OCA-git-bot Jun 23, 2025
e924780
[IMP] upgrade_analysis: clarify added/removed selection keys
MiquelRForgeFlow Jun 30, 2025
55d9834
[BOT] post-merge updates
OCA-git-bot Jun 30, 2025
1e5255f
[FIX] upgrade_analysis: sort added & removed keys in selection
MiquelRForgeFlow Jul 10, 2025
77ffabb
[BOT] post-merge updates
OCA-git-bot Jul 10, 2025
5fb0fd3
upgrade_analysis: fix references to tree views
simahawk Jul 17, 2025
0c8526a
[BOT] post-merge updates
OCA-git-bot Jul 17, 2025
25c4ecb
[MIG] upgrade_analysis to v19
hbrunn Sep 26, 2025
4466c81
[UPD] hbrunn's mail address
hbrunn Sep 26, 2025
b4f216a
[IMP] upgrade_analysis: compare constraint definitions case insensitive
hbrunn Sep 26, 2025
9959404
[IMP] make general log more clear about obsolete modules
hbrunn Sep 26, 2025
92d7749
[UPD] Update upgrade_analysis.pot
Jan 4, 2026
ebf48fe
[BOT] post-merge updates
OCA-git-bot Jan 4, 2026
8ace5e9
[IMP] upgrade_analysis: avoid "empty" analysis files
MiquelRForgeFlow Jan 15, 2026
fde46a0
[BOT] post-merge updates
OCA-git-bot Jan 16, 2026
efe798d
[FIX] upgrade_analysis: don't generate invalid noupdate xml
hbrunn Mar 2, 2026
2f553cd
[BOT] post-merge updates
OCA-git-bot Mar 3, 2026
ee4c735
[FIX] upgrade_analysis: don't generate eval="''" attributes
hbrunn Mar 9, 2026
d8d1615
[BOT] post-merge updates
OCA-git-bot Mar 9, 2026
2f09357
[IMP] upgrade_analysis: blacklist more test modules
MiquelRForgeFlow Apr 7, 2026
eb712f3
[BOT] post-merge updates
OCA-git-bot Apr 7, 2026
dfe63c3
[IMP] upgrade_analysis: generate changes for renamed noupdate records
hbrunn Jul 14, 2026
2e4274e
[BOT] post-merge updates
OCA-git-bot Jul 15, 2026
3aaabf5
[FIX] upgrade_analysis: reset discarded fields to their default, not …
MiquelRForgeFlow Jul 15, 2026
19ef06a
[BOT] post-merge updates
OCA-git-bot Jul 15, 2026
0b3bb11
[FIX] upgrade_analysis: don't reset foreign-module fields on moved no…
MiquelRForgeFlow Jul 16, 2026
077fe4f
[FIX] upgrade_analysis: skip discarded-field reset when value is unch…
MiquelRForgeFlow Jul 16, 2026
c96a553
[BOT] post-merge updates
OCA-git-bot Jul 21, 2026
8fcb1a8
[19.0][FIX] upgrade_analysis: update documentation link
iam-piyush Aug 27, 2026
7ed8f8e
[BOT] post-merge updates
OCA-git-bot Aug 27, 2026
c589c43
[MIG] upgrade_analysis to v20
hbrunn Sep 14, 2026
6349def
[IMP] upgrade_analysis: speed up xmlid set comparison
hbrunn Sep 15, 2026
8023107
[IMP] upgrade_analysis: support json2 protocol
hbrunn Sep 15, 2026
8260581
[IMP] upgrade_analysis: make hbrunn maintainer
hbrunn Sep 15, 2026
3b09bab
[FIX] upgrade_analysis: patch button_immediate_install
hbrunn Sep 29, 2026
59c408f
[FIX] upgrade_analysis: undo v18-specific treatment of company_depend…
hbrunn Nov 3, 2026
c6cdfc0
[IMP] upgrade_analysis: parse Odoo version string with odoorpc.tools.v
hbrunn Nov 3, 2026
b67fe67
[19.0][FIX] upgrade_analysis: update usage documentation link
PETRIVAL Sep 30, 2026
195a3b6
[FIX] upgrade_analysis: use odoorpc's api to determine current user
hbrunn Nov 10, 2026
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: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# generated from manifests external_dependencies
cryptography
odoorpc
openupgradelib
paramiko<4.0.0
pysftp
137 changes: 137 additions & 0 deletions upgrade_analysis/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

================
Upgrade Analysis
================

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

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github
:target: https://github.com/OCA/server-tools/tree/20.0/upgrade_analysis
:alt: OCA/server-tools
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/server-tools-20-0/server-tools-20-0-upgrade_analysis
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/server-tools&target_branch=20.0
:alt: Try me on Runboat

|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://oca.github.io/OpenUpgrade/070_migration_files.html#generate-the-difference-analysis-files

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**

.. contents::
:local:

Usage
=====

`Usage
instructions <https://oca.github.io/OpenUpgrade/070_migration_files.html#generate-the-difference-analysis-files>`__

Known issues / Roadmap
======================

- Log removed modules in the module that owned them (#468)
- Detect renamed many2many tables (#213)
- Make sure that the ``migration_analysis.txt`` file is always generated
in all cases. (See:
https://github.com/OCA/OpenUpgrade/pull/3209#issuecomment-1157449981)

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-tools/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/server-tools/issues/new?body=module:%20upgrade_analysis%0Aversion:%2020.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* Therp BV
* Opener B.V.
* GRAP

Contributors
------------

- Stefan Rijnhart <stefan@opener.amsterdam>

- Holger Brunn <mail@hunki-enterprises.com>

- Ferdinand Gassauer <gass@cc-l-12.chircar.at>

- Florent Xicluna <florent.xicluna@gmail.com>

- Miquel Raïch <miquel.raich@forgeflow.com>

- Sylvain LE GAL <https://twitter.com/legalsylvain>

- `Tecnativa <https://www.tecnativa.com>`__:

- Pedro M. Baeza
- Sergio Teruel

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

.. |maintainer-StefanRijnhart| image:: https://github.com/StefanRijnhart.png?size=40px
:target: https://github.com/StefanRijnhart
:alt: StefanRijnhart
.. |maintainer-legalsylvain| image:: https://github.com/legalsylvain.png?size=40px
:target: https://github.com/legalsylvain
:alt: legalsylvain
.. |maintainer-hbrunn| image:: https://github.com/hbrunn.png?size=40px
:target: https://github.com/hbrunn
:alt: hbrunn

Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-StefanRijnhart| |maintainer-legalsylvain| |maintainer-hbrunn|

This module is part of the `OCA/server-tools <https://github.com/OCA/server-tools/tree/20.0/upgrade_analysis>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
6 changes: 6 additions & 0 deletions upgrade_analysis/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from . import odoo_patch
from . import models
from . import wizards
from . import blacklist
from . import compare
from . import upgrade_log
29 changes: 29 additions & 0 deletions upgrade_analysis/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Copyright 2011-2015 Therp BV <https://therp.nl>
# Copyright 2016 Opener B.V. <https://opener.am>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Upgrade Analysis",
"summary": "Performs a difference analysis between modules"
" installed on two different Odoo instances",
"version": "20.0.1.0.0",
"category": "Migration",
"author": "Therp BV, Opener B.V., GRAP, Odoo Community Association (OCA)",
"maintainers": ["StefanRijnhart", "legalsylvain", "hbrunn"],
"website": "https://github.com/OCA/server-tools",
"data": [
"templates/module_coverage_template.xml",
"security/ir.access.csv",
"views/menu.xml",
"views/view_upgrade_comparison_config.xml",
"views/view_upgrade_analysis.xml",
"views/view_upgrade_record.xml",
"wizards/view_upgrade_generate_record_wizard.xml",
"wizards/view_upgrade_install_wizard.xml",
],
"installable": True,
"depends": ["web"],
Comment thread
pedrobaeza marked this conversation as resolved.
Resolved
"external_dependencies": {
"python": ["odoorpc", "openupgradelib"],
},
"license": "AGPL-3",
}
15 changes: 15 additions & 0 deletions upgrade_analysis/blacklist.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
BLACKLIST_MODULES = [
"payment_alipay",
"payment_ogone",
"payment_payulatam",
"payment_payumoney",
]

# the hw_* modules are not affected by a migration as they don't
# contain any ORM functionality, but they do start up threads that
# delay the process and spit out annoying log messages continuously.

# We also don't want to analyze tests modules
BLACKLIST_MODULES_STARTS_WITH = ["hw_", "test_", "l10n_test_"]

BLACKLIST_MODULES_ENDS_WITH = ["_test", "_tests"]
Loading
Loading