Skip to content

[ADD] manifest_cleaning_script: manifest dependency optimizer#2137

Open
aycha-odoo wants to merge 1 commit into
odoo:19.0from
odoo-dev:19.0-manifest-cleaner
Open

[ADD] manifest_cleaning_script: manifest dependency optimizer#2137
aycha-odoo wants to merge 1 commit into
odoo:19.0from
odoo-dev:19.0-manifest-cleaner

Conversation

@aycha-odoo
Copy link
Copy Markdown

@aycha-odoo aycha-odoo commented May 11, 2026

What

Add a script to clean up and minimize the depends list in an Odoo module's
__manifest__.py, and generate an HTML report showing before/after.

Why

Module manifests often have redundant dependencies. Cleaning them manually
is tedious and risky — this script does it safely using the live Odoo module graph.

How

Run against a live Odoo instance:

python3 manifest_cleaning_script.py \
    --module_path="/path/to/module" \
    --db_name="your_db" \
    --port=9090

The script removes unnecessary deps, checks XML refs to avoid breakage,
shows a diff, and asks before applying any changes.

Steps to test

  1. Start Odoo and install the target industry
  2. Run the script with the correct arguments
  3. Check the terminal diff and the generated <module>_deps.html
  4. Type y to apply, then restart Odoo and confirm the module still loads

Task ID: 6181706

@robodoo
Copy link
Copy Markdown
Collaborator

robodoo commented May 11, 2026

Pull request status dashboard

@C3POdoo C3POdoo requested a review from a team May 11, 2026 10:56
The dependency cleanup logic was improved to better handle direct
dependency resolution and auto_install detection.

Task_id: 6181706
@aycha-odoo aycha-odoo force-pushed the 19.0-manifest-cleaner branch from 145bbd1 to faf271c Compare May 19, 2026 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants