From 36d45175b0879a2dbad689964c20b2a8583e827b Mon Sep 17 00:00:00 2001 From: Denis Ledoux Date: Fri, 18 May 2018 12:29:38 +0200 Subject: [PATCH] [FIX] mail: translate activity type in kanban When opening the activity dropdown in the kanban view of the opportunities, the activity type names were not translated in the user language. In addition, when marking it as done, the message posted in the discussion thread of the opportunity was not translated either. opw-1847908 --- addons/mail/static/src/js/activity.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/mail/static/src/js/activity.js b/addons/mail/static/src/js/activity.js index 5da6abd0eb1..ceb182c6038 100644 --- a/addons/mail/static/src/js/activity.js +++ b/addons/mail/static/src/js/activity.js @@ -32,6 +32,7 @@ function _readActivities(self, ids) { model: 'mail.activity', method: 'read', args: [ids], + context: (self.record && self.record.getContext()) || self.getSession().user_context, }).then(function (activities) { // convert create_date and date_deadline to moments _.each(activities, function (activity) { @@ -108,6 +109,7 @@ var AbstractActivityField = AbstractField.extend({ method: 'action_feedback', args: [[id]], kwargs: {feedback: feedback}, + context: this.record.getContext(), }); }, _scheduleActivity: function (id, previous_activity_type_id, callback) {