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.package

Compute Method: _compute_owner_id

View 20.0
Inputs Method Outputs
  • quant_ids
+ for package in self:
+             package.owner_id = False
+             if package.quant_ids and all(
+                 q.owner_id == package.quant_ids[0].owner_id for q in package.quant_ids
+             ):
+                 package.owner_id = package.quant_ids[0].owner_id
  • owner_id

Back to entity