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: vertical.lift.operation.inventory

Compute Method: _compute_tray_data

View 18.0
Inputs Method Outputs
  • quant_id
  • quant_id.location_id
- for record in self:
-             location = record.quant_id.location_id
-             tray_type = location.location_id.tray_type_id
-             # this is the current cell
-             record.tray_location_id = location.id
-             # name of the tray where the cell is
-             record.tray_name = location.location_id.name
-             record.tray_type_id = tray_type.id
-             record.tray_type_code = tray_type.code
-             record.tray_x = location.posx
-             record.tray_y = location.posy
-             record.tray_matrix = location.tray_matrix
  • tray_location_id
  • tray_name
  • tray_type_id
  • tray_type_code
  • tray_x
  • tray_y
  • tray_matrix

Back to entity