odoo-addon-module-analysis


Nameodoo-addon-module-analysis JSON
Version 17.0.1.0.1.2 PyPI version JSON
download
home_pagehttps://github.com/OCA/server-tools
SummaryAdd analysis tools regarding installed modules to know which installed modules comes from Odoo Core, OCA, or are custom modules
upload_time2024-10-12 04:24:25
maintainerNone
docs_urlNone
authorGRAP, Odoo Community Association (OCA)
requires_python>=3.10
licenseAGPL-3
keywords
VCS
bugtrack_url
requirements acme astor cryptography dataclasses dnspython josepy mako odoo_test_helper odoorpc openpyxl openupgradelib pygount pysftp sentry_sdk unidecode unittest-xml-reporting
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ===============
Module Analysis
===============

..
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !! This file is generated by oca-gen-addon-readme !!
   !! changes will be overwritten.                   !!
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !! source digest: sha256:d00d83d918ced79270057ca2a185260375834ac2e4526c7c5cb0fa745158aca6
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
    :target: https://odoo-community.org/page/development-status
    :alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
    :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
    :alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github
    :target: https://github.com/OCA/server-tools/tree/17.0/module_analysis
    :alt: OCA/server-tools
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
    :target: https://translation.odoo-community.org/projects/server-tools-17-0/server-tools-17-0-module_analysis
    :alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
    :target: https://runboat.odoo-community.org/builds?repo=OCA/server-tools&target_branch=17.0
    :alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

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

|image|

For that purpose, it adds new concepts

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

|image1|

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

|image2|

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

|image3|

.. |image| image:: https://raw.githubusercontent.com/OCA/server-tools/17.0/module_analysis/static/description/installed_modules_by_types.png
.. |image1| image:: https://raw.githubusercontent.com/OCA/server-tools/17.0/module_analysis/static/description/module_authors.png
.. |image2| image:: https://raw.githubusercontent.com/OCA/server-tools/17.0/module_analysis/static/description/module_types.png
.. |image3| image:: https://raw.githubusercontent.com/OCA/server-tools/17.0/module_analysis/static/description/module_form.png

**Table of contents**

.. contents::
   :local:

Installation
============

To use this module, you have to install the ``pygount`` python librairy.

``pip install pygount``

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.

   |image4|

You can add your custom rules to identify the modules your team have
developped for exemple,

   |image5|

to update the data manually, you have to :

-  Go to 'Settings' / 'Technical' / 'Scheduled Actions'
-  Run manually the action : 'Update Module Analysis'

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' and activate it. (By
   default, the cron is unactive and no analysis is done)

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 :

.. code:: python

   from odoo 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' :

   |image6|

The list of folders and filename will be exclude from the analysis. You
can change the default settings.

.. |image4| image:: https://raw.githubusercontent.com/OCA/server-tools/17.0/module_analysis/static/description/default_module_type_rules.png
.. |image5| image:: https://raw.githubusercontent.com/OCA/server-tools/17.0/module_analysis/static/description/add_module_type_rules.png
.. |image6| image:: https://raw.githubusercontent.com/OCA/server-tools/17.0/module_analysis/static/description/config_parameters.png

Usage
=====

-  Go to 'Apps' / 'Module Analysis' / 'Installed module by Types'

Open the stats to analyse the detail of the code installed

   |image7|

   |image8|

.. |image7| image:: https://raw.githubusercontent.com/OCA/server-tools/17.0/module_analysis/static/description/analysis_pivot.png
.. |image8| image:: https://raw.githubusercontent.com/OCA/server-tools/17.0/module_analysis/static/description/analysis_pie.png

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-tools/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/server-tools/issues/new?body=module:%20module_analysis%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* GRAP

Contributors
------------

