---
title: "rule (Odoo)"
description: "itgen_odoo_rule"
language: en
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/en/datamodels/odoo/Odoo.barcode.rule
original: https://documentation.invantive.eu/en/datamodels/odoo/Odoo.barcode.rule
updated: 2023-03-01T15:29:04Z
license: https://documentation.invantive.eu/en/
---

# rule: Odoo itgen_odoo_rule

`read only` `per partition`

- Catalog: `Odoo`
- Schema: `barcode`
- Label: itgen_odoo_rule

Barcode Rule

Can only retrieve data.

## Table Columns

The columns of the table `rule` are shown below. Each column has an SQL data type. A new non-null value must be provided for every required column at all times during insert and update.

| Name | Data Type | Label | Required | Marks | Documentation |
|---|---|---|:---:|---|---|
| `alias` | `varchar2` | Alias | [x] |  | The matched pattern will alias to this barcode |
| `associated_uom_id` | `varchar2` |  | [ ] |  |  |
| `associated_uom_id_label` | `varchar2` |  | [ ] |  |  |
| `barcode_nomenclature_id` | `varchar2` |  | [ ] |  |  |
| `barcode_nomenclature_id_label` | `varchar2` |  | [ ] |  |  |
| `create_date` | `datetime` | Created on | [ ] |  |  |
| `create_uid` | `varchar2` |  | [ ] |  |  |
| `create_uid_label` | `varchar2` |  | [ ] |  |  |
| `display_name` | `varchar2` | Display Name | [ ] |  |  |
| `encoding` | `varchar2` | Encoding | [x] |  | This rule will apply only if the barcode is encoded with the specified encoding |
| `gs1_content_type` | `varchar2` | GS1 Content Type | [ ] |  | The GS1 content type defines what kind of data the rule will process the barcode as:        * Date: the barcode will be converted into a Odoo datetime;        * Measure: the barcode's value is related to a specific UoM;        * Numeric Identifier: fixed length barcode following a specific encoding;        * Alpha-Numeric Name: variable length barcode. |
| `gs1_decimal_usage` | `boolean` | Decimal | [ ] |  | If True, use the last digit of AI to determine where the first decimal is |
| `id` | `int32` | ID | [ ] |  |  |
| `is_gs1_nomenclature` | `boolean` | Is GS1 Nomenclature | [ ] |  | This Nomenclature use the GS1 specification, only GS1-128 encoding rules is accepted is this kind of nomenclature. |
| `name` | `varchar2` | Rule Name | [x] |  | An internal identification for this barcode nomenclature rule |
| `pattern` | `varchar2` | Barcode Pattern | [x] |  | The barcode matching pattern |
| `sequence` | `int32` | Sequence | [ ] |  | Used to order rules such that rules with a smaller sequence match first |
| `type` | `varchar2` | Type | [x] |  |  |
| `write_date` | `datetime` | Last Updated on | [ ] |  |  |
| `write_uid` | `varchar2` |  | [ ] |  |  |
| `write_uid_label` | `varchar2` |  | [ ] |  |  |



## Release Notes

What changed per release in the tables, columns, attributes and capabilities of the driver:

- [Odoo](/en/release-notes/drivers?driver=odoo)

