From a918e8999502d7e70c94de772b53035b74a87f38 Mon Sep 17 00:00:00 2001 From: Jacques-Etienne Baudoux <> Date: Mon, 5 May 2014 11:43:29 +0200 Subject: [PATCH] [FIX] mail: change copy call to copy_data to avoid resending email during duplication (opw 607295) bzr revid: mat@openerp.com-20140505094329-vr7h4c92i43ezob4 --- addons/mail/mail_thread.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/mail/mail_thread.py b/addons/mail/mail_thread.py index 83f3693..90ae3cf 100644 --- a/addons/mail/mail_thread.py +++ b/addons/mail/mail_thread.py @@ -316,14 +316,14 @@ class mail_thread(osv.AbstractModel): fol_obj.unlink(cr, SUPERUSER_ID, fol_ids, context=context) return res - def copy(self, cr, uid, id, default=None, context=None): + def copy_data(self, cr, uid, id, default=None, context=None): # avoid tracking multiple temporary changes during copy context = dict(context or {}, mail_notrack=True) default = default or {} default['message_ids'] = [] default['message_follower_ids'] = [] - return super(mail_thread, self).copy(cr, uid, id, default=default, context=context) + return super(mail_thread, self).copy_data(cr, uid, id, default=default, context=context) #------------------------------------------------------ # Automatically log tracked fields -- 1.7.10.4