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

Module: DDMRP

Entity: product.template

Compute Method: _compute_buffer_count

Inputs Method Outputs
  • product_variant_ids
for rec in self:
            rec.buffer_count = sum(
                variant.buffer_count for variant in rec.product_variant_ids
            )

Back to entity