diff options
| author | Jérome Maes <jem@openerp.com> | 2016-03-22 14:00:15 +0100 |
|---|---|---|
| committer | Jérome Maes <jem@openerp.com> | 2016-04-13 11:21:05 +0200 |
| commit | fb88cff1bd1b77ffc3d8fa2bce7cda39c47c3710 (patch) | |
| tree | 46a6410d29aaac27b4a36bba655fae1218fb112d /addons/website_mail/models/mail_thread.py | |
| parent | 30f48eb6b677105c47f67d66a71b1102cafbb558 (diff) | |
[IMP] website_mail : remove 'website_message_ids' from mail.thread
This inheritance wasn't working till the commit of rco, modifying
models inheritance.
Anyway, `website_message_ids` field is already defined on several
models (product, slide, forum questions, blog post, ...), and each
of them have a different domain attribute.
So making the mail.thread mixin providing this field is not so
interessting since it will be overrided for specific behavior.
We remove this field as it can't be usefull and generic.
Diffstat (limited to 'addons/website_mail/models/mail_thread.py')
| -rw-r--r-- | addons/website_mail/models/mail_thread.py | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/addons/website_mail/models/mail_thread.py b/addons/website_mail/models/mail_thread.py deleted file mode 100644 index 5c0ace6722d..00000000000 --- a/addons/website_mail/models/mail_thread.py +++ /dev/null @@ -1,13 +0,0 @@ -# -*- coding: utf-8 -*- -# Part of Odoo. See LICENSE file for full copyright and licensing details. - -from odoo import fields, models - - -# TODO for trunk, remove me -class MailThread(models.AbstractModel): - _inherit = 'mail.thread' - - website_message_ids = fields.One2many('mail.message', 'res_id', - domain=lambda self: ['&', ('model', '=', self._name), ('message_type', '=', 'comment')], - string='Website Messages', help="Website communication history") |
