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.configuration.step

Compute Method: _compute_applied_domain

Inputs Method Outputs
for record in self:
            eval_context = record.configuration_id._get_eval_context()
            if record.apply_parent_domain:
                record.applied_domain = expression.AND(
                    [
                        safe_eval(record.domain, eval_context),
                        safe_eval(
                            (record.parent_id and record.parent_id.applied_domain)
                            or record.configuration_id.domain,
                            eval_context,
                        ),
                    ]
                )
            else:
                record.applied_domain = safe_eval(record.domain, eval_context)

Back to entity