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

Module: Inventory

Entity: stock.scrap

Compute Method: _compute_scrap_qty

View 18.0
Inputs Method Outputs
  • move_ids
- self.scrap_qty = 1
- for scrap in self:
-             if scrap.move_ids:
-                 scrap.scrap_qty = scrap.move_ids[0].quantity
  • scrap_qty

Back to entity