server-ux/barcode_action/wizard/barcode_action.py

18 lines
543 B
Python
Raw Permalink Normal View History

2021-03-23 19:15:27 +00:00
from flectra 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")