[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.
This commit is contained in:
Jérome Maes
2016-04-13 11:21:05 +02:00
parent 30f48eb6b6
commit fb88cff1bd
3 changed files with 0 additions and 15 deletions
-1
View File
@@ -2,5 +2,4 @@
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import mail_message
import mail_thread
import update
-13
View File
@@ -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")
-1
View File
@@ -75,7 +75,6 @@ class ProductTemplate(models.Model):
_name = 'product.template'
_mail_post_access = 'read'
# TODO FIXME tde: when website_mail/mail_thread.py inheritance work -> this field won't be necessary
website_message_ids = fields.One2many(
'mail.message', 'res_id',
domain=lambda self: ['&', ('model', '=', self._name), ('message_type', '=', 'comment')],