Stock Special Route

Allow to define multiple paths inside a stock route

Technical Name:
stock_special_route
License:
Author:
Numigi
Website:
https://kastor.lab.numigi.net/web/image/product.template/1424/image_1920?unique=0a81b40
  • Odoo Version

Conditions générales
Garantie satisfait ou remboursé de 30 jours
Expédition : 2-3 jours ouvrables

Stock Special Route

This module allows to define multiple paths inside the same stock route.

Context

In vanilla Odoo, routes are hardly customizable.

All steps (stock rules) defined on a delivery or receipt route are applied for all products.

Therefore, the only way to achieve multiple paths per warehouse for different products would be to create as many routes for each warehouse.

The problem is that you end up with a very complex configuration. Because the sequence order of routes is important when routing products, it becomes hard to reason about.

Overview

The module adds the concept of a special route.

static/description/special_route.png

A special route is a route used to filter the rules to apply for another route.

For example, you may define a purchase route with two or three steps.

static/description/receipt_route.png

The special route is set on the first two rules. These rules will be applied only for products linked to the special route.

The third rule will be applied as fallback for other products.

Therefore, some products will be received in three steps and others will be received in two steps.

Rule Order

Because stock rules are evaluated in order of sequence, it is important that rules with a special route appear first in sequence.

Configuration

I create a new route Quality Control.

static/description/quality_control_route.png

I go to the form view of my warehouse. I select the option to receive products in 3 steps.

static/description/warehouse.png

I go to the form view of the receipt route.

static/description/three_steps_route.png

On the two existing rules, I select the special route.

Then, I add a third rule as fallback from Input to Stock. This rule is applied for products that don't require quality control.

static/description/three_steps_route_customized.png

Usage

I set up a product with the Quality Control route.

static/description/product_with_route.png

I set up a second product without the route.

static/description/product_without_route.png

I create a purchase order with both products.

static/description/purchase_order.png

I process the receipt.

static/description/receipt_picking.png

I notice that the first product goes through Quality Control.

static/description/transfer_to_quality_control.png

The second product goes directly to Stock.

static/description/transfer_to_stock.png

Known Issues

Performance

The module stock_route_optimized improves the performance of stock rules in the context of procurements (pull).

However, this improvement does not concern push operations for now.

In order to filter stock rules per special route in the context of push operations, this module decreases performance.

This issue could be fixed in future improvement of the module stock_route_optimized.

Implied Receipt Step

In a receipt route, there is always a rule (step) that is implied.

This step is created when confirming the purchase Order. It uses the default destination location defined on the receipt picking type of the warehouse.

static/description/receipt_picking_type.png

For now, this step is not customizable using special routes.

Contributors