You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

129 lines
4.5 KiB

  1. ===============
  2. Module Analysis
  3. ===============
  4. .. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  5. !! This file is generated by oca-gen-addon-readme !!
  6. !! changes will be overwritten. !!
  7. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  8. .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
  9. :target: https://odoo-community.org/page/development-status
  10. :alt: Beta
  11. .. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
  12. :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
  13. :alt: License: AGPL-3
  14. .. |badge3| image:: https://img.shields.io/badge/github-legalsylvain%2Fserver--tools-lightgray.png?logo=github
  15. :target: https://github.com/legalsylvain/server-tools/tree/12.0-ADD-module_analysis/module_analysis
  16. :alt: legalsylvain/server-tools
  17. |badge1| |badge2| |badge3|
  18. This module allows you to know 'how much code' is running on your Odoo
  19. instance, group by 'Type' (Odoo Core, OCA, other...)
  20. This module can be usefull in the following cases :
  21. * To analyse the size of your technical debt, regarding your Custom modules
  22. * To know the ratio between Odoo / OCA and Custom modules
  23. * To evaluate the amount to pay to odoo to upgrade your custom code, or the
  24. induced workload
  25. .. image:: https://raw.githubusercontent.com/legalsylvain/server-tools/12.0-ADD-module_analysis/module_analysis/static/description/installed_modules_by_types.png
  26. For that purpose, it adds new concepts
  27. * ``ir.module.author``, based on the value ``author`` present in the manifest
  28. file.
  29. .. image:: https://raw.githubusercontent.com/legalsylvain/server-tools/12.0-ADD-module_analysis/module_analysis/static/description/module_authors.png
  30. * ``ir.module.type``, populated by default with Odoo and OCA values.
  31. .. image:: https://raw.githubusercontent.com/legalsylvain/server-tools/12.0-ADD-module_analysis/module_analysis/static/description/module_types.png
  32. Each installed modules have extra data in the 'Technical Data' tab :
  33. .. image:: https://raw.githubusercontent.com/legalsylvain/server-tools/12.0-ADD-module_analysis/module_analysis/static/description/module_form.png
  34. **Table of contents**
  35. .. contents::
  36. :local:
  37. Installation
  38. ============
  39. To use this module, you have to install the application ``cloc``
  40. .. code-block:: shell
  41. sudo apt-get install cloc
  42. Configuration
  43. =============
  44. * Go to Apps / Module Analysis / Modules Types Rules
  45. The Module types Rules are usefull to get the Type of a module, based on
  46. it information.
  47. This module comes with default rules.
  48. .. image:: https://raw.githubusercontent.com/legalsylvain/server-tools/12.0-ADD-module_analysis/module_analysis/static/description/default_module_type_rules.png
  49. You can add your custom rules to identify the modules your team have
  50. developped for exemple,
  51. .. image:: https://raw.githubusercontent.com/legalsylvain/server-tools/12.0-ADD-module_analysis/module_analysis/static/description/add_module_type_rules.png
  52. to update the data, you have to :
  53. * Go to 'Apps' / 'Update Apps List'
  54. * Check the box 'Analyse Installed modules'
  55. .. image:: https://raw.githubusercontent.com/legalsylvain/server-tools/12.0-ADD-module_analysis/module_analysis/static/description/base_module_update.png
  56. This will update analysis of your installed module.
  57. Usage
  58. =====
  59. * Go to 'Apps' / 'Module Analysis' / 'Installed module by Types'
  60. Open the stats to analyze the detail of the code installed
  61. .. image:: https://raw.githubusercontent.com/legalsylvain/server-tools/12.0-ADD-module_analysis/module_analysis/static/description/default_module_type_rules.png
  62. Bug Tracker
  63. ===========
  64. Bugs are tracked on `GitHub Issues <https://github.com/legalsylvain/server-tools/issues>`_.
  65. In case of trouble, please check there if your issue has already been reported.
  66. If you spotted it first, help us smashing it by providing a detailed and welcomed
  67. `feedback <https://github.com/legalsylvain/server-tools/issues/new?body=module:%20module_analysis%0Aversion:%2012.0-ADD-module_analysis%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
  68. Do not contact contributors directly about support or help with technical issues.
  69. Credits
  70. =======
  71. Authors
  72. ~~~~~~~
  73. * GRAP
  74. Contributors
  75. ~~~~~~~~~~~~
  76. * Sylvain LE GAL (https://twitter.com/legalsylvain)
  77. Maintainers
  78. ~~~~~~~~~~~
  79. This module is part of the `legalsylvain/server-tools <https://github.com/legalsylvain/server-tools/tree/12.0-ADD-module_analysis/module_analysis>`_ project on GitHub.
  80. You are welcome to contribute.