Search By Barcode
barcodes_search · OCA/stock-logistics-barcode
Health
35/100
poor
-
Security25/25No findings
-
Activity0/25Last human commit 81 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 10.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.12 MB
Module directory on disk
Code analysis
3 migration notes
2 models
2 views
0 HTTP endpoints
Migration considerations
BarcodeSearch— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (1 methods) migration-api-multi-one · sourceBarcodeSearchLine— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (1 methods) migration-api-multi-one · sourceview_barcode_search_form— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
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