TIP: You can type at any time to perform a new search.
Barcode
barcodes · odoo/odoo
- 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
- 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 ID | Name | Model | Type | Status |
|---|---|---|---|---|
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)
-
nameCharhelp='An internal identification of the barcode nomenclature'required=Truestring='Barcode Nomenclature' -
rule_idsOne2many → barcode.rulehelp='The list of barcode rules'string='Rules' args: 'barcode.rule', 'barcode_nomenclature_id' -
upc_ean_convSelectiondefault='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=Truestring='UPC/EAN Conversion' args: UPC_EAN_CONVERSIONS
-
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.modelConvert 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.modelReturns a valid zero padded EAN-13 from an EAN prefix. :type ean: str -
sanitize_upc(self, upc)@api.modelReturns a valid zero padded UPC-A from a UPC-A prefix. :type upc: str
New fields (7)
-
aliasChardefault='0'help='The matched pattern will alias to this barcode'required=Truestring='Alias' -
barcode_nomenclature_idMany2one → barcode.nomenclatureindex='btree_not_null'string='Barcode Nomenclature' args: 'barcode.nomenclature' -
encodingSelectiondefault='any'help='This rule will apply only if the barcode is encoded with the specified encoding'required=Trueselection=[('any', 'Any'), ('ean13', 'EAN-13'), ('ean8', 'EAN-8'), ('upca', 'UPC-A')]string='Encoding' -
nameCharhelp='An internal identification for this barcode nomenclature rule'required=Truestring='Rule Name' -
patternChardefault='.*'help='The barcode matching pattern'required=Truestring='Barcode Pattern' -
sequenceIntegerhelp='Used to order rules such that rules with a smaller sequence match first'string='Sequence' -
typeSelectiondefault='product'required=Trueselection=[('alias', 'Alias'), ('product', 'Unit Product')]string='Type'
No public methods.
New fields (1)
-
_barcode_scannedCharhelp='Value of the last barcode scanned.'store=False args: 'Barcode Scanned'
-
on_barcode_scanned(self, barcode)
New fields (0)
No new fields.
Public methods (1)-
session_info(self)
New fields (1)
-
nomenclature_idMany2one → barcode.nomenclaturedefault=_get_default_nomenclaturestring='Nomenclature' args: 'barcode.nomenclature'
No public methods.
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…