Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: Github Connector - Odoo

Entity: odoo.module

Compute Method: _compute_description

View 17.0
Inputs Method Outputs
  • module_version_ids
  • module_version_ids.ids
- module_version_obj = self.env["odoo.module.version"]
- for module in self:
-             version_ids = module.module_version_ids.ids
-             last_version = module_version_obj.search(
-                 [("id", "in", version_ids)], order="organization_serie_id desc", limit=1
-             )
-             if last_version:
-                 module.description_rst = last_version.description_rst
-                 module.description_rst_html = last_version.description_rst_html
-             else:
-                 module.description_rst = ""
-                 module.description_rst_html = html_sanitize(
-                     "<h1 style='color:gray;'>" + _("No Version Found") + "</h1>"
-                 )
  • description_rst
  • description_rst_html

Back to entity