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

Module: DDMRP Packaging

Entity: stock.buffer

Compute Method: _compute_packaging_id

View 18.0
Inputs Method Outputs
  • product_id
  • packaging_id
  • packaging_id.product_id
- for rec in self:
-             if (
-                 rec.product_id
-                 and rec.packaging_id
-                 and rec.packaging_id.product_id != rec.product_id
-             ):
-                 rec.packaging_id = False
  • packaging_id

Back to entity