Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
124 commits
Select commit Hold shift + click to select a range
4d9fdb5
[MOVE] openupgrade_records : move module from OCA/OpenUpgrade (branch…
legalsylvain Nov 6, 2020
c354a44
[REF] rename module openupgrade_records into upgrade_analysis
legalsylvain Nov 6, 2020
96aa4e7
[REF] rename files, apply OCA convention, remove obsolete 6.1 syntax,…
legalsylvain Nov 6, 2020
a0eec47
[IMP] upgrade_analysis: improve install wizard to have the possibilit…
legalsylvain Nov 6, 2020
c437891
[MOVE] Port patches and framework from openupgrade project
legalsylvain Nov 7, 2020
6f32a1f
[REF] rename framework files, adapt to new module names, remove print…
legalsylvain Nov 7, 2020
b1fd89b
[RFR] Improve patchwork
StefanRijnhart Dec 1, 2020
53a54ad
[IMP] Create records with timestamp; [RFR] No /migration/ level when …
StefanRijnhart Dec 6, 2020
c9c7623
[FIX] ImportError;
StefanRijnhart Dec 7, 2020
879b30c
[IMP] various improvment from Yajo.
legalsylvain Dec 7, 2020
0a73f30
[IMP] import apriori file of openupgrade_scripts, if available
legalsylvain Dec 7, 2020
5315056
[RFR] upgrade_path not user writable
StefanRijnhart Dec 8, 2020
d4b1e9a
[ADD] Generate noupdate_changes
StefanRijnhart Dec 11, 2020
4d19995
[FIX] dataclasses for Python < 3.7
StefanRijnhart Dec 11, 2020
42ced17
Update upgrade_analysis/models/ir_module_module.py
legalsylvain Jan 20, 2021
0d5c8e8
[REM] remove obsolete roadmap point
legalsylvain Feb 24, 2021
537fdf4
[IMP] remove pre-commit exception and fix various style in odoo_patch…
legalsylvain Feb 24, 2021
6f7ec0c
[UPD] Update upgrade_analysis.pot
oca-travis Feb 26, 2021
009cde2
[UPD] README.rst
OCA-git-bot Feb 26, 2021
a5bed68
[ADD] icon.png
OCA-git-bot Feb 26, 2021
9591cf8
[IMP] openupgrade_records: remove from analysis updating records
MiquelRForgeFlow Mar 23, 2021
7a26988
[FIX] openupgrade_records: _inherits was not being compared
MiquelRForgeFlow Mar 23, 2021
0b57cad
[IMP] openupgrade_records: compare columns of many2many tables
MiquelRForgeFlow Mar 23, 2021
f5efe6b
[IMP] openupgrade_records: add _order comparison
MiquelRForgeFlow Mar 23, 2021
ff3ba1f
[IMP] upgrade_analysis: make us of odoorpc/openupgrade master
MiquelRForgeFlow Mar 23, 2021
42405c9
upgrade_analysis 14.0.2.0.0
OCA-git-bot Mar 25, 2021
ee158f3
[OU-MIG] upgrade_analysis: add migration scripts
MiquelRForgeFlow Mar 25, 2021
650f2c7
[UPD] README.rst
OCA-git-bot Mar 25, 2021
ca5436e
[UPD] Update upgrade_analysis.pot
oca-travis Mar 25, 2021
62afcb2
upgrade_analysis 14.0.2.0.1
OCA-git-bot Mar 25, 2021
b1b94c7
[FIX] upgrade_analysis: fix methods related to noupdate data
MiquelRForgeFlow Mar 26, 2021
b8f887d
[FIX] upgrade_analysis: truncate upgrade records before generating ne…
MiquelRForgeFlow Mar 28, 2021
12006d8
[UPD] README.rst
OCA-git-bot Mar 29, 2021
2e142df
upgrade_analysis 14.0.2.1.0
OCA-git-bot Mar 29, 2021
81280dc
[FIX] upgrade_analysis: merged modules affecting noupdate files
MiquelRForgeFlow Apr 21, 2021
3e2fdd6
[FIX] upgrade_analysis: revert to 'files' approach instead of 'paths'
MiquelRForgeFlow Apr 21, 2021
6197e4f
[UPD] Update upgrade_analysis.pot
oca-travis Apr 30, 2021
5da9e61
Added translation using Weblate (French)
Yvesldff May 14, 2021
8427b8b
[IMP] update dotfiles [ci skip]
sbidoul May 14, 2021
08d047d
Translated using Weblate (French)
Yvesldff May 14, 2021
fd2d620
[FIX] Other modules upgrade write file full path
Yasaie Oct 12, 2021
d36c7b8
upgrade_analysis 14.0.2.1.1
OCA-git-bot Oct 13, 2021
fdc692f
[MIG] upgrade_analysis from 14.0 to 15.0
legalsylvain Oct 20, 2021
bdd69bb
[UPD] Update upgrade_analysis.pot
Nov 10, 2021
17d5a1a
[UPD] README.rst
OCA-git-bot Nov 10, 2021
8b08fed
[IMP] upgrade_coverage : generate coverage module file
legalsylvain Nov 11, 2021
0385314
[IMP] upgrade_analysis : prefill status with trivial information
legalsylvain Nov 14, 2021
456579f
[REF] in coverage module file, split column into 2. a column that sho…
legalsylvain Nov 15, 2021
18bab95
upgrade_analysis 15.0.1.0.2
OCA-git-bot Nov 15, 2021
6c5efd6
[15.0][ADD] link to usage instructions
jcdrubay May 10, 2022
9905ea0
[UPD] README.rst
OCA-git-bot May 10, 2022
ce7a1ea
upgrade_analysis 15.0.1.0.3
OCA-git-bot May 10, 2022
8bc8056
[DOC] upgrade_analysis : update roadmap.rst
legalsylvain Jun 16, 2022
443214f
[REF] upgrade_analysis add maintainers
legalsylvain Jun 16, 2022
902399b
[UPD] README.rst
OCA-git-bot Jun 16, 2022
ee518fc
upgrade_analysis 15.0.1.0.4
OCA-git-bot Jun 16, 2022
8075cde
[ADD] upgrade_analysis: generate noupdate_changes for template tag
royle-vietnam Jul 5, 2022
98cb36a
[IMP] upgrade_analysis: log sql_constraints in analysis
MiquelRForgeFlow Dec 13, 2021
b6e4135
[UPD] Update upgrade_analysis.pot
Jul 18, 2022
31cd7fd
[MIG] upgrade_analysis: Migration to 16.0
StefanRijnhart Oct 5, 2022
9cdd913
[FIX] upgrade_analysis: misleading representation of read/write compu…
StefanRijnhart Oct 11, 2022
1f24825
[UPD] Update upgrade_analysis.pot
Oct 19, 2022
8eba65f
[FIX] upgrade_analysis : avoid KeyError "module"
metaminux May 17, 2023
f4eaae7
upgrade_analysis 16.0.1.0.1
OCA-git-bot May 18, 2023
d3b636d
[UPD] README.rst
OCA-git-bot Sep 3, 2023
11571c1
[IMP] upgrade_analysis: pre-commit auto fixes
StefanRijnhart Feb 2, 2024
71a8db6
[MIG] upgrade_analysis: Migration to 17.0
StefanRijnhart Feb 2, 2024
71257a4
[FIX] upgrade_analysis: Proper UI in forms
pedrobaeza Oct 21, 2023
0ac6eb0
[FIX] upgrade_analysis: Add to blacklist deprecated modules
pedrobaeza Oct 21, 2023
4d6de5b
[REF] upgrade_analysis: allow to set upgrade_path manually
StefanRijnhart Feb 2, 2024
380e442
[REF] upgrade_analysis: increase module description column in generat…
StefanRijnhart Feb 3, 2024
efbe4c4
[UPD] Update upgrade_analysis.pot
May 23, 2024
232542f
[FIX] upgrade_analysis: fix constraint logging
hbrunn Oct 23, 2024
46304fa
[IMP] upgrade_analysis: black, isort
sergio-teruel Nov 4, 2024
2fd4ddd
[MIG] upgrade_analysis: Migration to v18.0
sergio-teruel Nov 4, 2024
c5b8df9
[UPD] Update upgrade_analysis.pot
Nov 5, 2024
5e083db
[BOT] post-merge updates
OCA-git-bot Nov 5, 2024
c1d0f10
Update translation files
weblate Nov 5, 2024
5515ed9
[FIX] upgrade_analysis: new modules cannot be merged/renamed in same …
MiquelRForgeFlow Dec 12, 2024
073f406
[FIX] upgrade_analysis: exclude OU modules from coverage file
MiquelRForgeFlow Dec 12, 2024
cd5934c
[FIX] smart button to open the list of analysis from a config
jcdrubay May 10, 2022
5a7d8f9
[IMP] upgrade_analysis: Don't reinstall installed modules
pedrobaeza Oct 21, 2023
edd200b
[FIX] upgrade_analysis: migration errors
MiquelRForgeFlow Dec 12, 2024
8ee62a9
[BOT] post-merge updates
OCA-git-bot Jan 2, 2025
e3de5d0
[IMP] upgrade_analysis: don't depend on mako
hbrunn Jan 20, 2025
959adfe
[BOT] post-merge updates
OCA-git-bot Jan 20, 2025
0fde22d
[ADD] upgrade_analysis: be more helpful for v18 property conversion
hbrunn Jan 20, 2025
8fbccf0
[UPD] Update upgrade_analysis.pot
Jan 20, 2025
83fd7d6
[BOT] post-merge updates
OCA-git-bot Jan 20, 2025
beae22b
Update translation files
weblate Jan 20, 2025
277697b
[BOT] post-merge updates
OCA-git-bot Jan 20, 2025
554936d
Translated using Weblate (Italian)
mymage Jan 20, 2025
dc7e7dd
[FIX] upgrade_analysis: fill upgrade_path
MiquelRForgeFlow Mar 4, 2025
99c8cb1
[BOT] post-merge updates
OCA-git-bot Mar 5, 2025
7088aa3
[UPD] Update upgrade_analysis.pot
Mar 16, 2025
bafea27
Update translation files
weblate Mar 16, 2025
02e9ffe
Translated using Weblate (Italian)
mymage Mar 18, 2025
01aef5c
[FIX] upgrade_analysis: avoid call privatized 'mapped' function.
legalsylvain Mar 4, 2025
31da2e9
[BOT] post-merge updates
OCA-git-bot Mar 28, 2025
f648483
[FIX] upgrade_analysis: avoid breaking coverage file
MiquelRForgeFlow May 20, 2025
1a2fcff
[BOT] post-merge updates
OCA-git-bot May 21, 2025
ed15f46
[FIX] upgrade_analysis: avoid caring about non stored fields
MiquelRForgeFlow May 20, 2025
ae6704e
[BOT] post-merge updates
OCA-git-bot May 21, 2025
47c9aaa
[IMP] upgrade_analysis: handle merge models
MiquelRForgeFlow Apr 7, 2025
9aa055d
[FIX] upgrade_analysis: comparing relation
MiquelRForgeFlow Apr 7, 2025
ed6d722
[IMP] upgrade_analysis: better matches and analysis
MiquelRForgeFlow Apr 7, 2025
509c7e0
[FIX] upgrade_analysis: non-stored has to be shown
MiquelRForgeFlow May 21, 2025
fc3163e
[BOT] post-merge updates
OCA-git-bot May 21, 2025
a7ffded
[BOT] post-merge updates
OCA-git-bot May 23, 2025
24eb265
[IMP] upgrade_analysis: consider 'translate' value attribute
MiquelRForgeFlow May 26, 2025
6ed7c4f
[BOT] post-merge updates
OCA-git-bot Jun 12, 2025
a629b57
[IMP] upgrade_analysis: tell user which selection keys were added/rem…
hbrunn Jun 23, 2025
1a053e3
[BOT] post-merge updates
OCA-git-bot Jun 23, 2025
d2655ab
[IMP] upgrade_analysis: clarify added/removed selection keys
MiquelRForgeFlow Jun 30, 2025
5efeaf2
[BOT] post-merge updates
OCA-git-bot Jun 30, 2025
ed1fa2c
[FIX] upgrade_analysis: sort added & removed keys in selection
MiquelRForgeFlow Jul 10, 2025
28b9ff8
[BOT] post-merge updates
OCA-git-bot Jul 10, 2025
50b1bd2
upgrade_analysis: fix references to tree views
simahawk Jul 17, 2025
5a7c78e
[BOT] post-merge updates
OCA-git-bot Jul 17, 2025
81b9f27
[IMP] upgrade_analysis: pre-commit auto fixes
hbrunn Sep 26, 2025
0259e1c
[MIG] upgrade_analysis to v19
hbrunn Sep 26, 2025
6f87f03
[UPD] hbrunn's mail address
hbrunn Sep 26, 2025
d2b0776
[IMP] upgrade_analysis: compare constraint definitions case insensitive
hbrunn Sep 26, 2025
e7bc510
[IMP] make general log more clear about obsolete modules
hbrunn Sep 26, 2025
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
4 changes: 4 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# generated from manifests external_dependencies
dataclasses
odoorpc
openupgradelib
133 changes: 133 additions & 0 deletions upgrade_analysis/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
.. 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:7d83347c5c453bd132f25afe4f88b33bab0a7eb4f4b94796a52e6e9b57d311cc
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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/19.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-19-0/server-tools-19-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=19.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://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**

.. contents::
:local:

Usage
=====

`Usage instructions <https://oca.github.io/OpenUpgrade/analyse.html>`__

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:%2019.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 <[email protected]>

- Holger Brunn <[email protected]>

- Ferdinand Gassauer <[email protected]>

- Florent Xicluna <[email protected]>

- Miquel Raïch <[email protected]>

- 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

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

|maintainer-StefanRijnhart| |maintainer-legalsylvain|

This module is part of the `OCA/server-tools <https://github.com/OCA/server-tools/tree/19.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": "19.0.1.0.0",
"category": "Migration",
"author": "Therp BV, Opener B.V., GRAP, Odoo Community Association (OCA)",
"maintainers": ["StefanRijnhart", "legalsylvain"],
"website": "https://github.com/OCA/server-tools",
"data": [
"templates/module_coverage_template.xml",
"security/ir.model.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": ["base"],
"external_dependencies": {
"python": ["dataclasses", "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_"]

BLACKLIST_MODULES_ENDS_WITH = ["_test"]
Loading