19.0 manifest dependency cleaner aycha#20
Open
aycha-odoo wants to merge 1 commit into
Open
Conversation
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
2b6b017 to
54bc284
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Add a script to clean up and minimize the
dependslist 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=9090The script removes unnecessary deps, shows a diff, and asks before applying any changes.
Steps to test
<module>_deps.htmlyto apply, then restart Odoo and confirm the module still loadsTask ID: 6181706