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

  1. from odoo import fields, models
  2. class BarcodeAction(models.TransientModel):
  3. _name = 'barcode.action'
  4. _inherit = "barcodes.barcode_events_mixin"
  5. model = fields.Char(
  6. required=True, readonly=True
  7. )
  8. res_id = fields.Integer()
  9. method = fields.Char(
  10. required=True, readonly=True
  11. )
  12. state = fields.Selection([
  13. ('waiting', 'Waiting'),
  14. ('warning', 'Warning')
  15. ], default='waiting', readonly=True, )
  16. status = fields.Text(
  17. readonly=True,
  18. default="Start scanning",
  19. )