[FIX] mail: change copy call to copy_data to avoid resending email during duplication...
authorJacques-Etienne Baudoux <>
Mon, 5 May 2014 09:43:29 +0000 (11:43 +0200)
committerMartin Trigaux <mat@openerp.com>
Mon, 5 May 2014 09:43:29 +0000 (11:43 +0200)
bzr revid: mat@openerp.com-20140505094329-vr7h4c92i43ezob4

addons/mail/mail_thread.py

index 83f3693..90ae3cf 100644 (file)
@@ -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