Skip to content

Commit

Permalink
⚡ adding sent messages to sent channel without page refreshing
Browse files Browse the repository at this point in the history
  • Loading branch information
KolushovAlexandr committed Oct 9, 2019
1 parent 4c474ee commit bd5fdd8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mail_sent/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"summary": """Quick way to find sent messages""",
"category": "Discuss",
"images": ['images/menu.png'],
"version": "12.0.1.1.1",
"version": "12.0.1.2.0",

"author": "IT-Projects LLC, Ivan Yelizariev, Pavel Romanchenko",
"support": "[email protected]",
Expand Down
5 changes: 3 additions & 2 deletions mail_sent/doc/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
`1.1.1`
`1.2.0`
-------

- **Imp:** Not all channel messages are shown if page was refreshed on a channel screen
- **Imp:** Messages sent in the discuss page are automatically added to sent channel
- **Fix:** Not all channel messages are shown if page was refreshed on a channel screen

`1.1.0`
-------
Expand Down
3 changes: 3 additions & 0 deletions mail_sent/static/src/js/sent.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ Manager.include({
if (_.without(new_channels, ...current_threads).length) {
message._threadIDs = _.union(new_channels, current_threads);
}
} else if (data.author_id && data.author_id[0] && odoo.session_info.partner_id &&
data.author_id[0] === odoo.session_info.partner_id) {
data.channel_ids.push('mailbox_channel_sent');
}
return this._super(data, options);
},
Expand Down

0 comments on commit bd5fdd8

Please sign in to comment.