Build a dependency graph for Odoo addons, spot tightly coupled or frequently changed modules, and export the results as PlantUML, SVG, JSON, or JUnit XML.
pip install odoo-dependency-graphFor SVG output, install the PlantUML extra and make sure Java is available:
pip install "odoo-dependency-graph[plantuml]"
java -versionodoo-dependency-graph ADDON_PATHS [OUTPUT_FILE] [OPTIONS]Separate multiple addon paths with commas. The output extension selects the
format: .puml, .svg, .json, or .xml; the default is graph.puml.
odoo-dependency-graph ./odoo/addons,./custom-addons graph.svg --exclude-orphans--exclude-orphansremoves addons with no connections.--volatile-onlykeeps only modules above--volatility(default:0.3).--danger-metric METRIC=MIN,MAXsets orange and red thresholds.--git-activityincludes recent commits; tune with--git-sinceand--activity-weight(default:0.3).--skip-file trueprints metrics without creating an output file.--java PATHselects the Java executable used for SVG output.-h,--helpshows the full command reference.