---
title: "barcode_events_mixin (Odoo)"
description: "itgen_odoo_barcode_events_mixin"
language: en
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/en/datamodels/odoo/Odoo.barcodes.barcode_events_mixin
original: https://documentation.invantive.eu/en/datamodels/odoo/Odoo.barcodes.barcode_events_mixin
updated: 2023-03-01T15:29:04Z
license: https://documentation.invantive.eu/en/
---

# barcode_events_mixin: Odoo itgen_odoo_barcode_events_mixin

`read only` `per partition`

- Catalog: `Odoo`
- Schema: `barcodes`
- Label: itgen_odoo_barcode_events_mixin

Barcode Event Mixin

Can only retrieve data.

## Summary

Mixin class for objects reacting when a barcode is scanned in their form views
        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.

## Table Columns

The columns of the table `barcode_events_mixin` are shown below. Each column has an SQL data type. A new non-null value must be provided for every required column at all times during insert and update.

| Name | Data Type | Label | Required | Marks | Documentation |
|---|---|---|:---:|---|---|
| `_barcode_scanned` | `varchar2` | Barcode Scanned | [ ] |  | Value of the last barcode scanned. |



## Release Notes

What changed per release in the tables, columns, attributes and capabilities of the driver:

- [Odoo](/en/release-notes/drivers?driver=odoo)

