You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

22 lines
548 B

from odoo import fields, models
class BarcodeAction(models.TransientModel):
_name = 'barcode.action'
_inherit = "barcodes.barcode_events_mixin"
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",
)