Generate Barcodes for Stock Locations
barcodes_generator_location · OCA/stock-logistics-barcode
-
Security25/25No findings
-
Activity12/25Last human commit 20 months ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 6 Odoo series since 10.0
Heuristic over the facts below, not an audit · How it's computed
Migration considerations
- Raw `cr.execute()` INSERT/UPDATE/DELETE bypasses the ORM (no compute/constrains/tracking/mail): `DELETE FROM barcode_rule WHERE generate_model = 'stock.location'` - re-check the table/column names still match after upgrading. migration-raw-sql-write · 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
This module expands Odoo functionality, allowing user to generate barcode depending on a given barcode rule for Stock Locations.
For example, a typical pattern for partners is "042........." that means that: * the EAN13 code will begin by '042' * followed by 0 digits (named Barcode Base in this module) * a 13 digit control
With this module, it is possible to:
-
Assign a pattern (barcode.rule) to a stock.location
-
Define a Barcode base:
- manually, if the base of the barcode must be set by a user. (typically an internal code defined in your company)
- automatically by a sequence, if you want to let Odoo to increment a sequence. (typical case of a customer number incrementation)
-
Generate a barcode, based on the defined pattern and the barcode base
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 1
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_location_form |
stock.location | form | Inherits stock.view_location_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 2
-
generate_modelSelectionselection_add=[('stock.location', 'Stock Location')]
No public methods.
No new fields.
Public methods (1)-
get_view(self, view_id=None, view_type='form', **options)@api.modelThe redefinition of this method is intended to manipulating the form view of stock.location to add the barcode field to the view in case it has not been added by the stock_barcodes module.
Loading…
Loading…
Loading…
Loading…
Loading…