[ADD] manifest_cleaning_script: manifest dependency optimizer#2137
Open
aycha-odoo wants to merge 1 commit into
Open
[ADD] manifest_cleaning_script: manifest dependency optimizer#2137aycha-odoo wants to merge 1 commit into
aycha-odoo wants to merge 1 commit into
Conversation
Collaborator
The dependency cleanup logic was improved to better handle direct dependency resolution and auto_install detection. Task_id: 6181706
145bbd1 to
faf271c
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_script.py \ --module_path="/path/to/module" \ --db_name="your_db" \ --port=9090The script removes unnecessary deps, checks XML refs to avoid breakage,
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