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.

23 lines
574 B

  1. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
  2. from odoo import fields, models
  3. class BackendVoicentTimeLine(models.Model):
  4. _name = 'backend.voicent.time.line'
  5. _description = 'Voicent Backend Time Line'
  6. name = fields.Char(
  7. string=u'Name',
  8. required=True,
  9. )
  10. time = fields.Datetime(
  11. string=u'Time',
  12. copy=False,
  13. default=lambda self: fields.Datetime.now(),
  14. )
  15. backend_id = fields.Many2one(
  16. string=u'Backend',
  17. comodel_name='backend.voicent',
  18. ondelete='set null',
  19. )