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

Module: Vertical Lift

Entity: stock.location

Compute Method: _compute_vertical_lift_kind

View 18.0
Inputs Method Outputs
  • vertical_lift_location
  • location_id
  • location_id.vertical_lift_kind
- tree = {"view": "shuttle", "shuttle": "tray", "tray": "cell"}
- for location in self:
-             if location.vertical_lift_location:
-                 location.vertical_lift_kind = "view"
-                 continue
-             kind = tree.get(location.location_id.vertical_lift_kind, False)
-             location.vertical_lift_kind = kind
  • vertical_lift_kind

Back to entity