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_author
| Inputs | Method | Outputs |
|---|---|---|
|
- odoo_author_obj = self.env["odoo.author"] - for version in self: - authors = [] - for item in [x.strip() for x in (version.author or "").split(",")]: - if ( - item - and item - != version.repository_id.organization_id.default_author_text - ): - authors.append(odoo_author_obj.create_if_not_exist(item)) - authors = set(authors) - version.author_ids = [x.id for x in authors] - version.author_ids_description = ", ".join(sorted(x.name for x in authors)) |
|
