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.

28 lines
1.0 KiB

  1. # -*- encoding: utf-8 -*-
  2. ##############################################################################
  3. #
  4. # Copyright (C) 2015 Compassion CH (http://www.compassion.ch)
  5. # Releasing children from poverty in Jesus' name
  6. # @author: Roman Zoller, Emanuel Cino
  7. #
  8. # The licence is in the file __openerp__.py
  9. #
  10. ##############################################################################
  11. from openerp import models, fields
  12. class Substitution(models.Model):
  13. """ Substitution values for a SendGrid email message """
  14. _name = 'sendgrid.substitution'
  15. ##########################################################################
  16. # FIELDS #
  17. ##########################################################################
  18. key = fields.Char()
  19. lang = fields.Char()
  20. email_template_id = fields.Many2one(
  21. 'mail.template', ondelete='cascade')
  22. email_id = fields.Many2one(
  23. 'mail.mail', ondelete='cascade')
  24. value = fields.Char()