odoo/industry#2137

Created by Ayush Chavda (aycha)

Blocked

label
odoo-dev:19.0-manifest-cleaner
head
faf271c2d7ade22b782660242f25d3ac52343b3f
odoo/industry
19.0 #2137 missing r+
saas-19.1
saas-19.2
saas-19.3
master

[ADD] manifest_cleaning_script: manifest dependency optimizer

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