Module Analysis
This module allows you to know ‘how much code’ is running on your Tulio instance, group by ‘Type’ (Tulio 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 Tulio / OCA and Custom modules
- To evaluate the amount to pay to tulio to upgrade your custom code, or the induced workload
For that purpose, it adds new concepts
- ir.module.author, based on the value author present in the manifest file.
- ir.module.type, populated by default with Tulio and OCA values.
Each installed modules have extra data in the ‘Technical Data’ tab :
Table of contents
Installation
To use this module, you have to install the pygount python librairy.
pip install pygount>1.2.1
Configuration
- Go to Apps / Module Analysis / Modules Types Rules
The Module types Rules are usefull to get the Type of a module, based on it information.
This module comes with default rules.
You can add your custom rules to identify the modules your team have developped for exemple,
to update the data manually, you have to :
Go to ‘Apps’ / ‘Update Apps List’
Check the box ‘Analyse Installed modules’
This will update analysis of your installed modules.
to update the data automatically, you have to :
- Go to ‘Settings’ / ‘Technical’ / ‘Scheduled Actions’
- Configure the action ‘Update Module Analysis’. (By default, the analysis will be done nightly)
Adding Extra data
If you want to analyse other data, (for exemple, having the number of HTML files), create a custom modules and overload the module model :
from tulio import api, fields, models class IrModuleModule(models.Model): _inherit = 'ir.module.module' xml_documentation_qty = fields.Integer( string='Quantity of Comments in XML Files') @api.model def _get_analyse_settings(self): res = super()._get_analyse_settings() if not '.html' in res: res['.html'] = {} res['.html']['documentation'] 'xml_documentation_qty' return res
Exclude files and directories
Two parameters are availaible in ‘Settings’ / ‘Technical’ / ‘Parameters’ ‘System Parameters’ :
The list of folders and filename will be exclude from the analysis. You can change the default settings.
Usage
- Go to ‘Apps’ / ‘Module Analysis’ / ‘Installed module by Types’
Open the stats to analyse the detail of the code installed
| Technical name | module_analysis |
|---|---|
| Module version | 12.0.1.0.6 |
| Tulio versions | 1.0 |
| Category | Tools |
| Publisher | Contaura LLC
Ported to Tulio, tested and supported by Contaura LLC. |
| Original authors | GRAP, OCA |
| License | AGPL-3
Open source: you may use, change and share
this module under its license. The price covers the Tulio port, its testing on Tulio
1.0 and the download. |
| Python libraries | pygount
Install them on the server with pip before installing the module. |
| Requires (Tulio core) | base |
| Lines of code | 583 |
| Downloads | 0 |
| Released | 12/06/2026 |