summaryrefslogtreecommitdiff
path: root/addons/website_mail/models/mail_thread.py
diff options
context:
space:
mode:
authorOlivier Dony <odo@openerp.com>2014-06-12 18:59:15 +0200
committerOlivier Dony <odo@openerp.com>2014-06-12 18:59:15 +0200
commit0f01df42eaf662987abe5f069ca8df2e2caf8e37 (patch)
tree3cbe73598a919d0c037f68d991d5366afb496783 /addons/website_mail/models/mail_thread.py
parent114e95b113ee30f8edb965b938739948496f2168 (diff)
parentf15cbd652035d513b4dfb412025f5997323d3229 (diff)
[MERGE] Forward-port saas-5 up to f15cbd6
Diffstat (limited to 'addons/website_mail/models/mail_thread.py')
-rw-r--r--addons/website_mail/models/mail_thread.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/website_mail/models/mail_thread.py b/addons/website_mail/models/mail_thread.py
index d4a37924b79..bea9178a335 100644
--- a/addons/website_mail/models/mail_thread.py
+++ b/addons/website_mail/models/mail_thread.py
@@ -37,5 +37,7 @@ class MailThread(osv.AbstractModel):
}
def copy(self, cr, uid, id, default=None, context=None):
+ if default is None:
+ default = {}
default['website_message_ids'] = []
return super(MailThread, self).copy(cr, uid, id, default=default, context=context) \ No newline at end of file