Repository
OCA/server-tools · module folder · Try on Runboat
Module version
1.0.0
Category
Uncategorized
Folder size
0.3 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/server-tools
Last tracking update
2026-08-07 08:42:58
Authors
Odoo Community Association (OCA), GRAP
Maintainers
Odoo Community Association (OCA), GRAP
Committers
OCA-git-bot, oca-ci, Adasat Torres de Leon
Odoo dependencies
odoo/odoo:
Python dependencies
pygount
System dependencies
None
Required by
None
Description
This module allows you to know 'how much code' is running on your Odoo
instance, group by 'Type' (Odoo Core, OCA, other...)

This module can be usefull in the following cases :

- To analyse the size of your technical debt, regarding your Custom
  modules
- To know the ratio between Odoo / OCA and Custom modules
- To evaluate the amount to pay to odoo to upgrade your custom code, or
  the induced workload

![installed_modules_by_types](../static/description/installed_modules_by_types.png)

For that purpose, it adds new concepts

- `ir.module.author`, based on the value `author` present in the
  manifest file.

![module_authors](../static/description/module_authors.png)

- `ir.module.type`, populated by default with Odoo and OCA values.

![module_types](../static/description/module_types.png)

Each installed modules have extra data in the 'Technical Data' tab :

![module_form](../static/description/module_form.png)

Code Analysis

Views touched (8)
XML IDNameModelTypeStatus
view_ir_module_author_form ir.module.author form New
view_ir_module_author_list ir.module.author list New
view_ir_module_module_form ir.module.module form Inherits base.module_form
view_ir_module_module_graph ir.module.module graph New
view_ir_module_module_pivot ir.module.module pivot New
view_ir_module_type_form ir.module.type form New
view_ir_module_type_list ir.module.type list New
view_ir_module_type_rule_list ir.module.type.rule list New
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (4)

New fields (3)
  • installed_module_ids Many2many → ir.module.module
    comodel_name='ir.module.module' relation='ir_module_module_author_rel' string='Modules'
  • installed_module_qty Integer
    compute='_compute_installed_module_qty' store=True string='Installed Modules Quantity'
  • name Char
    required=True
Public methods (0)

No public methods.

New fields (7)
  • author_ids Many2many → ir.module.author
    comodel_name='ir.module.author' readonly=True relation='ir_module_module_author_rel' string='Authors'
  • css_code_qty Integer
    readonly=True string='CSS Code Quantity'
  • js_code_qty Integer
    readonly=True string='JS Code Quantity'
  • module_type_id Many2one → ir.module.type
    comodel_name='ir.module.type' readonly=True string='Analysed Module Type'
  • python_code_qty Integer
    readonly=True string='Python Code Quantity'
  • scss_code_qty Integer
    readonly=True string='SCSS Code Quantity'
  • xml_code_qty Integer
    readonly=True string='XML Code Quantity'
Public methods (3)
  • button_analyse_code(self)
  • cron_analyse_code(self, domain=None)
    @api.model
  • write(self, vals)

New fields (4)
  • installed_module_ids One2many → ir.module.module
    comodel_name='ir.module.module' inverse_name='module_type_id' string='Installed Modules'
  • installed_module_qty Integer
    compute='_compute_installed_module_qty' store=True string='Modules Quantity'
  • name Char
    required=True
  • sequence Integer
Public methods (0)

No public methods.

New fields (3)
  • module_domain Char
    default='[]' required=True
  • module_type_id Many2one → ir.module.type
    comodel_name='ir.module.type' required=True string='Module type'
  • sequence Integer
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Status
Open migration PR — not merged yet for this version
CI status
green — ready to merge
Open since
84 days ago
Last activity
52 days ago
Repository
OCA/server-tools
Pull request
[19.0][MIG] module_analysis: Migration to 19.0 (#3631)