Files
odoo_source/addons/mail/tests/test_mail_model.py
T
Thibault Delavallée 4f9105a4ef [IMP] mail: handle forwarded emails in mailgateway
If the 'To' of an incoming email is an alias on another model we now consider
this emails as a forward to a new alias. A use case for this is an email on
a task that should be considered as an issue and forwarded to another alias.
2016-09-01 13:25:26 +02:00

18 lines
480 B
Python

# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import api, fields, models
class MailTest(models.Model):
""" A mail.channel is a discussion group that may behave like a listener
on documents. """
_description = 'Test Mail Model'
_name = 'mail.test'
_mail_post_access = 'read'
_inherit = ['mail.thread']
name = fields.Char()
alias_id = fields.Many2one(
'mail.alias', 'Alias')