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

Module: Weighing assistant

Entity: stock.move

Compute Method: _compute_recorded_weight

Inputs Method Outputs
  • move_line_ids
for move in self:
            move.recorded_weight = sum(move.move_line_ids.mapped("recorded_weight"))
            move.move_lines_weighed = move.move_line_ids and all(
                move.move_line_ids.mapped("recorded_weight")
            )

Back to entity