GS1条码命名法

GS1 nomenclature consolida各种产品和供应链数据汇总到一个条形码中。Odoo接受企业购买的`独特的全球贸易项目编号 <https://www.gs1.org/standards/get-barcodes>`_ (GTIN),以实现全球航运、销售和电子商务产品清单。

配置 GS1 命名法来扫描密封箱的条形码,并识别关键产品信息,如 GTIN,批号,数量信息等。

重要

GTINs are unique product identification that must be purchased from GS1 to use GS1 barcodes.

设置条形码命名规则

要使用GS1命名法,请导航到: 库存应用程序 ‣ 配置 ‣ 设置 。然后在 条形码 部分下,勾选 条形码扫描仪 复选框。接下来,选择 条形码命名法 ‣ 默认GS1命名法 从 默认条形码命名法选项中。

Choose GS1 from dropdown and click the external link to see the list of GS1 rules.

The list of GS1 rules and barcode patterns Odoo supports by default is accessible by clicking the ➡️ (arrow) icon to the right of the Barcode Nomenclature selection.

In the Open: Nomenclature pop-up table, view and edit the GS1 Rule Names available in Odoo. The table contains all the information that can be condensed with a GS1 barcode, along with the corresponding Barcode Pattern.

小技巧

After setting GS1 as the barcode nomenclature, the Barcode Nomenclatures settings can also be accessed by a hidden menu that’s discoverable after enabling developer mode. Once enabled, navigate to the Inventory app ‣ Configuration ‣ Barcode Nomenclatures menu and finally, select Default GS1 Nomenclature.

Use GS1 barcodes in Odoo

对于在Odoo中使用GS1条形码进行产品识别,企业需要获取一个`独特的GTIN <https://www.gs1.org/standards/get-barcodes>`_ 作为从GS1购买的国际独特产品标识符。这个 GTIN 与遵循GS1指定的特定产品细节结合*条形码模式*。条形码模式中的数字和字母排列必须遵守GS1的约定,以便全球系统准确解释沿着供应链。

每个条形码都以2-4位数字的 应用标识符 (A.I.) 开始。这个必需的前缀普遍表示条形码包含的信息类型。Odoo 遵循GS1规则来识别信息,如在 默认GS1规则列表 中详细说明的那样。从列表中包括相关的 A.I. 可以使Odoo 正确解释GS1条形码。虽然大多数条形码模式有固定的长度要求,但某些模式,如批次和序列号,具有灵活的长度。

小技巧

对于不位于 GS1 条形码末尾的可变长度条形码模式,请使用 FNC1 分隔符(x1D)来结束条形码。

Example: The barcode pattern for lot numbers is 20 characters long. Instead of creating a 20-character lot number barcode, like LOT00000000000000001, use the FNC1 separator to make it shorter: LOT001x1D.

Refer to the GS1 nomenclature list to see a comprehensive list of all barcode patterns and rules to follow. Otherwise, refer to this GS1 usage doc for specific examples of combining GTIN to product information and configuring the workflow.

创建规则

GS1规则是条形码中包含的特定信息格式,以 A.I. 开头,包含一定长度的字符。从 默认GS1列表 扫描 GS1条形码会自动填充Odoo数据库中的相应数据。

在Odoo中添加GS1条形码规则可确保准确解释独特的、非标准的GS1格式。

To do so, begin by turning on developer mode and navigating to the Barcode Nomenclatures list in Inventory app ‣ Configuration ‣ Barcode Nomenclatures. Then, select the Default GS1 Nomenclature list item.

默认GS1命名法 页面上,选择表格底部的 添加一行,这将打开一个窗口以创建新规则。 规则名称 字段在内部用于标识条形码代表的内容。条形码的 类型 是可以被系统理解的不同信息分类(例如产品、数量、最佳使用日期、包装、优惠券)。 顺序 表示规则的优先级;这意味着数值越小,规则在表格中的显示位置越高。Odoo按照此表格的顺序进行匹配,并使用第一个匹配到的规则。 条形码模式 是系统识别字母或数字序列以包含产品信息的方式。

