高级路线与推/拉规则

Routes in Odoo control the movement of products between different locations, whether internal or external, using push and pull rules. Once set up, these rules help automate the logistics of product movement based on specific conditions.

注解

Routes are applicable on products, product categories, shipping methods, packagings, and on the sales order line.

About routes and terminology

在Odoo中,一个通用的仓库包括收货区、质量控制区、存储位置、拣选和包装区以及发货区。所有产品都会经过这些地点。当产品在各个地点之间流动时,每个地点都会触发产品指定的路线和规则。

查看具有库存和质量控制区域的通用仓库。

在这个例子中,供应商的卡车在收货码头卸下订购的产品托盘。然后,操作员在收货区扫描产品。根据产品的路线和规则,其中一些产品被发送到质量控制区域(例如,在生产过程中使用的组件产品)而其他产品则直接存放在各自的位置上。

查看在收到产品时的通用推送规则视图。

Here is an example of a fulfillment route. In the morning, items are picked for all the orders that need to be prepared during the day. These items are picked from storage locations and moved to the picking area, close to where the orders are packed. Then, the orders are packed in their respective boxes, and conveyor belts bring them to the shipping docks, ready to be delivered to customers.

在准备发货时查看通用拉取规则的视图。

推规则

Push rules are used to supply products into a storage locations as soon as they arrive at a specific receiving location.

注解

推规则只有在没有拉规则已经生成产品转移的情况下才能触发。

In a one-step receipt route, which uses one push rule, when a product arrives in the warehouse, a push rule can automatically transfer it to the Storage Location. Different push rules can be applied to different products, allowing for customized storage locations.

Rule for a Receive in one step route.

Push rule for the ‘Receive in one step’ route.

For more information about configuring rules, skip to the Configure rules section.

拉规则

Pull rules trigger product moves on demand, such as a sales order or a need to restock.

Pull rules work backward from the demand location. For example, in a two-step delivery route, where items move from Stock to Output before being delivered to the Customer Location, the pull rule first creates a transfer from Output to the customer. If the product is not at Output, another pull rule creates a transfer from Stock to Output. The warehouse workers then process these transfers in the reverse order: picking, then shipping.

Example pull rule.

Pull rules for the ‘Deliver in two steps’ route.

For more information about configuring rules, skip to the Configure rules section.

配置

由于 路线 是一组 推和拉规则 ,Odoo 可帮助您管理诸如以下的高级路线配置:

  • 管理产品制造链

  • 管理每个产品的默认位置

  • 根据业务需求在库存仓库中定义路线,如质量控制、售后服务或供应商退货。

  • 通过自动生成租赁产品的退货动作,帮助进行租赁管理。

要为产品配置高级路线,首先打开 库存 应用,然后进入 配置 ‣ 设置 。接着,在 仓库 部分启用 多步骤路线 功能并点击 保存

在Odoo库存中激活多步路线功能。

注解

The Storage Locations feature is automatically activated with the Multi-Step Routes feature.

完成第一步后,用户可以使用Odoo自带的预配置路线,或者他们可以创建自定义路线。

预配置的路线

要访问Odoo预先配置的高级路线,请转到 库存 ‣ 配置 ‣ 仓库 。然后,打开一个仓库表单。在 仓库配置 标签中,用户可以查看该仓库为 入库发货 和 :guilabel:` 出库发货` 预先配置的高级路线。

Odoo 库存中预配置的仓库。

一些更高级的路线,如拣选-包装-发货,也是可用的。用户可以选择最适合他们业务需求的路线。设置好 入库出库 路线后,前往 库存 ‣ 配置 ‣ 路线 查看 Odoo 生成的具体路线。

查看Odoo提供的所有预配置路线。

路线 页面上,点击一条路线以打开路线表单。在路线表单中,用户可以查看该路线适用于哪些 应用于 位置。用户还可以设置路线仅适用于特定的 公司 。这对多公司环境非常有用;例如,用户可以在国家A拥有一个公司和仓库,在国家B拥有第二个公司和仓库。

适用于产品品类和仓库的路线示例视图。

在路线表单的底部,用户可以查看该路线特定的 规则 。每个 规则 都有一个 操作 、 一个 源位置 和一个 目标位置

在Odoo库存中,具有推和拉操作的安全库存策略示例。

定制的路线

要创建自定义路线,请转到 库存 ‣ 配置 ‣ 路线 ,然后点击 创建 。接下来,选择可以选择此路线的地方。一个路线可以适用于多个地方的组合。

查看拣选-打包-发货路线。

每个地方的行为都不同,所以只勾选有用的地方并相应地调整每条路线是很重要的。然后,配置路线的 规则

如果路线适用于某个产品品类,仍然需要手动在产品品类表单中设置路线。请转到 库存 ‣ 配置 ‣ 产品品类 。然后,选择产品品类并打开表单。接下来,点击 编辑 ,在 物流 部分下设置 路线

当将路线应用于产品品类时,路线中配置的所有规则都将应用于该类别中的 每个 产品。如果企业对同一类别的所有产品使用了直接发货(代发货)流程,这可能会很有帮助。

