mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-18 16:32:01 +02:00
17 lines
540 B
Python
17 lines
540 B
Python
from odoo import fields, models
|
|
|
|
|
|
class BarcodeAction(models.TransientModel):
|
|
_name = "barcode.action"
|
|
_inherit = "barcodes.barcode_events_mixin"
|
|
_description = "Barcode Action"
|
|
|
|
model = fields.Char(required=True, readonly=True)
|
|
res_id = fields.Integer()
|
|
method = fields.Char(required=True, readonly=True)
|
|
state = fields.Selection(
|
|
[("waiting", "Waiting"), ("warning", "Warning")],
|
|
default="waiting",
|
|
readonly=True,
|
|
)
|
|
status = fields.Text(readonly=True, default="Start scanning")
|