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

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