mirror of
https://gitlab.com/flectra-community/server-ux.git
synced 2024-11-22 22:22:05 +00:00
16 lines
466 B
Python
16 lines
466 B
Python
|
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)
|
||
|
res_id = fields.Integer()
|
||
|
method = fields.Char(required=True)
|
||
|
state = fields.Selection(
|
||
|
[("waiting", "Waiting"), ("warning", "Warning")], default="waiting"
|
||
|
)
|
||
|
status = fields.Text(default="Start scanning")
|