Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
30b76a8
Add 'odoo_repository_migration'
Aug 31, 2023
8e9b176
odoo_repository: add settings panel
Oct 10, 2023
6bdc85a
Apply pre-commit
Nov 3, 2023
e7ba0e8
odoo_repository_migration: sync data from main node
Nov 4, 2023
ad55301
o_r_migration: default filters for 'Migrations' menu
Nov 8, 2023
56f155a
odoo_repository_migration: fix sync data from main node
Nov 22, 2023
01c3d07
odoo_repository: limit the scan/force-scan to selected branches
Nov 26, 2023
fe2a679
odoo_repository_migration: ctx key to disable MigrationScanner run
Nov 27, 2023
aa3be31
odoo_repository: handle git authentication with tokens
May 2, 2024
fcee9f2
odoo_repository: handle blacklisted modules
May 10, 2024
54ad0fa
odoo_repository_migration: force scan when a migration path is created
May 23, 2024
42fe1d8
odoo_repository_migration: limit strictly the scan of migration paths…
Sep 18, 2024
3756f74
odoo_repository: split RepositoryScanner jobs in smaller jobs
Sep 22, 2024
a004a39
odoo_repository_migration: split MigrationScanner jobs in smaller jobs
Sep 23, 2024
7aaab04
odoo_repository_migration: fix 'push_scanned_data'
Oct 11, 2024
648c55f
odoo_repository_migration: fix 'migration_scan' computation
Oct 14, 2024
bbe55b7
odoo_repository: add User and Manager user groups
Oct 17, 2024
4fca55f
odoo_repository: option to force cloned repository name
Oct 29, 2024
49c3f16
[REF] Allow same module name across different repositories
Oct 18, 2024
e48eb0d
odoo_repository_*: rename some filters
Oct 31, 2024
50d479f
fixup! MigrationScanner: upgrade oca-port
Nov 13, 2024
c82716f
odoo_repository[_migration]: fix access to 'ir.config_parameter'
Nov 19, 2024
ff93e65
odoo_repository_migration: auto-archive 'odoo.module.branch.migration'
Oct 17, 2024
7f71137
odoo_repository_migration: fix 'migration_scan' flag
Oct 17, 2024
989df06
odoo_repository_migration: do not force scan when creating a migratio…
Oct 17, 2024
5299e6c
odoo_repository_migration: add tests on 'migration_scan' flag
Nov 19, 2024
3af8256
odoo_repository_migration: fix migration data computation
Dec 9, 2024
0fe1408
odoo_project_migration: handle projects in migration data
Jan 10, 2025
dbb879c
odoo_repository_migration: hide columns by default in 'Migrations' menu
Feb 28, 2025
13afecf
odoo_repository_migration: support migration scan between two reposit…
Mar 13, 2025
18f5b92
odoo_repository_migration: able to qualify a module as renamed or rep…
Apr 11, 2025
2cad945
odoo_repository_migration: collect migration data on specific reposit…
May 28, 2025
da8337e
odoo_repository_migration: move replaced/renamed modules data in thei…
Sep 14, 2025
0eb152b
[UPD] README.rst
OCA-git-bot Dec 3, 2025
bd3e3dd
[ADD] icon.png
OCA-git-bot Dec 3, 2025
caefef3
[IMP] odoo_repository_migration: update README
Dec 3, 2025
a98b16e
[UPD] README.rst
OCA-git-bot Dec 8, 2025
d2032a9
[FIX] odoo_repository_migration: fix module scanning when it is replaced
Dec 18, 2025
88f5e78
[BOT] post-merge updates
OCA-git-bot Dec 18, 2025
61b9876
Update all modules manifest and README with new repo info
Jan 17, 2026
ab1af19
[BOT] post-merge updates
OCA-git-bot Jan 17, 2026
53989fa
[UPD] Update odoo_repository_migration.pot
Feb 1, 2026
f344d60
Added translation using Weblate (Italian)
mymage Feb 2, 2026
23bff5a
[FIX] odoo_repository_migration: fix tests
sebalix Feb 16, 2026
4e37605
[FIX] odoo_repository_migration: explicit commits are not allowed in …
sebalix Mar 27, 2026
66308ef
[BOT] post-merge updates
OCA-git-bot Mar 27, 2026
9ae5820
[IMP] odoo_repository_migration: pre-commit auto fixes
sebalix Mar 30, 2026
435ecd0
[IMP] odoo_repository_migration: pre-commit fixes
sebalix Mar 30, 2026
e33f327
[MIG] odoo_repository_migration: Migration to 18.0
sebalix Mar 30, 2026
565ed02
[UPD] Update odoo_repository_migration.pot
Apr 3, 2026
c5213d4
[BOT] post-merge updates
OCA-git-bot Apr 3, 2026
92c0f50
[UPD] Update odoo_repository_migration.pot
Apr 3, 2026
7ad2daf
[IMP] odoo_repository_migration: tests, add a MigrationCommon class
sebalix Apr 10, 2026
8ab3619
[BOT] post-merge updates
OCA-git-bot Apr 10, 2026
1f496cf
[FIX] odoo_repository_migration: tests, fix classmethod
sebalix Apr 10, 2026
3c05891
[IMP] odoo_repository_migration: test 'next_odoo_version_module_branc…
sebalix May 27, 2026
423b831
[IMP] odoo_repository_migration: tests, improve '_simulate_migration_…
sebalix May 27, 2026
6a66e21
[FIX] odoo_repository_migration: ensure a migration record exists
sebalix May 31, 2026
6b3201a
[IMP] odoo_repository_migration: add helper to get all related timeli…
sebalix Jun 9, 2026
9424899
[FIX] odoo_repository_migration: handle modules renamed/replaced mult…
sebalix May 27, 2026
306f753
[UPD] Update odoo_repository_migration.pot
Jun 13, 2026
f388ba6
[BOT] post-merge updates
OCA-git-bot Jun 13, 2026
5565585
Update translation files
weblate Jun 13, 2026
6435021
[MIG] odoo_repository_migration: Migration to 19.0
alan196 Jul 29, 2026
08f52f7
[FIX] odoo_repository_migration: wait for GitHub API rate limit reset
alan196 Aug 5, 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
150 changes: 150 additions & 0 deletions odoo_repository_migration/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

