summaryrefslogtreecommitdiff
path: root/addons/website_mail/models/mail_thread.py
diff options
context:
space:
mode:
authorThibault Delavallée <tde@openerp.com>2015-03-30 12:52:26 +0200
committerThibault Delavallée <tde@openerp.com>2015-04-27 10:36:15 +0200
commit4b122ad41d873febe288ab1f8c6cdc078ca2a479 (patch)
tree9792fcbc0c61274ca6296e3ce6c2f67a2467b377 /addons/website_mail/models/mail_thread.py
parentb7f04278bd5375d6dc21a3381df91c725bb2fd44 (diff)
[MIGR] mail: migration to the new API
Diffstat (limited to 'addons/website_mail/models/mail_thread.py')
-rw-r--r--addons/website_mail/models/mail_thread.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website_mail/models/mail_thread.py b/addons/website_mail/models/mail_thread.py
index b410cbe0e16..aace499b025 100644
--- a/addons/website_mail/models/mail_thread.py
+++ b/addons/website_mail/models/mail_thread.py
@@ -29,7 +29,7 @@ class MailThread(osv.AbstractModel):
'website_message_ids': fields.one2many(
'mail.message', 'res_id',
domain=lambda self: [
- '&', ('model', '=', self._name), ('type', '=', 'comment')
+ '&', ('model', '=', self._name), ('message_type', '=', 'comment')
],
string='Website Messages',
help="Website communication history",