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.quant.package
Compute Method: _compute_package_info
| Inputs | Method | Outputs |
|---|---|---|
|
- for package in self: - package.location_id = False - package.company_id = False - quants = package.quant_ids.filtered(lambda q: float_compare(q.quantity, 0, precision_rounding=q.product_uom_id.rounding) > 0) - if quants: - package.location_id = quants[0].location_id - if all(q.company_id == quants[0].company_id for q in package.quant_ids): - package.company_id = quants[0].company_id |
|
