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.

50 lines
1.3 KiB

  1. * Go to Apps / Module Analysis / Modules Types Rules
  2. The Module types Rules are usefull to get the Type of a module, based on
  3. it information.
  4. This module comes with default rules.
  5. .. image:: ../static/description/default_module_type_rules.png
  6. You can add your custom rules to identify the modules your team have
  7. developped for exemple,
  8. .. image:: ../static/description/add_module_type_rules.png
  9. to update the data, you have to :
  10. * Go to 'Apps' / 'Update Apps List'
  11. * Check the box 'Analyse Installed modules'
  12. .. image:: ../static/description/base_module_update.png
  13. This will update analysis of your installed modules.
  14. Adding Extra data
  15. ~~~~~~~~~~~~~~~~~
  16. If you want to analyze other data, (for exemple, having the number of HTML
  17. files), create a custom modules and overload the module model :
  18. .. code-block:: python
  19. from odoo import api, fields, models
  20. class IrModuleModule(models.Model):
  21. _inherit = 'ir.module.module'
  22. xml_documentation_qty = fields.Integer(
  23. string='Quantity of Comments in XML Files')
  24. @api.model
  25. def _get_analyse_settings(self):
  26. res = super(IrModuleModule, self)._get_analyse_settings()
  27. if not '.html' in res:
  28. res['.html'] = {}
  29. res['.html']['documentation'] 'xml_documentation_qty'
  30. return res