Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: Automation Oca

Entity: automation.record.step

Compute Method: _compute_parent_position

View 18.0
Inputs Method Outputs
  • parent_id
  • parent_id.parent_position
- for record in self:
-             record.parent_position = (
-                 (record.parent_id.parent_position + 1) if record.parent_id else 0
-             )
  • parent_position

Back to entity