diff options
| author | Jacques-Etienne Baudoux <> | 2014-05-05 11:43:29 +0200 |
|---|---|---|
| committer | Martin Trigaux <mat@openerp.com> | 2014-05-05 11:43:29 +0200 |
| commit | a918e8999502d7e70c94de772b53035b74a87f38 (patch) | |
| tree | d0c878f8c4c50ab2d45f178502132b2cfee158fd | |
| parent | 2f7ac6838de324cf414b9a7413c2fa15c0c03fdb (diff) | |
[FIX] mail: change copy call to copy_data to avoid resending email during duplication (opw 607295)
bzr revid: mat@openerp.com-20140505094329-vr7h4c92i43ezob4
| -rw-r--r-- | addons/mail/mail_thread.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/mail/mail_thread.py b/addons/mail/mail_thread.py index 83f3693e3be..90ae3cf0aa3 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 |
