Repository
odoo/odoo · module folder
Module version
1.0
Category
Supply Chain/Inventory
Folder size
0.61 MB
License
LGPL-3
Application
No
Auto-installable
No
Website
None
Last tracking update
2026-08-15 22:44:20
Authors
Odoo S.A.
Maintainers
Odoo S.A.
Committers
Odoo Translation Bot, Julien Castiaux, svs-odoo, Tiffany Chang (tic), Gorash, Mathieu Duckerts-Antoine, Louis Wicket (wil), Dylan Kiss (dyki), Ethan Vincent, Julien Carion (juca), nihp-odoo, dhha-odoo, Mohammad Abdulmoneim (abdu), khsr-odoo, Krzysztof Magusiak (krma), kkuj-odoo, shka-odoo, jsum-odoo
Odoo dependencies
odoo/odoo:
- web
- uom
Python dependencies
None
System dependencies
None
Required by
stock
Description

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
view_barcode_gs1_nomenclature_form Barcode Nomenclatures barcode.nomenclature form Inherits barcodes.view_barcode_nomenclature_form
view_barcode_gs1_nomenclature_tree Barcode Nomenclatures barcode.nomenclature tree Inherits barcodes.view_barcode_nomenclature_tree
view_barcode_gs1_rule_form Barcode Rule barcode.rule form Inherits barcodes.view_barcode_rule_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (3)

New fields (2)
  • gs1_separator_fnc1 Char
    default='(Alt029|#|\\x1D)' help='Alternative regex delimiter for the FNC1. The separator must not match the begin/end of any related rules pattern.' string='FNC1 Separator' trim=False
  • is_gs1_nomenclature Boolean
    help='This Nomenclature use the GS1 specification, only GS1-128 encoding rules is accepted is this kind of nomenclature.' string='Is GS1 Nomenclature'
Public methods (4)
  • gs1_date_to_date(self, gs1_date)
    @api.model
    Converts a GS1 date into a datetime.date. :param gs1_date: A year formated as yymmdd :type gs1_date: str :return: converted date :rtype: datetime.date
  • gs1_decompose_extended(self, barcode)
    Try to decompose the gs1 extended barcode into several unit of information using gs1 rules. Return a ordered list of dict
  • parse_gs1_rule_pattern(self, match, rule)
  • parse_nomenclature_barcode(self, barcode)

New fields (6)
  • associated_uom_id Many2one → uom.uom
    args: 'uom.uom'
  • encoding Selection
    default=_default_encoding ondelete={'gs1-128': 'set default'} selection_add=[('gs1-128', 'GS1-128')]
  • gs1_content_type Selection
    help="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 unit; * Numeric Identifier: fixed length barcode following a specific encoding; * Alpha-Numeric Name: variable length barcode." string='GS1 Content Type' args: [('date', 'Date'), ('measure', 'Measure'), ('identifier', 'Numeric Identifier'), ('alpha', 'Alpha-Numeric Name')]
  • gs1_decimal_usage Boolean
    help='If True, use the last digit of AI to determine where the first decimal is' args: 'Decimal'
  • is_gs1_nomenclature Boolean
    related='barcode_nomenclature_id.is_gs1_nomenclature'
  • type Selection
    ondelete={'quantity': 'set default', 'location': 'set default', 'location_dest': 'set default', 'lot': 'set default', 'package': 'set default', 'use_date': 'set default', 'expiration_date': 'set default', 'package_type': 'set default', 'pack_date': 'set default'} selection_add=[('quantity', 'Quantity'), ('location', 'Location'), ('location_dest', 'Destination location'), ('lot', 'Lot number'), ('package', 'Package'), ('use_date', 'Best before Date'), ('expiration_date', 'Expiration Date'), ('package_type', 'Package Type'), ('pack_date', 'Pack Date')]
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • session_info(self)

Loading…

Loading…

Loading…

Loading…