将路线应用于 “所有” 产品品类的视图。

同样的行为适用于仓库。如果路线可以应用于 仓库 ,那么所有发生在所选仓库内满足路线规则条件的转移将遵循该路线。

在选择适用于仓库时,仓库下拉菜单的视图。

如果路线适用于 销售订单行 ,那么它或多或少是相反的。在创建报价时,必须手动选择路线。这对于某些产品经过不同路线非常有用。

记得在报价/销售订单上切换 Route 列的可见性。然后,可以在报价/销售订单的每一行中选择路线。

查看菜单,允许向销售订单添加新行。

最后,还有可以应用于产品的路线。这些路线的工作方式或多或少类似于产品品类:选择后,必须在产品表单上手动设置路线。

要在产品上设置高级路线,请转到 库存 ‣ 产品 ‣ 产品 并选择所需的产品。然后,转到 库存 标签页,在 操作 部分下,选择 路线

一个产品表单的视图,需要在其中选择路线。

重要

必须在路线上设置规则,以使路线正常工作。

规则

规则是在路线表单上定义的。首先,转到 库存 ‣ 配置 ‣ 路线 并打开所需的路线表单。接下来,点击 编辑 ,然后在 规则 部分,点击 添加一行

规则菜单的视图,可以在其中添加新的安全库存策略。

可用的规则触发各种操作。如果Odoo提供 规则,还有其他规则也是可用的。每个规则都有一个 动作

  • Pull From: this rule is triggered by a need for the product in a specific location. The need can come from a sales order being validated or from a manufacturing order requiring a specific component. When the need appears in the destination location, Odoo generates a picking to fulfill this need.

  • 推送至 :当一些产品到达定义的源位置时,将触发此规则。在用户将产品移动到源位置的情况下,Odoo会生成一个拣货单,以便将这些产品移动到目标位置。

  • Pull & Push: this rule allows the generation of pickings in the two situations explained above. This means that when products are required at a specific location, a transfer is created from the previous location to fulfill that need. This creates a need in the previous location and a rule is triggered to fulfill it. Once the second need is fulfilled, the products are pushed to the destination location and all the needs are fulfilled.

  • Buy: when products are needed at the destination location, a request for quotation is created to fulfill the need.

  • 制造 :当源位置需要产品时,将创建一个“生产订单”来满足需求。

概述一个 \拉取自\  规则,该规则在库存和包装区之间创建了一个传输 区域。

The Operation Type must also be defined on the rule. This defines which kind of picking is created from the rule.

If the rule’s Action is set to Pull From or Pull & Push, a Supply Method must be set. The Supply Method defines what happens at the source location:

  • Take From Stock: the products are taken from the available stock of the source location.

  • Trigger Another Rule: the system tries to find a stock rule to bring the products to the source location. The available stock is ignored.

  • 从库存中取出,如果无法满足,则触发另一条规则 :产品将从源位置的可用库存中取出。如果没有可用的库存,系统会尝试找到一条规则将产品带到源位置。

Example flow

在这个例子中,让我们使用一个自定义的 Pick - Pack - Ship 路线来尝试一个完整的流程,使用高级自定义路线。

首先,快速查看路线的规则及其供应方法。共有三个规则,都是 拉取自 规则。每条规则的 供应方式 如下:

  • Take From Stock: When products are needed in the WH/Packing Zone, picks (internal transfers from WH/Stock to WH/Packing Zone) are created from WH/Stock to fulfill the need.

  • Trigger Another Rule: When products are needed in WH/Output, packs (internal transfers from WH/Packing Zone to WH/Output) are created from WH/Packing Zone to fulfill the need.

  • Trigger Another Rule: When products are needed in Partner Locations/Customers, delivery orders are created from WH/Output to fulfill the need.

查看由拣选 - 打包 - 发货路线创建的所有传输的概览。

这意味着,当客户订购设置了 拣货 - 包装 - 发货 路线的产品时,将创建一个发货单来完成订单。

查看由转移拉取创建的操作。

注解

如果多个转移的源文档是相同的销售订单,那么状态将不一样。如果列表中前一个转移尚未完成,则状态将为 等待另一操作

在流程开始时,查看各种调拨状态的视图。

为了准备发货单,需要在输出区域有已打包的产品,因此从包装区请求一个内部调拨。

查看从打包区到输出区之间的传输的详细操作。

显然,包装区要有待包装的产品。所以,需发起一次内部调货,然后员工才可以从仓库集货。

查看从库存到打包区域之间的详细操作视图。

正如文档介绍中所解释的,该流程中的最后一步(对于这个路线来说是发货单)是首先被触发的,然后依次触发其他规则,直到我们达到流程中的第一步(在这里是从库存到包装区域的内部转移)。现在,所有事情都已准备就绪,以便客户可以获得订购的物品。

在这个例子中,当所有的规则都被触发并且转移完成后,产品会被交付给客户。

在路线完成时,传输状态的视图。