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
| Inputs | Method | Outputs |
|---|---|---|
|
- self.scrap_qty = 1 - for scrap in self: - if scrap.move_ids: - scrap.scrap_qty = scrap.move_ids[0].quantity |
|