==============================
Odoo Repository Migration Data
==============================

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

.. |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%2Fmodule--composition--analysis-lightgray.png?logo=github
:target: https://github.com/OCA/module-composition-analysis/tree/19.0/odoo_repository_migration
:alt: OCA/module-composition-analysis
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/module-composition-analysis-19-0/module-composition-analysis-19-0-odoo_repository_migration
: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/module-composition-analysis&target_branch=19.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module collects and records modules migration data from Odoo
repositories.

Thanks to `oca-port <https://github.com/OCA/oca-port/>`__ and data
collected by ``odoo_repository``, this module will generate migration
data on each module for declared migration paths (e.g. 16.0 -> 18.0).

Also, for specific cases you can declare what a module became in a given
Odoo version, like OCA ``web_domain_field`` replaced by standard Odoo
module ``web`` starting from 17.0 (with an optional explanation that
could help users, like how to use this new module compared to the
previous one).

Given a migration path, a module can get one of this migration status:

+-----------------------------+----------------------------------------+
| Status | Description |
+=============================+========================================+
| *Fully Ported* | All commits from source version are |
| | present in target version |
+-----------------------------+----------------------------------------+
| *To migrate* | The module doesn't exist on target |
| | version |
+-----------------------------+----------------------------------------+
| *Ported (missing commits?)* | Some commits from source version are |
| | not ported in target version (could be |
| | false-positive) |
+-----------------------------+----------------------------------------+
| *To review* | A migration PR has been detected |
+-----------------------------+----------------------------------------+
| *Replaced* | The module has been replaced by |
| | another one (not sharing the same git |
| | history) |
+-----------------------------+----------------------------------------+
| *Moved to standard?* | The module name has been detected in |
| | Odoo standard repositories for target |
| | version. High chance this module is or |
| | should be replaced by another one |
| | instead (by creating a timeline), so |
| | it mainly helps to detect such cases. |
+-----------------------------+----------------------------------------+
| *Moved to OCA* | the module name is available in an OCA |
| | repository (could be a false-positive |
| | because sharing the same name, in such |
| | case a timeline has to be created) |
+-----------------------------+----------------------------------------+
| *Moved to generic repo* | a specific module (only available in a |
| | project) in source version now exists |
| | in a generic repository (could be a |
| | false-positive if both modules have |
| | only their name in common) |
+-----------------------------+----------------------------------------+

