序号

Serial numbers are one of the two ways to identify and track products in Odoo, along with lots. A serial number is a unique identifier assigned to a product to distinguish it from other products in a series. Serial numbers can consist of several character types: they can contain numbers, letters, other typographical characters, or any mix of these character types.

The goal of assigning serial numbers allows for the tracking of individual products and their expiration dates and location throughout the supply chain. For instance, serial numbers can help manufacturers locate products to provide after-sales services or in the event of a recall.

启用批次和序列号

To track products using serial numbers, two settings need to be enabled: the Lots & Serial Numbers traceability setting, and serial number usage by operation type.

Traceability setting

The Lots & Serial Numbers traceability feature must be enabled first to track products. To do so, go to Inventory app ‣ Configuration ‣ Settings, scroll down to the Traceability section, and tick the Lots & Serial Numbers checkbox. Remember to click the Save button to save changes.

Enabled Lots & Serial Numbers setting.

By operation type

Next, specify whether the ability to create new or use existing serial numbers should be turned on for particular operation types (such as shipping or receiving goods). In other words, this setting allows for serial number tracking on warehouse receipts and delivery orders.

Example

Enabling the Create New option for receipts allows new serial numbers to be assigned as items are received. However, for delivery orders, it is often disabled to prevent workers from accidentally assigning serial numbers that do not exist in inventory.

To enable the creation of new serial numbers on an operation, navigate to Inventory app ‣ Configuration ‣ Operations Types.

操作类型 页面,选择所需的操作类型(如 收据送货订单制造),并在操作类型配置页面的 批次/序列号 部分选择 新建 选项。

在收据操作类型上选择显示 “新建” 选项。

Configure serial number tracking on individual products

Once the Lots & Serial Numbers setting has been activated, individual products can now be tracked using serial numbers. To track a product, go to Inventory app ‣ Products ‣ Products, and select the desired product.

In the General Information tab on the product form, make sure the box next to Track Inventory is checked. Then, select By Unique Serial Number, and click Save to save the changes. Now, existing or new serial numbers can now be selected and assigned to newly-received or manufactured batches of this product.

在产品表单上启用序列号追踪功能。

分配序列号

In Odoo, serial numbers can be assigned at several times and places:

为库存产品创建新的序列号

New serial numbers can be created for products already in stock with no assigned serial number. To do so, go to Inventory ‣ Products ‣ Lots/Serial Numbers, and click New. Doing so reveals a blank lot/serial number form. On this form, a new Lot/Serial Number is generated automatically.

小技巧

虽然 Odoo 会自动生成一个新的批次/序列号,紧跟最近的编号,但可通过点击 批次/序列号 字段下的行并更改生成的编号,将其编辑和更改为任何所需的编号。

生成 批次/序列号 后,点击:guilabel:产品 旁边的空白区域,显示一个下拉菜单。从该菜单中选择要分配新编号的产品。

This form also provides the option to adjust the On Hand Quantity, to assign a unique Internal Reference number (for additional traceability), and to assign this specific lot/serial number configuration to a specific company in the Company field. A detailed description of this specific lot/serial number can also be added in the Description tab below.

小技巧

The Internal Reference number field is a space for manufacturers to input an additional unique number to allow for easier tracking. For instance, SKU values may be used here.

完成所有所需配置后,点击 保存 按钮保存所有更改。

为现有产品库存创建新的序列号。

After a new serial number has been created, assigned to the desired product, and saved, navigate back to the product form, by going to Inventory app ‣ Products ‣ Products, and selecting the product that this newly-created serial number was just assigned to.

在该产品的详细信息表单中,点击 批次/序列号 智能按钮查看新序列号。

Create serial numbers to incoming or outgoing products

Serial numbers can be assigned to both incoming and outgoing goods. The receipt and delivery order forms mirror one another; the instructions below can be followed to assign serial numbers in either form.

  • Incoming goods: Assign serial numbers directly on the receipt. Receipts can be accessed by navigating to Inventory app ‣ Operations ‣ Receipts.

  • Outgoing goods: Assign serial numbers directly on the delivery order. Receipts can be accessed by navigating to Inventory app ‣ Operations ‣ Deliveries.

重要

Before assigning serial numbers on receipts or delivery orders, be sure that the ability to create new serial numbers by operations type is enabled.

Lots/serial number field

Serial numbers can be entered directly into the Serial Numbers field on a receipt or delivery order.

Select value for Serial Number field on receipt.

小技巧

To make the Serial Numbers field visible on a receipt or delivery order, click the (Adjust Settings) icon, and in the drop-down menu, tick the Serial Numbers checkbox.

Allow Serial Numbers field to show on a receipt or delivery order.

