TIP: You can type at any time to perform a new search.
Search By Barcode
barcodes_search · OCA/stock-logistics-barcode
- Repository
- OCA/stock-logistics-barcode · module folder · Try on Runboat
- Module version
- 1.0.2
- Category
- Tools
- Folder size
- 0.12 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/stock-logistics-barcode
- Last tracking update
- 2026-08-07 07:17:49
- Authors
- Odoo Community Association (OCA), GRAP
- Maintainers
- Odoo Community Association (OCA), GRAP
- Committers
- Sylvain LE GAL, OCA Transbot, OCA-git-bot, oca-travis
Code Analysis ⓘ
Views touched (2)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
assets_backend |
assets_backend | ir.ui.view | qweb | Inherits web.assets_backend |
view_barcode_search_form |
barcode.search | form | New |
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (2)
New fields (3)
-
barcodeCharrequired=Truestring='Barcode to Search' -
line_idsOne2many → barcode.search.linecomodel_name='barcode.search.line'inverse_name='barcode_search_id'readonly=True -
stateSelectiondefault='new'selection=[('new', 'New'), ('done', 'Done')]
-
action_search(self)@api.multi -
get_barcode_fields(self, model_name=False)@api.modelReturn a recordset of fields that represent a barcode, in any model. By default, it will return all fields named "barcode". Note : Overload that function in a custom module, if you define a barcode field with a name different than "barcode". -
get_model_by_rule_type(self)@api.modelProvides a mapping for nomenclature types to Odoo models. The dictionary returned by this method maps barcode nomenclature rule types (``barcode.rule.type``) to the models that they represent. A barcode nomenclature rule type allows for numerical content to be represented in a barcode by utilizing the `......{NNDDD}` format to indicate the fixed and variable parts of the barcode respectively. Note: Modules adding new barcode nomenclature rule types will need to override this method to update the mapping in order to be supported. For example: * `weight` is defined in the Odoo `stock` module * `price` is defined in the Odoo `point_of_sale ` module * `price_to_weight ` is defined in the OCA `pos_price_to ` module Returns: dict: A mapping of models keyed by their respective barcode rule type (``barcode.rule.type``). -
search_by_barcode(self, barcode)@api.modelReturn a list of dict that matches with the given barcode with the following format [{"field": field, "record": record, "extra_data": extra_data_dict)
New fields (7)
-
barcode_search_idMany2one → barcode.searchcomodel_name='barcode.search' -
extra_dataChar -
extra_data_displayTextcompute='_compute_extra_data_display'string='Extra Data' -
field_idMany2one → ir.model.fieldscomodel_name='ir.model.fields'readonly=Truestring='Field' -
item_nameCharreadonly=Truestring='Item Name' -
item_refIntegerreadonly=Truestring='Item ID' -
model_idMany2one → ir.modelcomodel_name='ir.model'readonly=Truerelated='field_id.model_id'
-
button_view(self)@api.multi