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.
15 lines
478 B
15 lines
478 B
import json
|
|
from odoo import api, fields, models
|
|
|
|
from ..environment_checkup import dependencies
|
|
from ..environment_checkup.runtime import display_data
|
|
|
|
|
|
class Module(models.Model):
|
|
_inherit = "ir.module.module"
|
|
|
|
dependency_checks = fields.Text(compute="_compute_dependency_checks")
|
|
|
|
def _compute_dependency_checks(self):
|
|
checks = dependencies.get_checks_for_module_recursive(self)
|
|
self.dependency_checks = json.dumps(display_data(self.env, checks))
|