Odoo Project Stats
odoo_project_stat · OCA/module-composition-analysis
-
Security25/25No findings
-
Activity20/25Last human commit 11 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 16.0
Heuristic over the facts below, not an audit · How it's computed
Migration considerations
OdooProjectStat— Migrating to 19.0: `_sql_constraints` is ignored and its constraints are silently not created: declare `models.Constraint` attributes instead. migration-sql-constraints · sourceOdooProjectStatConfig— Migrating to 19.0: `_sql_constraints` is ignored and its constraints are silently not created: declare `models.Constraint` attributes instead. migration-sql-constraints · sourceodoo_project_stat_config_view_tree— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · sourceodoo_project_stat_config_view_tree— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · sourceodoo_project_view_form— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
This module allows to generate and render some pie charts for your Odoo projects.
It consists of two pie charts on the project form view:
- number of installed modules
- number of lines of code
Both measures are split based on some criteria (configurable), by default:
- Odoo CE
- Odoo Enterprise
- OCA
- Community (not OCA)
- Specific code
- Misc. (everything not part of other criteria above)
Each criteria having a rendering color used on the charts.

Dependencies
- Odoo dependencies
- Python dependencies
- gitpython, odoo-addons-parser, pyyaml, requests, cachetools, plotly==5.13.1
- System dependencies
- None
- Required by
- None
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 2
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
odoo_project_stat_config_view_tree |
odoo.project.stat.config.tree | odoo.project.stat.config | tree | New |
odoo_project_view_form |
odoo.project.form.inherit | odoo.project | form | Inherits odoo_project.odoo_project_view_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 4
-
chart_modules_countTextcompute='_compute_charts'string='Modules Chart' -
chart_slocTextcompute='_compute_charts'string='Lines of Code Chart' -
stats_idsOne2many → odoo.project.statcomodel_name='odoo.project.stat'inverse_name='odoo_project_id'
-
action_generate_stats(self)
No new fields.
Public methods (1)-
action_import(self)
-
colorCharrelated='config_id.color' -
config_idMany2one → odoo.project.stat.configcomodel_name='odoo.project.stat.config'ondelete='restrict'readonly=Truerequired=Truestring='Project Stat Configuration' -
dateDateindex=Truerequired=True -
modules_countIntegerreadonly=True -
nameCharrelated='config_id.name'store=True -
odoo_project_idMany2one → odoo.projectcomodel_name='odoo.project'index=Trueondelete='cascade'readonly=Truerequired=Truestring='Project' -
sequenceIntegerrelated='config_id.sequence'store=True -
slocIntegerreadonly=Truestring='Lines of code'
No public methods.
-
colorCharrequired=True -
domainChar -
nameCharrequired=Truestring='Title' -
residualBooleanhelp="Will catch all modules that doesn't match other rules (domain field will be ignored if enabled)." -
sequenceIntegerdefault=10
No public methods.
Loading…