From 2f3216acc78677743d6c58b12ddb755a0e7065f1 Mon Sep 17 00:00:00 2001 From: ArtyomLosev Date: Thu, 21 Sep 2017 15:48:05 +0500 Subject: [PATCH] [FIX] full composer recipients fix --- mail_private/static/src/js/mail_private.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mail_private/static/src/js/mail_private.js b/mail_private/static/src/js/mail_private.js index 0476815..d311b3c 100644 --- a/mail_private/static/src/js/mail_private.js +++ b/mail_private/static/src/js/mail_private.js @@ -137,10 +137,13 @@ MailComposer.include({ default_attachment_ids: _.pluck(self.get('attachment_ids'), 'id'), default_partner_ids: partner_ids, default_is_log: self.options.is_log, - default_is_private: self.options && self.options.is_private, mail_post_autofollow: true, }; + if (self.options && self.options.is_private) { + context.default_is_private = self.options.is_private; + } + if (self.context.default_model && self.context.default_res_id) { context.default_model = self.context.default_model; context.default_res_id = self.context.default_res_id;