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

Module: DDMRP Adjustment

Entity: stock.buffer

Compute Method: _compute_count_ddmrp_adjustment_demand

Inputs Method Outputs
  • id
for rec in self:
            rec.count_ddmrp_adjustment_demand = len(
                self.env["ddmrp.adjustment.demand"].search(
                    [("buffer_origin_id", "=", rec.id)]
                )
            )

Back to entity