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_manifest_key_ids

Inputs Method Outputs
manifest_key_obj = self.env["odoo.manifest.key"]
for version in self:
            manifest_keys = []
            if version.manifest_keys:
                for manifest_key in version.manifest_keys.split(","):
                    if manifest_key:
                        manifest_keys.append(
                            manifest_key_obj.create_if_not_exist(manifest_key)
                        )
            version.manifest_key_ids = [x.id for x in manifest_keys]

Back to entity