Repository
OCA/stock-logistics-barcode · module folder · Try on Runboat
Module version
1.0.0
Category
Generic Modules/Inventory Control
Folder size
1.86 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/stock-logistics-barcode
Last tracking update
2026-08-07 07:57:06
Authors
Odoo Community Association (OCA), Numérigraphe
Maintainers
Odoo Community Association (OCA), Numérigraphe
Committers
Weblate, OCA-git-bot, oca-ci, Jasmin Solanki
Odoo dependencies
odoo/odoo:
Python dependencies
None
System dependencies
None
Required by
None
Description

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
gs1_barcode_form_view gs1_barcode.form gs1_barcode form New
gs1_barcode_tree_view gs1_barcode.tree gs1_barcode tree New
view_users_form_gs1_barcode res.users.form.gs1_barcode res.users form Inherits base.view_users_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (2)

New fields (7)
  • ai Char
    help='The standard Application Identifier (AI)' required=True size=14 args: 'Application Identifier'
  • data_type Selection
    default='string' required=True args: [('string', 'Any character string'), ('numeric', 'Numeric value'), ('date', 'Date')]
  • decimal Boolean
    help='Indicates whether a digit is expected before the data for this Application Identifier to indicate the position of the decimal point.' args: 'Decimal Indicator'
  • length_fixed Boolean
    default=True help='Indicates whether the length of the data for this Application Identifier is fixed or not.' args: 'Fixed-length Data'
  • length_max Integer
    default=30 help='Maximum length of the data for this Application Identifier.' required=True args: 'Maximum Data Length'
  • length_min Integer
    help='Minimum length of the data for this Application Identifier.' args: 'Minimum Data Length'
  • name Char
    required=True translate=True args: 'Description'
Public methods (1)
  • decode(self, barcode_string)
    @api.model
    Decode a GS1-128/GS1-Datamatrix string to dictionary of values with Application Identifiers as keys. Please note that the string MUST contain a <GS> character (group separator) after each variable-length value. <GS> is usually expected to be sent as ASCII character 29 but that may be configured per user. If the same Application Identifier is present several times in the string, only the its last value is returned. @type barcode_string: string @param barcode_string: GS1-128/GS1-Datamatrix string to decode @return: A dictionary of values with Application Identifiers as keys

New fields (2)
  • gs1_barcode_prefix Char
    help='The prefix that the barcode scanner will send when GS1-128 or GS1-Datamatrix codes are scanned. No prefix is expected if this fields is left empty' args: 'Prefix'
  • gs1_barcode_separator Char
    help='The characters that the barcode scanner will send when a <GS> (Group Separator) is encountered in a GS1-128 or GS1-Datamatrix code. <GS> is usually found when the data is of variable length. The ASCII character 29 will be expected by default if this field is left empty.' size=1 args: 'Group Separator'
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…