diff options
| author | Thibault Delavallée <tde@openerp.com> | 2014-05-12 16:39:45 +0200 |
|---|---|---|
| committer | Thibault Delavallée <tde@openerp.com> | 2014-05-12 16:39:45 +0200 |
| commit | 46235aa78c04240f7abcf0e62ff92aad997700a2 (patch) | |
| tree | 25d0fe6a3eac3d822f56b63878ff9552406fafd9 /addons/mail/mail_thread.py | |
| parent | cce820565d9b85786d528b17670031bb112f1e64 (diff) | |
| parent | 9d9cfd585f56bf64126e7316ea60ea5131a02059 (diff) | |
[MERGE] Sync with turnk
Diffstat (limited to 'addons/mail/mail_thread.py')
| -rw-r--r-- | addons/mail/mail_thread.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/addons/mail/mail_thread.py b/addons/mail/mail_thread.py index b6166c69aef..43cf4cddda4 100644 --- a/addons/mail/mail_thread.py +++ b/addons/mail/mail_thread.py @@ -359,6 +359,10 @@ class mail_thread(osv.AbstractModel): if context is None: context = {} + if context.get('tracking_disable'): + return super(mail_thread, self).create( + cr, uid, values, context=context) + # subscribe uid unless asked not to if not context.get('mail_create_nosubscribe'): pid = self.pool['res.users'].browse(cr, SUPERUSER_ID, uid).partner_id.id @@ -394,6 +398,9 @@ class mail_thread(osv.AbstractModel): context = {} if isinstance(ids, (int, long)): ids = [ids] + if context.get('tracking_disable'): + return super(mail_thread, self).write( + cr, uid, ids, values, context=context) # Track initial values of tracked fields track_ctx = dict(context) if 'lang' not in track_ctx: |
