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.

16 lines
491 B

  1. import json
  2. from odoo import api, fields, models
  3. from ..environment_checkup import dependencies
  4. from ..environment_checkup.runtime import display_data
  5. class Module(models.Model):
  6. _inherit = "ir.module.module"
  7. dependency_checks = fields.Text(compute="_compute_dependency_checks")
  8. @api.one
  9. def _compute_dependency_checks(self):
  10. checks = dependencies.get_checks_for_module_recursive(self)
  11. self.dependency_checks = json.dumps(display_data(self.env, checks))