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.version

Compute Method: _compute_description_rst_html

Inputs Method Outputs
for version in self:
            if version.description_rst:
                try:
                    output = publish_string(
                        source=version.description_rst,
                        settings_overrides=self._SETTING_OVERRIDES,
                        writer=MyWriter(),
                    )
                except Exception:
                    output = (
                        "<h1 style='color:red;'>"
                        + _("Incorrect RST Description")
                        + "</h1>"
                    )
            else:
                output = html_sanitize(
                    "<h1 style='color:gray;'>" + _("No Version Found") + "</h1>"
                )
            version.description_rst_html = html_sanitize(output)

Back to entity