Skip to content

19.0 manifest dependency cleaner aycha#20

Open
aycha-odoo wants to merge 1 commit into
19.0-industry-automation-scriptfrom
19.0-manifest-dependency-cleaner-aycha
Open

19.0 manifest dependency cleaner aycha#20
aycha-odoo wants to merge 1 commit into
19.0-industry-automation-scriptfrom
19.0-manifest-dependency-cleaner-aycha

Conversation

@aycha-odoo

Copy link
Copy Markdown

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.py \
    --module_path="/path/to/module" \
    --db_name="your_db" \
    --port=9090

The script removes unnecessary deps, 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

Add a utility script to analyze module manifest dependencies and
removes extra dependencies.

The tool also produces an HTML report to visualize the dependency
graph, making it easier to identify dependency issues and validate
the computed order during development.

Task-6181706
@aycha-odoo aycha-odoo force-pushed the 19.0-manifest-dependency-cleaner-aycha branch from 2b6b017 to 54bc284 Compare July 3, 2026 13:01
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.

1 participant