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

Module: Stock Request kanban

Entity: stock.inventory.kanban

Compute Method: _compute_missing_kanban

Inputs Method Outputs
for rec in self:
            rec.missing_kanban_ids = rec.kanban_ids.filtered(
                lambda r, rec=rec: r.id not in rec.scanned_kanban_ids.ids
            )
            rec.count_missing_kanbans = len(rec.missing_kanban_ids)

Back to entity