odoo/industry#2137
Created by Ayush Chavda (aycha)
Blocked
- Merge method
- Review
-
CI
- ci/industry: (runtime 4616s)
- 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
- Start Odoo and install the target industry
- Run the script with the correct arguments
- Check the terminal diff and the generated
<module>_deps.html - Type
yto apply, then restart Odoo and confirm the module still loads
Task ID: 6181706