Skip to content
Permalink
Browse files

revert changes on lpe's test

  • Loading branch information...
Xavier-Do committed Mar 19, 2019
1 parent 320f324 commit 53d6dde917cf82355b5bf95b996392c4e392cf3f
Showing with 2 additions and 4 deletions.
  1. +1 −1 addons/mail/models/mail_thread.py
  2. +1 −3 addons/test_mail/tests/test_mail_template.py
@@ -297,7 +297,7 @@ def create(self, vals_list):
else:
track_threads = threads
for thread, values in zip(track_threads, vals_list):
changes = set(key for (key, value) in enumerate(values) if value)
changes = set(key for (key, value) in values.items() if value)
thread._message_track_post_template(changes)

return threads
@@ -231,9 +231,7 @@ def patched_message_track_post_template(*args, **kwargs):
rec = self.env['mail.test.track'].create({
'email_from': email_new_partner,
'company_id': company1.id,
})
rec.write({ # todo XDO chek with LPE
'user_id': self.env.user.id, # trigger tracking,
'user_id': self.env.user.id,
})

new_partner = Partner.search([('email', '=', email_new_partner)])

0 comments on commit 53d6dde

Please sign in to comment.
You can’t perform that action at this time.