# barcode_events_mixin
Barcode Event Mixin
which contains `<field name="_barcode_scanned" widget="barcode_handler"/>`.
Models using this mixin must implement the method on_barcode_scanned. It works
like an onchange and receives the scanned barcode in parameter.
## Documentation
Mixin class for objects reacting when a barcode is scanned in their form views
- Catalog: `Odoo`
- Schema: `barcodes`
The data in this table is partitioned per value of the column.
This is a read-only table. The Odoo API may not support changing the data or the Invantive SQL driver for Odoo does not cover it. In the latter case, please use the table NativePlatformScalarRequests to upload data to the Odoo API.
## Table Columns
The columns of the table `barcode_events_mixin` are shown below. Each column has an SQL data type.
| Name | Data Type | Label | Required | Documentation |
|---|:---:|---|:---:|---|
| `_barcode_scanned` | `string` | Barcode Scanned | ☐ | Value of the last barcode scanned. |