-  Sylvain LE GAL (https://twitter.com/legalsylvain)

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
   :alt: Odoo Community Association
   :target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

.. |maintainer-legalsylvain| image:: https://github.com/legalsylvain.png?size=40px
    :target: https://github.com/legalsylvain
    :alt: legalsylvain

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-legalsylvain|

This module is part of the `OCA/server-tools <https://github.com/OCA/server-tools/tree/17.0/module_analysis>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/OCA/server-tools",
    "name": "odoo-addon-module-analysis",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": null,
    "keywords": null,
    "author": "GRAP, Odoo Community Association (OCA)",
    "author_email": "support@odoo-community.org",
    "download_url": null,
    "platform": null,
    "description": "===============\nModule Analysis\n===============\n\n..\n   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n   !! This file is generated by oca-gen-addon-readme !!\n   !! changes will be overwritten.                   !!\n   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n   !! source digest: sha256:d00d83d918ced79270057ca2a185260375834ac2e4526c7c5cb0fa745158aca6\n   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n\n.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png\n    :target: https://odoo-community.org/page/development-status\n    :alt: Beta\n.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png\n    :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html\n    :alt: License: AGPL-3\n.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github\n    :target: https://github.com/OCA/server-tools/tree/17.0/module_analysis\n    :alt: OCA/server-tools\n.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png\n    :target: https://translation.odoo-community.org/projects/server-tools-17-0/server-tools-17-0-module_analysis\n    :alt: Translate me on Weblate\n.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png\n    :target: https://runboat.odoo-community.org/builds?repo=OCA/server-tools&target_branch=17.0\n    :alt: Try me on Runboat\n\n|badge1| |badge2| |badge3| |badge4| |badge5|\n\nThis module allows you to know 'how much code' is running on your Odoo\ninstance, group by 'Type' (Odoo Core, OCA, other...)\n\nThis module can be usefull in the following cases :\n\n-  To analyse the size of your technical debt, regarding your Custom\n   modules\n-  To know the ratio between Odoo / OCA and Custom modules\n-  To evaluate the amount to pay to odoo to upgrade your custom code, or\n   the induced workload\n\n|image|\n\nFor that purpose, it adds new concepts\n\n-  ``ir.module.author``, based on the value ``author`` present in the\n   manifest file.\n\n|image1|\n\n-  ``ir.module.type``, populated by default with Odoo and OCA values.\n\n|image2|\n\nEach installed modules have extra data in the 'Technical Data' tab :\n\n|image3|\n\n.. |image| image:: https://raw.githubusercontent.com/OCA/server-tools/17.0/module_analysis/static/description/installed_modules_by_types.png\n.. |image1| image:: https://raw.githubusercontent.com/OCA/server-tools/17.0/module_analysis/static/description/module_authors.png\n.. |image2| image:: https://raw.githubusercontent.com/OCA/server-tools/17.0/module_analysis/static/description/module_types.png\n.. |image3| image:: https://raw.githubusercontent.com/OCA/server-tools/17.0/module_analysis/static/description/module_form.png\n\n**Table of contents**\n\n.. contents::\n   :local:\n\nInstallation\n============\n\nTo use this module, you have to install the ``pygount`` python librairy.\n\n``pip install pygount``\n\nConfiguration\n=============\n\n-  Go to Apps / Module Analysis / Modules Types Rules\n\nThe Module types Rules are usefull to get the Type of a module, based on\nit information.\n\nThis module comes with default rules.\n\n   |image4|\n\nYou can add your custom rules to identify the modules your team have\ndevelopped for exemple,\n\n   |image5|\n\nto update the data manually, you have to :\n\n-  Go to 'Settings' / 'Technical' / 'Scheduled Actions'\n-  Run manually the action : 'Update Module Analysis'\n\nThis will update analysis of your installed modules.\n\nto update the data automatically, you have to :\n\n-  Go to 'Settings' / 'Technical' / 'Scheduled Actions'\n-  Configure the action 'Update Module Analysis' and activate it. (By\n   default, the cron is unactive and no analysis is done)\n\nAdding Extra data\n-----------------\n\nIf you want to analyse other data, (for exemple, having the number of\nHTML files), create a custom modules and overload the module model :\n\n.. code:: python\n\n   from odoo import api, fields, models\n\n   class IrModuleModule(models.Model):\n      _inherit = 'ir.module.module'\n\n      xml_documentation_qty = fields.Integer(\n         string='Quantity of Comments in XML Files')\n\n     @api.model\n     def _get_analyse_settings(self):\n         res = super()._get_analyse_settings()\n         if not '.html' in res:\n             res['.html'] = {}\n         res['.html']['documentation'] 'xml_documentation_qty'\n         return res\n\nExclude files and directories\n-----------------------------\n\nTwo parameters are availaible in 'Settings' / 'Technical' / 'Parameters'\n'System Parameters' :\n\n   |image6|\n\nThe list of folders and filename will be exclude from the analysis. You\ncan change the default settings.\n\n.. |image4| image:: https://raw.githubusercontent.com/OCA/server-tools/17.0/module_analysis/static/description/default_module_type_rules.png\n.. |image5| image:: https://raw.githubusercontent.com/OCA/server-tools/17.0/module_analysis/static/description/add_module_type_rules.png\n.. |image6| image:: https://raw.githubusercontent.com/OCA/server-tools/17.0/module_analysis/static/description/config_parameters.png\n\nUsage\n=====\n\n-  Go to 'Apps' / 'Module Analysis' / 'Installed module by Types'\n\nOpen the stats to analyse the detail of the code installed\n\n   |image7|\n\n   |image8|\n\n.. |image7| image:: https://raw.githubusercontent.com/OCA/server-tools/17.0/module_analysis/static/description/analysis_pivot.png\n.. |image8| image:: https://raw.githubusercontent.com/OCA/server-tools/17.0/module_analysis/static/description/analysis_pie.png\n\nBug Tracker\n===========\n\nBugs are tracked on `GitHub Issues <https://github.com/OCA/server-tools/issues>`_.\nIn case of trouble, please check there if your issue has already been reported.\nIf you spotted it first, help us to smash it by providing a detailed and welcomed\n`feedback <https://github.com/OCA/server-tools/issues/new?body=module:%20module_analysis%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.\n\nDo not contact contributors directly about support or help with technical issues.\n\nCredits\n=======\n\nAuthors\n-------\n\n* GRAP\n\nContributors\n------------\n\n-  Sylvain LE GAL (https://twitter.com/legalsylvain)\n\nMaintainers\n-----------\n\nThis module is maintained by the OCA.\n\n.. image:: https://odoo-community.org/logo.png\n   :alt: Odoo Community Association\n   :target: https://odoo-community.org\n\nOCA, or the Odoo Community Association, is a nonprofit organization whose\nmission is to support the collaborative development of Odoo features and\npromote its widespread use.\n\n.. |maintainer-legalsylvain| image:: https://github.com/legalsylvain.png?size=40px\n    :target: https://github.com/legalsylvain\n    :alt: legalsylvain\n\nCurrent `maintainer <https://odoo-community.org/page/maintainer-role>`__:\n\n|maintainer-legalsylvain|\n\nThis module is part of the `OCA/server-tools <https://github.com/OCA/server-tools/tree/17.0/module_analysis>`_ project on GitHub.\n\nYou are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.\n",
    "bugtrack_url": null,
    "license": "AGPL-3",
    "summary": "Add analysis tools regarding installed modules to know which installed modules comes from Odoo Core, OCA, or are custom modules",
    "version": "17.0.1.0.1.2",
    "project_urls": {
        "Homepage": "https://github.com/OCA/server-tools"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "23111b5a5ad8819e65a1cd1fa5bf5190711871f20e775019e1d1e545942ba70e",
                "md5": "7e1823244d02311e7eda062a11203279",
                "sha256": "7c9f1bcce781d64e64105f31d4c1bf84f5247565593f1daf4587a4f1226c367d"
            },
            "downloads": -1,
            "filename": "odoo_addon_module_analysis-17.0.1.0.1.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "7e1823244d02311e7eda062a11203279",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 252903,
            "upload_time": "2024-10-12T04:24:25",
            "upload_time_iso_8601": "2024-10-12T04:24:25.402393Z",
            "url": "https://files.pythonhosted.org/packages/23/11/1b5a5ad8819e65a1cd1fa5bf5190711871f20e775019e1d1e545942ba70e/odoo_addon_module_analysis-17.0.1.0.1.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-12 04:24:25",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "OCA",
    "github_project": "server-tools",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "acme",
            "specs": []
        },
        {
            "name": "astor",
            "specs": []
        },
        {
            "name": "cryptography",
            "specs": []
        },
        {
            "name": "dataclasses",
            "specs": []
        },
        {
            "name": "dnspython",
            "specs": []
        },
        {
            "name": "josepy",
            "specs": []
        },
        {
            "name": "mako",
            "specs": []
        },
        {
            "name": "odoo_test_helper",
            "specs": []
        },
        {
            "name": "odoorpc",
            "specs": []
        },
        {
            "name": "openpyxl",
            "specs": []
        },
        {
            "name": "openupgradelib",
            "specs": []
        },
        {
            "name": "pygount",
            "specs": [
                [
                    "==",
                    "1.4.0"
                ]
            ]
        },
        {
            "name": "pysftp",
            "specs": []
        },
        {
            "name": "sentry_sdk",
            "specs": [
                [
                    "<=",
                    "1.9.0"
                ]
            ]
        },
        {
            "name": "unidecode",
            "specs": []
        },
        {
            "name": "unittest-xml-reporting",
            "specs": []
        }
    ],
    "lcname": "odoo-addon-module-analysis"
}
        
Elapsed time: 1.65452s