Skip to content

Commit

Permalink
⚡1️⃣0️⃣ mail_private **New:** added ability to select channels for pr…
Browse files Browse the repository at this point in the history
…ivate message sending
  • Loading branch information
Ommo73 committed Mar 20, 2019
1 parent e59ff2f commit 1c48b2e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions mail_private/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,11 @@ def _notify(self, force_send=False, send_after_commit=True, user_signature=True)
else:
self._notify_mail_private(force_send, send_after_commit, user_signature)


@api.multi
def _notify_mail_private(self, force_send=False, send_after_commit=True, user_signature=True):
""" Add the related record followers to the destination partner_ids if is not a private message.
Call mail_notification.notify to manage the email sending
"""
group_user = self.env.ref('base.group_user')
# have a sudoed copy to manipulate partners (public can go here with
# website modules like forum / blog / ...
self_sudo = self.sudo()
Expand Down
4 changes: 2 additions & 2 deletions mail_private/static/src/js/mail_private.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ Chatter.include({
self.result = {};
return new Model(this.context.default_model).query(
['message_follower_ids', 'partner_id']).filter(
[['id', '=', self.context.default_res_id]]).all().
then(function (thread) {
[['id', '=', self.context.default_res_id]]).all()
.then(function (thread) {
var follower_ids = thread[0].message_follower_ids;
self.result[self.context.default_res_id] = [];
self.customer = thread[0].partner_id;
Expand Down

0 comments on commit 1c48b2e

Please sign in to comment.