It helps to build a consolidated knowledge database accross different
Odoo versions for everyone: functionals and developers.

**Table of contents**

.. contents::
:local:

Usage
=====

To enable this feature, the option *Collect migration data* should be
enabled on repositories (opt-in).

To record what a module became starting from a given Odoo version, you
should do it through the *Odoo Repositories / Data / Modules /
Timelines* menu.

Once the scheduled action ran, the migration data are available on each
module in *Migration* tab, or through the *Odoo Repositories / Data /
Modules / Migrations* menu.

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/module-composition-analysis/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/module-composition-analysis/issues/new?body=module:%20odoo_repository_migration%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
-------

* Camptocamp

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

- Camptocamp

- Sébastien Alix <seb@usr-src.org>

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.

This module is part of the `OCA/module-composition-analysis <https://github.com/OCA/module-composition-analysis/tree/19.0/odoo_repository_migration>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 2 additions & 0 deletions odoo_repository_migration/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import models
from .hooks import update_oca_repositories
32 changes: 32 additions & 0 deletions odoo_repository_migration/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Copyright 2023 Camptocamp SA
# Copyright 2026 Akretion (https://www.akretion.com).
# @author Sébastien Alix <sebastien.alix@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
{
"name": "Odoo Repository Migration Data",
"summary": "Collect modules migration data for Odoo Repositories.",
"version": "19.0.1.0.0",
"category": "Tools",
"author": "Camptocamp, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/module-composition-analysis",
"data": [
"security/ir.model.access.csv",
"data/queue_job.xml",
"views/odoo_migration_path.xml",
"views/odoo_module_branch.xml",
"views/odoo_module_branch_migration.xml",
"views/odoo_module_branch_timeline.xml",
"views/odoo_repository.xml",
],
"installable": True,
"depends": [
"odoo_repository",
],
"external_dependencies": {
"python": [
"oca_port",
],
},
"license": "AGPL-3",
"post_init_hook": "update_oca_repositories",
}
29 changes: 29 additions & 0 deletions odoo_repository_migration/data/queue_job.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2023 Camptocamp SA
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo noupdate="1">
<record id="queue_job_channel_scan_migration" model="queue.job.channel">
<field name="name">odoo_repository_scan_migration</field>
<field name="parent_id" ref="queue_job.channel_root" />
</record>

<record
id="queue_job_function_odoo_repository_scan_migration_paths"
model="queue.job.function"
>
<field name="model_id" ref="model_odoo_repository" />
<field name="method">_scan_migration_paths</field>
<field name="channel_id" ref="queue_job_channel_scan_migration" />
<field name="retry_pattern" eval="{1: 1, 5: 5, 10: 10, 15: 30}" />
</record>

<record
id="queue_job_function_odoo_repository_scan_migration_module"
model="queue.job.function"
>
<field name="model_id" ref="model_odoo_repository" />
<field name="method">_scan_migration_module</field>
<field name="channel_id" ref="queue_job_channel_scan_migration" />
<field name="retry_pattern" eval="{1: 1, 5: 5, 10: 10, 15: 30}" />
</record>
</odoo>
14 changes: 14 additions & 0 deletions odoo_repository_migration/hooks.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright 2023 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)


def update_oca_repositories(env):
"""Configure OCA repositories to collect migration data."""
org = env["odoo.repository.org"].search([("name", "=", "OCA")])
if org:
repositories = (
env["odoo.repository"]
.with_context(active_test=False)
.search([("org_id", "=", org.id)])
)
repositories.write({"collect_migration_data": True})
Loading
Loading