Lead times¶
Accurately forecasting delivery dates is vital for fulfilling customer expectations. In Odoo, the Inventory app allows for comprehensive lead time configuration, allowing coordination and planning of manufacturing orders, deliveries, and receipts.
准备时间类型¶
不同业务的不同交付周期会影响订单履行流程的各个阶段。以下是 Odoo 中交货时间类型的摘要:

Customer lead time: default time frame for fulfilling customer orders. The customer lead time is the number of days from the date the sales order (SO) is confirmed to the date the products are shipped from the warehouse. This is also known as delivery lead time.
Sales security lead time: moves the scheduled delivery date forward by a specified number of days. This serves as a buffer to allow ample time to prepare the outgoing shipment earlier, considering the possibility of delays in the fulfillment process.
Purchase lead time: number of days from the confirmation of a purchase order (PO) to the receipt of products. It provides insight on the time it takes for products to arrive at the warehouse, facilitating effective scheduling and planning of supplier deliveries.
Purchase security lead time: advances the order deadline on a PO by a specified number of days. This proactive approach of placing orders earlier mitigates the risk of vendor or shipping delays. Thus, for products that are set to replenish to order, the need appears on the Replenishment report earlier, according to the specified number of days.
Days to Purchase: days needed for the vendor to receive a request for quotation (RFQ) and confirm it. It advances the deadline to schedule a RFQ by a specified number of days.
Manufacturing lead time: number of days needed to complete a manufacturing order (MO) from the date of confirmation. This lead time includes weekends (non-working hours in Odoo), and is used to forecast an approximate production date for a finished good.
Days to prepare manufacturing order: number of days needed to replenish components, or manufacture sub-assemblies of the product. Either set one directly on the bill of materials (BoM), or click Compute to sum up purchase and manufacturing lead times of components in the BoM.
Manufacturing security lead time: moves the scheduled date of the MO forward by a specified number of days. When used in conjunction with replenish to order, the security lead time makes the need appear earlier on the replenishment report.
销售前置时间¶
客户前置时间和销售安全前置时间可配置为自动计算:abbr:SO(销售订单)
上的*预计交货日期*。预计交货日期可确保仓库发货的*交货日期*设置切合实际。
如果设定的交货日期早于预期日期,Odoo 就会发出警告信息,因为届时可能无法完成订单,从而影响其他仓库业务。
Example
7月 11 日确认了一份包含`椰香蜡烛`的:abbr:销售订单(SO)
。该产品的客户交货时间为 14 天,企业使用 1 天的销售安全交货时间。根据交货时间的设定,Odoo 建议在 15 天后的 7 月 26 日进行交货。

以下部分演示如何自动计算预期交货日期。
客户前置时间¶
通过导航至产品页面,在每个产品表单上设置客户交付周期。要执行此操作,请转至 库存 选项卡。然后,在 客户前置时间 字段下,填写完成交货订单从开始到结束所需的日历天数。
。从那里选择所需的产品,然后切换到Example
导航到产品表单,为 椰子香味蜡烛
设置 14 天的客户前置时间。然后,在 库存 选项卡的 客户前置时间 字段中键入`14.00`天。

销售安全前置时间¶
在
中为业务全局设置 销售安全前置时间。在配置页面的 高级日程安排 标题下,找到 销售安全前置时间 复选框,然后点击复选框启用该功能。
然后,输入所需的日历天数。这个安全前置时间是一个缓冲时间,通知团队在预定日期之前做好出货准备。
Example
将 销售安全前置时间 设置为 1.00
天,会将发货单(DO)的 计划日期 提前一天。在这种情况下,如果产品最初计划于 4 月 6 日交货,但安全前置时间为一天,则交货订单的新计划日期将是 4 月 5 日。

交付多种产品¶
对于包含具有不同前置时间的多个产品订单,可直接从报价单本身配置前置时间。在报价单上,点击 其他信息 选项卡,并将 运输政策 设置为:
尽快 用于在产品准备就绪后立即交付。DO(发货单)`的 :guilabel:`计划日期 是通过将当天日期加上订单中产品的最短前置时间来确定的。
当所有产品都准备就绪`时,等待一次性完成整个订单。:abbr:`DO(发货单)`的 :guilabel:`计划日期 是通过将当天日期加上订单中产品的最长前置时间来确定的。

Example
在一份包含 2 种产品(瑜伽垫
和 阻力带
)的报价单中,产品前置时间分别为 8 天和 5 天。今天是 4 月 2 日。
当 运输政策 设置为 尽快 时,计划交货日期为今天开始算起的 5 天后,即 4 月 7 日。如果选择 当所有产品准备就绪时 ,则计划交货日期为今天开始算起的 8 天后,即 4 月 10 日。
采购前置时间¶
自动确定向供应商下订单的日期有助于简化采购流程。
Odoo 根据仓库需要产品的规定日期,计算供应商装运 收货日期 和 PO(采购订单)`截止日期。从收货日期倒推,供应商的前置时间和采购安全前置时间都会考虑在内,从而确定 :abbr:`PO(采购订单) 截止日期。
此截止日期为确认订单的日期,以确保在预期收货日期前及时到货。

供应商前置时间¶
要为从供应商位置到达仓库的订单设置供应商前置时间,首先通过
导航到产品表单。接下来,选择所需的产品,并切换到 采购 选项卡。在可编辑的供应商价目表中,点击 添加明细 按钮添加供应商详细信息,如 供应商 名称、价格 ,及 交货前置时间 。
注解
供应商价目表中可添加多个供应商和前置时间。默认选择的供应商和前置时间将是列表顶部的条目。
Example
在产品表单的供应商价目表中,所选供应商的 交货前置时间 设置为 10 天
。

