FEFO到期先出

FEFO(到期先出)是Odoo中用于下架的策略,基于产品到期时间进行下架。

启用FEFO下架策略

FEFO(到期先出)是Odoo中用于下架的策略,基于产品到期时间进行下架。Lots和序列号用于区分产品,并跟踪信息如到账、到期、移出、提醒日期。要启用此功能,请导航至 库存 ‣ 设置。在 跟踪 标头中,选中 Lots & Serial Numbers 复选框。 批次与系列号 启用后,将出现 有效期 功能。启用此功能以跟踪到期、最佳使用期限、移出、提醒日期。

启用批次与系列号和到期日期

启用批次或系列号跟踪

FEFO(到期先出)是Odoo中用于下架的策略,基于产品到期时间进行下架。要启用此功能,请导航至 库存 ‣ 产品 ‣ 产品,并选择所需的产品。在产品的表单中,打开 常规信息 标签,选中 跟踪库存 字段旁边的复选框,然后选择 按唯一序列号按批次

启用批次跟踪

设置日期

FEFO(到期先出)是Odoo中用于下架的策略,基于产品到期时间进行下架。要设置到期、最佳使用期限、移出、提醒日期,请导航至 库存 ‣ 产品 ‣ 产品,并选择所需产品。在产品表单的 库存 标签中,在 跟踪 标题下,选中 有效期 复选框。 有效期 标题出现。有关更多信息,请参阅 移出日期

分配批次和系列号

启用功能后,使用库存调整或 产品接收

设置下架策略

批次或系列号已分配后,设置下架策略。可在库存位置或产品类别上设置下架策略。

从配置菜单中查找位置或类别。

基于区位

FEFO(到期先出)是Odoo中用于下架的策略,基于产品到期时间进行下架。要设置到期、最佳使用期限、移出、提醒日期,请导航至 库存 ‣ 配置 ‣ 位置,并选择所需位置。在位置的表单中,在 物流 标题下,从下拉列表中选择 到期先出

设置到期先出为位置下架策略。

On the product category

Configure removal strategies on product categories by going to Inventory app ‣ Configuration ‣ Categories and selecting the intended product category. Next, in the Force Removal Strategy field, specify First Expiry First Out (FEFO).

Set First Expiry First Out as the product category removal strategy.

Important

When there are different removal strategies applied on both the location and product category for a product, the value set on the Force Removal Strategy field set on a product category form is applied as top priority.

移除日期

产品 必须 在其*移除日期*之前从库存中移除,该日期设定为产品*到期日期*之前的一定天数。

用户通过导航到产品表单的 库存 选项卡来设置天数。在 可追溯性 部分,确保 追溯 字段设置为 按批次按SN一物一码

Next, select the Expiration Date option, which makes the Removal Date field (and other date fields) appear.

Important

必须在 库存应用程序 ‣ 配置 ‣ 设置 中启用 批次和序列号有效期 功能,才能追溯有效期。

产品的到期日期是通过将产品收到日期与产品表单中 到期日期 字段指定的天数相加来确定的。

移除日期是将此到期日期减去产品表单中 移除日期 字段指定的天数。

Example

In the Inventory tab of the product, Egg, the following Dates are set by the user:

  • Expiration Date: 30 days after receipt

  • Removal Date: 15 days before expiration date

Display expiration and removal dates set on the product form.

A shipment of Eggs arrive at the warehouse on January 1st. So, the expiration date of the Eggs is January 31st (Jan 1st + 30). By extension, the removal date is January 16th (Jan 31 - 15).

To view the expiration dates of items in stock, go to Inventory app ‣ Products ‣ Lots / Serial Numbers. By default, this report is grouped by location. If necessary, remove that grouping in the search bar and group by product. Expand the product to show its lots. Next, click the (settings adjust) icon, located on the far-right, and select the columns: Expiration Date and Removal Date.

Show expiration dates from the Lots / Serial Numbers list.

Alternatively, view these dates by clicking the Lot/Serial Numbers smart button on the product form.

Show expiration dates from the Lots/Serial Numbers list on the product form.

工作流

Using the FEFO removal strategy ensures that products with the nearest removal date are picked first.

To understand how this removal strategy works, consider the following example below about the product, Carton of Eggs, which is a box containing twelve eggs.

The product is tracked By Lots, and the product category’s Force Removal Strategy is set to First Expiry First Out (FEFO).

LOT1

LOT2

LOT3

On-hand stock

5

2

1

到期日期

January 8, 2026

January 15, 2026

January 22, 2026

移除日期

December 24, 2025

December 31, 2025

January 7, 2026

要查看下架策略的实际效果,请转到 销售应用程序 并创建一个新报价单。

Clicking Confirm creates a delivery order for today, December 9th, and the lot numbers with the soonest expiration dates are reserved, using the FEFO removal strategy.

To view the detailed pickings, click the Details link, located on the far-right of the Carton of Eggs’ product line, in the Operations tab of the delivery order. Doing so opens the Detailed Operations pop-up window.

In the Detailed Operations pop-up window, the Pick From field displays where the quantities to fulfill the Demand are picked from.

Since the order demanded six Cartons of Eggs, using the FEFO removal strategy, all five Cartons from LOT1, with the removal date of December 24, are picked. The remaining Carton is selected from LOT2, which has a removal date of December 31.

The detailed operations window that shows the lots to be removed using FEFO.