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

Module: Route Planning Stock Integration

Entity: route.checkpoint

Compute Method: _compute_picking_domain

Inputs Method Outputs
  • partner_id
  • partner_id.id
  • route_id
  • route_id.route_area_id
  • route_id.route_area_id.id
for checkpoint in self:
            checkpoint.picking_domain = [
                ("partner_id", "=", checkpoint.partner_id.id),
                ("route_area_id", "=", checkpoint.route_id.route_area_id.id),
                ("state", "not in", ["draft", "done", "cancel"]),
            ]

Back to entity