填写完信息后,点击 保存并新建 按钮以创建另一个规则,或点击 保存并关闭 以保存并返回规则表。

条码故障排除

由于GS1条形码很难处理,所以在条形码无法按预期工作时,可以尝试以下检查:

  1. 确保 条形码命名法 设置为 默认 GS1 命名法。详细信息请参阅 命名法设置部分

  2. 确保在Odoo中启用了条形码中扫描的字段。例如,要扫描包含批次和序列号的条形码,请确保在 Odoo的设置产品上 中启用了 批次和序列号 功能。

  3. 在条形码序列的 A.I. 和条形码之间省略括号 () 或方括号 [] 。这些通常在示例中用于方便阅读, 不应 包含在最终的条形码中。有关构建GS1条形码的更多详细信息,请参阅 此部分

  4. 当一个条形码包含多个编码字段时,Odoo要求在条形码命名规则中列出所有规则,以便Odoo能够读取条形码。 :ref:`本节 <barcode/operations/create-new-rules>`详细介绍了如何在条形码命名规则中添加新规则。

  5. 逐个测试包含多个编码字段的条形码,以找出导致问题的字段。

    Example

    当测试包含 GTIN、批号和数量的条形码时,首先只扫描 GTIN。然后,测试带有批号的 GTIN,最后尝试扫描整个条形码。

  6. After diagnosing the encoded field is unknown, add new rules to Odoo’s default list to recognize GS1 barcodes with unique specifications.

    重要

    While the new field will be read, the information won’t link to an existing field in Odoo without developer customizations. However, adding new rules is necessary to ensure the rest of the fields in the barcode are interpreted correctly.

GS1命名规范清单

下表包含了Odoo的默认GS1规则列表。条形码模式使用正则表达式编写。只有前三个规则需要一个 check digit <https://www.gs1.org/services/check-digit-calculator> _ 作为最后一个字符。

规则名称

类型

条形码模式

GS1内容类型

Odoo字段

序列运输容器代码

包裹

(00)(\d{18})

数字标识符

软件包名称

全球贸易项目编号(GTIN)

单元产品

(01)(\d{14})

数字标识符

在产品表单上的 条形码 字段

包含的交易项目的GTIN

单元产品

(02)(\d{14})

数字标识符

包装

发货至/送货至全球地点

目标位置

(410)(\d{13})

数字标识符

目标位置

发货/交付给前方

目标位置

(413)(\d{13})

数字标识符

源位置

物理位置的身份证明

位置

(414)(\d{13})

数字标识符

位置

批次或批号

批次

(10) ([!”%-/0-9:-?A-Z_a-z]{0,20})

字母数字名称

批次

序号

批次

(21) ([!”%-/0-9:-?A-Z_a-z]{0,20})

字母数字名称

序号

包装日期(YYMMDD)

包装日期

(13)(\d{6})

日期

打包日期

最佳食用日期(YYMMDD)

最佳食用日期

(15)(\d{6})

日期

最佳食用日期

到期日期(YYMMDD)

到期日期

(17)(\d{6})

日期

到期日期

变量项的数量

数量

(30)(\d{0,8})

测量

UoM:单位

交易项目数量

数量

(37)(\d{0,8})

测量

容器单位的数量(AI 02)

净重:千克(kg)

数量

(310[0-5])(\d{6})

测量

千克数量

长度(米)

数量

(311[0-5])(\d{6})

测量

数量(m)

净体积:升(L)

数量

(315[0-5])(\d{6})

测量

L的数量

净体积:立方米(m3

数量

(316[0-5])(\d{6})

测量

立方米中的数量3

英寸(in)的长度

数量

(321[0-5])(\d{6})

测量

英寸中的数量

净重/体积:盎司(oz)

数量

(357[0-5])(\d{6})

测量

盎司中的数量

净体积:立方英尺(ft3

数量

(365[0-5])(\d{6})

测量

立方英尺中的数量3

包装类型

包装类型

(91) ([!”%-/0-9:-?A-Z_a-z]{0,90})

字母数字名称

包类型