通过设置供应商前置时间,项目的预期到货日期将自动确定为:abbr:`PO(采购订单)`确认日期加上供应商前置时间。这可确保在产品**未在**预期时间内到达时,及时通知仓库员工。
Example
在 7 月 11 日确认的 PO(采购订单)`上,产品配置了 10 天供应商前置时间,Odoo 自动将 :guilabel:`收货日期 设置为 7 月 21 日。收货日期也会作为 预定日期 显示在仓库收货单表格上,可通过 收货单 智能按钮访问,该按钮位于 PO(采购订单) 。


采购安全前置时间¶
采购安全前置时间 在
中为企业全局设置。在 设置 页面的 高级日程安排 标题下,勾选 采购安全前置时间 复选框。
然后,输入所需的日历天数。通过配置安全前置时间,可以设置一个缓冲,以考虑供应商交货的潜在延迟。然后,点击 保存 。
Example
将 采购安全前置时间 设置为 2.00
天,会将 预定日期 的收货日期推后两天。在这种情况下,如果产品最初计划于 4 月 6 日到达,而安全前置时间为两天,则新的预定收货日期将是 4 月 8 日。

Days to purchase lead time¶
To set it up, go to Advanced Scheduling section, in the Days to Purchase field, specify the number of days required for the vendor to confirm a RFQ after receiving it from the company.
. Under the制造前置时间¶
掌握交货前置时间,可以帮助简化基于物料清单(BOM)的制造产品所需消耗性材料和零部件的采购流程。
The MO deadline, which is the deadline to begin the manufacturing process to complete the product by the scheduled delivery date, can be determined by configuring the manufacturing lead times and manufacturing security lead times.

制造前置时间¶
Manufacturing lead times for products are configured from a product’s bill of materials (BoM) form.
To add a lead time to a BoM, navigate to
, and select the desired BoM to edit.On the BoM form, click the Miscellaneous tab. Change the value (in days) in the Manuf. Lead Time field to specify the calendar days needed to manufacture the product.

注解
如果所选 BoM 是多级 BoM,则会加上组件的制造提前期。
如果 BoM 产品是委外的,则 制造提前期 可用于确定将部件发送给委外服务商的日期。
Establish a MO deadline, based on the expected delivery date, indicated in the Scheduled Date field of the DO.
The MO deadline, which is the Scheduled Date field on the MO, is calculated as the expected delivery date subtracted by the manufacturing lead time.
这确保了生产流程按时开始,以满足交货日期的要求。
不过,需要注意的是,交付周期是以日历天数为基础的。交付周期**不**考虑周末、节假日或 *工作中心容量*(工作中心可同时执行的操作数量)。
更多内容
Example
一产品在 DO(发货订单) 上的预定装运日期是 8 月 15 日。该产品的生产需要 14 天。因此,最迟应在 8 月 1 日开始 MO (制造订单) ,以满足承诺日期。
准备生产订单的天数¶
通过查看产品的 BoM,配置收集部件制造产品所需的天数。要执行此操作,请转到
,然后选择所需的 BoM。在 BoM 的 Miscellaneous 选项卡中,在 准备生产订单的天数 字段中指定获取产品组件所需的日历天数。这样做可提前创建 MO 并确保有足够时间补充组件或制造半成品。
小技巧
点击位于 准备制造订单的天数 字段旁边的 计算 ,将计算出 BoM 中列出的所有组件中最长的交货期。
影响该特定|BoM|的*采购安全准备时间*也会添加到该值中。
Example
一个 BoM 有两个组成部分,其中一个的制造前置时间为两天,另一个的采购前置时间为四天。因此,准备生产订单的天数 为 4 天。
制造安全准备时间¶
在 计划 标题下,勾选 安全准备时间 复选框。
中为业务全局设置 制造安全准备时间。在然后,输入所需日历天数。通过配置安全准备时间,可以设置一个缓冲,以考虑生产过程中可能出现的延迟。然后,点击 保存 。

Example
A product has a scheduled shipment date on the DO set for August 15th. The manufacturing lead time is 7 days, and manufacturing security lead time is 3 days. So, the Scheduled Date on the MO reflects the latest date to begin the manufacturing order. In this example, the planned date on the MO is August 5th.
全局示例¶
请参阅以下示例,了解所有交付周期如何共同作用以确保及时完成订单:
销售安全准备时间:1 天
制造安全准备时间:2 天
制造安全准备时间:3 天
采购安全准备时间:1 天
供应商安全准备时间:4 天
客户于 9 月 1 日下单购买制成品,仓库的预定交货日期为 9 月 20 日。Odoo 根据出库交货日期(9 月 20 日),使用提前期和自动重新订货规则来安排必要的操作:

9 月 1 日:创建销售订单,由销售人员确认。
9 月 9 日: 订购部件的截止日期,以确保在生产开始时及时送达(供应商交货期为 4 天)。
9 月 13 日:零部件计划入库日期。原定于9月14日,但由于设置了1天的采购安全提前期,日期提前了1天。
9 月 14 日: 开始生产的截止日期。计算方法是从 9 月 19 日的预计交货日期减去 3 天的制造提前期和 2 天的制造安全提前期。
9 月 19 日:发货订单表单上的 预定日期 显示更新后的预计交货日期,该日期最初设定为 9 月 20 日。但销售安全准备时间将日期提前了一天。
Odoo 的补货计划可映射企业的订单执行流程,设定预先确定的截止日期和原材料订购日期,包括可能出现延误的缓冲天数。这可确保产品按时交付。