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

View 18.0
Inputs Method Outputs
  • reason_id
  • reason_id.allowed_operation_ids
  • reason_id.allowed_operation_ids.ids
+ 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 = []
  • operation_domain

Back to entity