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_organization_serie_id

Inputs Method Outputs
organization_serie_obj = self.env["github.organization.serie"]
for module_version in self:
            res = organization_serie_obj.search(
                [
                    (
                        "organization_id",
                        "=",
                        module_version.repository_branch_id.organization_id.id,
                    ),
                    ("name", "=", module_version.repository_branch_id.name),
                ]
            )
            module_version.organization_serie_id = res and res[0].id or False

Back to entity