Repository
odoo/odoo · module folder
Module version
2.0
Category
Supply Chain/Inventory
Folder size
0.99 MB
License
LGPL-3
Application
No
Auto-installable
No
Website
None
Last tracking update
2026-08-15 22:44:14
Authors
Odoo S.A.
Maintainers
Odoo S.A.
Committers
Raphael Collet, Odoo Translation Bot, Aaron Bohy, Julien Castiaux, Tiffany Chang (tic), Gorash, Mathieu Duckerts-Antoine, William Braeckman, Romain Estievenart, Louis Wicket (wil), Victor Piryns (pivi), Dylan Kiss (dyki), Vivek Pathak, Xavier Bol (xbo), nihp-odoo, Pierre Pulinckx (PIPU), Pierre Pulinckx, krip-odoo, Stephane Vanmeerhaeghe (stva), ELCO
Odoo dependencies
odoo/odoo:
- web
Python dependencies
None
System dependencies
None
Required by
barcodes_generator_abstract, barcodes_gs1_nomenclature, event, hr_attendance, point_of_sale
Description

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
view_barcode_nomenclature_form Barcode Nomenclatures barcode.nomenclature form New
view_barcode_nomenclature_tree Barcode Nomenclatures barcode.nomenclature list New
view_barcode_rule_form Barcode Rule barcode.rule form New
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (5)

New fields (3)
  • name Char
    help='An internal identification of the barcode nomenclature' required=True string='Barcode Nomenclature'
  • rule_ids One2many → barcode.rule
    help='The list of barcode rules' string='Rules' args: 'barcode.rule', 'barcode_nomenclature_id'
  • upc_ean_conv Selection
    default='always' help='UPC Codes can be converted to EAN by prefixing them with a zero. This setting determines if a UPC/EAN barcode should be automatically converted in one way or another when trying to match a rule with the other encoding.' required=True string='UPC/EAN Conversion' args: UPC_EAN_CONVERSIONS
Public methods (6)
  • match_pattern(self, barcode, pattern)
    Checks barcode matches the pattern and retrieves the optional numeric value in barcode. :param barcode: :type barcode: str :param pattern: :type pattern: str :return: an object containing: - value: the numerical value encoded in the barcode (0 if no value encoded) - base_code: the barcode in which numerical content is replaced by 0's - match: boolean :rtype: dict
  • parse_barcode(self, barcode)
  • parse_nomenclature_barcode(self, barcode)
    Attempts to interpret and parse a barcode. :param barcode: :type barcode: str :return: A object containing various information about the barcode, like as: - code: the barcode - type: the barcode's type - value: if the id encodes a numerical value, it will be put there - base_code: the barcode code with all the encoding parts set to zero; the one put on the product in the backend :rtype: dict
  • parse_uri(self, barcode)
    @api.model
    Convert supported URI format (lgtin, sgtin, sgtin-96, sgtin-198, sscc and ssacc-96) into a GS1 barcode. :param barcode str: the URI as a string. :rtype: str
  • sanitize_ean(self, ean)
    @api.model
    Returns a valid zero padded EAN-13 from an EAN prefix. :type ean: str
  • sanitize_upc(self, upc)
    @api.model
    Returns a valid zero padded UPC-A from a UPC-A prefix. :type upc: str

New fields (7)
  • alias Char
    default='0' help='The matched pattern will alias to this barcode' required=True string='Alias'
  • barcode_nomenclature_id Many2one → barcode.nomenclature
    index='btree_not_null' string='Barcode Nomenclature' args: 'barcode.nomenclature'
  • encoding Selection
    default='any' help='This rule will apply only if the barcode is encoded with the specified encoding' required=True selection=[('any', 'Any'), ('ean13', 'EAN-13'), ('ean8', 'EAN-8'), ('upca', 'UPC-A')] string='Encoding'
  • name Char
    help='An internal identification for this barcode nomenclature rule' required=True string='Rule Name'
  • pattern Char
    default='.*' help='The barcode matching pattern' required=True string='Barcode Pattern'
  • sequence Integer
    help='Used to order rules such that rules with a smaller sequence match first' string='Sequence'
  • type Selection
    default='product' required=True selection=[('alias', 'Alias'), ('product', 'Unit Product')] string='Type'
Public methods (0)

No public methods.

New fields (1)
  • _barcode_scanned Char
    help='Value of the last barcode scanned.' store=False args: 'Barcode Scanned'
Public methods (1)
  • on_barcode_scanned(self, barcode)

New fields (0)

No new fields.

Public methods (1)
  • session_info(self)

New fields (1)
  • nomenclature_id Many2one → barcode.nomenclature
    default=_get_default_nomenclature string='Nomenclature' args: 'barcode.nomenclature'
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…