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.

21 lines
813 B

  1. # -*- coding: utf-8 -*-
  2. # Copyright 2015-2017 Compassion CH (http://www.compassion.ch)
  3. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
  4. from odoo import models, fields
  5. class Substitution(models.Model):
  6. """ Substitution values for a SendGrid email message """
  7. _name = 'sendgrid.substitution'
  8. ##########################################################################
  9. # FIELDS #
  10. ##########################################################################
  11. key = fields.Char()
  12. lang = fields.Char()
  13. email_template_id = fields.Many2one(
  14. 'mail.template', ondelete='cascade', index=True)
  15. email_id = fields.Many2one(
  16. 'mail.mail', ondelete='cascade', index=True)
  17. value = fields.Char()