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

Module: Field Service Sizes

Entity: fsm.order

Compute Method: _compute_size_id

View 17.0 View 18.0
Inputs Method Outputs
  • type
  • type.id
+ for rec in self:
+             if rec.type:
+                 rec.size_id = self.env["fsm.size"].search(
+                     [("type_id", "=", rec.type.id), ("is_order_size", "=", True)],
+                     limit=1,
+                 )
  • size_id

Back to entity