Example Serial Numbers field on a delivery order.

库存移动弹窗

For various methods of assigning serial numbers individually or in bulk, click the (list) icon in the product line of a receipt.

添加行

In the Open: Stock move pop-up window, manually enter serial numbers in the Lot/Serial Number column. This method is best reserved for adding only one or a few serial numbers.

Add a line on the stock move pop-up.
生成序列号/批次号

点击 打开:库存移动 弹出窗口中的 生成序列号/批次 按钮,一次分配多个序列号。

Show generate serials pop-up.

Doing so opens a new popup, Generate Serial numbers, which contains a few fields:

  • First SN: Input the first serial number that should start the sequence. From there, Odoo automatically detects what pattern should be followed to generate more serial numbers.

  • Number of SN: Specify the desired number of serial numbers to generate.

    注解

    The number of serials generated will be reflected in the Quantity field on a receipt or delivery order. Even if the number of serial numbers generated exceeds the Demand value, Odoo still allows the quantity (based on the serial numbers) to be delivered or received.

    Show how the quantity of serial numbers alters the delivery order quantity.
  • Keep current lines checkbox: Check this box to keep existing serial numbers that may have been previously added. To replace existing serial numbers in the list, leave the box unchecked.

After filling out these fields, click the Generate button. The newly generated serials now appear in the Open: Stock move window. By clicking (Save), the Quantity and the Serial Numbers fields on the delivery order or receipt update automatically.

导入序列号/批次

Another option for assigning multiple serial numbers at once is to click the Import Serials/Lots button in the Open: Stock move pop-up window.

重要

If the import button is not visible, ensure the Create New box is checked in the receipt’s configuration page.

Doing so opens the Import Serials pop-up window. Enter each serial number on a separate line in the Lots/Serial numbers text field.

As when generating serials, check the Keep current lines box to keep existing serial numbers, or leave it unchecked to overwrite them.

小技巧

To expedite this process, copy/paste serial numbers from an existing spreadsheet and add them to the Lots/Serial numbers text field.

最后,点击 生成

Show import serials pop-up.

Example

对于数量:guilabel:需求 为`3.00`件产品的收据单,一个产品已在 打开:库存移动 弹出窗口中分配了序列号。

因此,在 导入批次 弹窗中,通过在 批次/序列号 输入字段中输入以下内容,为剩余产品分配了两个序列号`124`和`125`:

124
125

选择 保留现有行 选项,将在已分配的序列号`123`**之外**添加这两个序列号。

显示在文本字段中正确输入序列号的示例。

详细操作

Accessible from both receipt and delivery order forms, the Detailed Operations page shows a detailed view of product movements, including information about serial numbers, exact locations, expiration dates, etc. This level of detail permits more precise tracking, for example, when handling perishable or regulated goods.

To access this page, first select a warehouse receipt or delivery order. Then, click on the Moves smart button at the top of the page.

In the Lot/Serial Number column, manually type (or select from the drop-down menu) the desired serial numbers for each individual product.

Show the detailed Moves page.

When finished, click the receipt/delivery order’s breadcrumbs, and the assigned serial numbers are automatically saved.

Traceability & reporting

Manufacturers and companies can refer to the Lots/Serial Numbers dashboard and traceability reports to see the entire lifecycle of a product: when and where it originated, where it was stored, and who it was shipped to.

Lots/Serial Numbers dashboard

要查看产品的完整可追溯性或按序列号分组,请转到 库存应用程序‣ 产品 ‣ 批次/序列号。这样就会显示 批次/序列号 仪表板。

报表

On the Lots/Serial Numbers dashboard, products with serial numbers assigned to them are listed by default. Click the (expand) icon to show which serial numbers are assigned to the chosen product.

To group by serial numbers (or lots), first remove any default filters from the search bar in the upper-right corner. Then, click the (down arrow) icon and select Add Custom Group, which reveals a mini drop-down menu. From this mini drop-down menu, select Lot/Serial Number, and click Apply.

Doing so reveals all existing serial numbers and lots. Each row can be expanded to show all quantities of product assigned to that serial/lot number. For unique serial numbers that are not reused, there should be just one product per serial number.

带有下拉列表的序列号报告页面。

小技巧

For additional information regarding an individual serial (or lot) number, click the line item for the serial number to reveal that specific Serial Number form. From this form, click the Location and Traceability smart buttons to see all stock on-hand using that serial number, and any operations made using that serial number.

参见

Reassign

In addition to using the Lots/Serial Numbers dashboard, there are several other reporting templates that display the Lot/Serial Number field or the ability to filter by serial number. Go to Inventory app ‣ Reporting to access:

  • Locations report

  • Moves History report

  • Moves Analysis report