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

Module: Rma Reason

Entity: rma

Compute Method: _compute_operation_domain

Inputs Method Outputs
for rec in self:
            if rec.reason_id and rec.reason_id.allowed_operation_ids:
                rec.operation_domain = [
                    ("id", "in", rec.reason_id.allowed_operation_ids.ids)
                ]
            else:
                rec.operation_domain = []

Back to entity