Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.
Module: Populate
Entity: populate.blueprint
Compute Method: _compute_definition
| Inputs | Method | Outputs |
|---|---|---|
|
+ """Compute the blueprint's definition in JSON. + + If both raw definitions are specified, the XML one takes precedence. + If inherit_id is set, apply inheritance specs first. + """ + for blueprint in self: + resolved_definition = blueprint._get_resolved_definition() + if resolved_definition: + blueprint.definition = xml.parse(resolved_definition) + else: + blueprint.definition = blueprint.definition_json |
|
