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_license_id

View 17.0
Inputs Method Outputs
  • license
- license_obj = self.env["odoo.license"]
- for version in self:
-             if version.license:
-                 version.license_id = license_obj.create_if_not_exist(version.license).id
  • license_id

Back to entity