summaryrefslogtreecommitdiff
path: root/addons/test_mail
diff options
context:
space:
mode:
authorfw-bot <otis@odoo.com>2019-10-07 19:57:00 +0000
committerLucas Perais (lpe) <lpe@odoo.com>2019-10-08 07:52:13 +0000
commit2b830e5d41163e12de2fd493d21eba24daf8f924 (patch)
tree206f273d67e48f991ad5ad34cd5e7a4f27fc9b19 /addons/test_mail
parent383b1d873f1ce39c02c9c27b66337d9b7df2765a (diff)
[FIX] mail: translate assignation msg in recipient lang
Before this commit, when assigning a user onto a record, through the field user_id, the email was sent in the current user's language After this commit, it is sent in the partner's language OPW 2060898 closes odoo/odoo#38142 Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
Diffstat (limited to 'addons/test_mail')
-rw-r--r--addons/test_mail/tests/test_performance.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/test_mail/tests/test_performance.py b/addons/test_mail/tests/test_performance.py
index 3c5de0a5986..64faed185b2 100644
--- a/addons/test_mail/tests/test_performance.py
+++ b/addons/test_mail/tests/test_performance.py
@@ -200,7 +200,7 @@ class TestAdvMailPerformance(BaseMailPerformance):
def test_message_assignation_email(self):
self.user_test.write({'notification_type': 'email'})
record = self.env['mail.test.track'].create({'name': 'Test'})
- with self.assertQueryCount(__system__=39, emp=40):
+ with self.assertQueryCount(__system__=40, emp=41):
record.write({
'user_id': self.user_test.id,
})