Skip to content
Health
100/100
good
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 3 months ago
  • Required by25/25
    5 modules depend on it
  • Maturity25/25
    In 5 Odoo series since 10.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
5
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.25 MB
Module directory on disk
Code analysis 1 migration note 6 models 3 views 0 HTTP endpoints

Description

Standard Stock Routes explain the steps you want to produce whereas the “Dynamic Routing” defines how operations are grouped according to their final source and destination location.

This allows for example:

  • To parallelize transfers in two locations of a warehouse, splitting them in two different operation type
  • To define pre-picking (wave) in some sub-locations, then roundtrip picking of the sub-location waves

Context for the use cases:

In the warehouse, you have a High-Bay which requires to place goods in a handover when you move goods in or out of it. The High-Bay contains many sub-locations.

A product can be stored either in the High-Bay, either in the Shelving zone.

When picking:

When there is enough stock in the Shelving, you expect the moves to have the usual Pick(Highbay)-Pack-Ship steps. If the good is picked from the High-Bay, you will need an extra operation: Pick(Highbay)-Handover-Pack-Ship.

This is what this feature is doing: on the High-Bay location, you define a "routing rule". A routing rule selects a different operation type for the move. The extra transfer will have the selected operation type, and be added dynamically, on reservation, before the chain of moves.

When putting away:

A put-away rule targets the High-Bay location. An operation Input-Highbay is created. You expect Input-Handover-Highbay.

You can configure a dynamic routing for the put-away on the High-Bay Location. The operation type of the new Handover move will the one of the matching routing rule, and its destination will be the destination of the operation type.

Notes about Odoo 18.0+

Compared to new Odoo dynamic push rules, here all steps are planned in advance. The move to the final destination always exists and the put-away has already been executed so that the final bin is already known. The intermediate step before reaching this final destination will also have it's put-away computed. As each step is planned in advance, you can also properly respect the operation shipping policy.

Dependencies

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 3

XML IDNameModelTypeStatus
view_stock_routing_form stock.routing.form stock.routing form New
view_stock_routing_search stock.routing.search stock.routing search New
view_stock_routing_tree stock.routing stock.routing list New

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 6

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • write(self, values)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (1)
  • canceled_by_routing Boolean
    default=False help='Technical field. Indicates the transfer is canceled because it was left empty after a dynamic routing.'
Public methods (0)

No public methods.

New fields (6)
  • active Boolean
    default=True
  • location_id Many2one → stock.location
    comodel_name='stock.location' index=True ondelete='cascade' required=True
  • picking_type_id Many2one → stock.picking.type
    comodel_name='stock.picking.type' help='Apply this routing only if the operation type of the move is the same.' required=True string='Operation Type'
  • routing_message Html
    compute='_compute_routing_message'
  • rule_ids One2many → stock.routing.rule
    comodel_name='stock.routing.rule' inverse_name='routing_id' string='Routing Rules'
  • sequence Integer
    default=<expr>
Public methods (0)

No public methods.

New fields (9)
  • location_dest_id Many2one → stock.location
    comodel_name='stock.location' compute='_compute_location_dest_id'
  • location_src_id Many2one → stock.location
    comodel_name='stock.location' compute='_compute_location_src_id'
  • method Selection
    help='On pull, the routing is applied when the source location of a move line matches the source location of the rule. On push, the routing is applied when the destination location of a move line matches the destination location of the rule.' selection=[('pull', 'Pull'), ('push', 'Push')]
  • picking_type_id Many2one → stock.picking.type
    comodel_name='stock.picking.type' help='Operation type that will be applied on the move.' required=True
  • routing_id Many2one → stock.routing
    comodel_name='stock.routing' ondelete='cascade' required=True
  • routing_location_id Many2one
    index=True related='routing_id.location_id' store=True
  • routing_picking_type_id Many2one
    help='Routing applied only on moves of this operation type.' index=True related='routing_id.picking_type_id' store=True
  • rule_domain Char
    default=[] help='Domain based on Stock Moves, to define if the routing rule is applicable or not.' string='Source Routing Domain'
  • sequence Integer
    default=<expr>
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…