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

Module: Stock Dynamic Routing

Entity: stock.routing

Compute Method: _compute_routing_message

Inputs Method Outputs
"""Generate a description of the routing for humans"""
for routing in self:
            if not (
                routing.picking_type_id and routing.location_id and routing.rule_ids
            ):
                routing.routing_message = ""
                continue
            routing.routing_message = routing._routing_message_template().format(
                routing=routing
            )

Back to entity