Browse Source
⚡ adding sent messages to sent channel without page refreshing
pull/229/head
KolushovAlexandr
5 years ago
No known key found for this signature in database
GPG Key ID: C3E04B793421FD2
3 changed files with
7 additions and
3 deletions
-
mail_sent/__manifest__.py
-
mail_sent/doc/changelog.rst
-
mail_sent/static/src/js/sent.js
|
@ -6,7 +6,7 @@ |
|
|
"summary": """Quick way to find sent messages""", |
|
|
"summary": """Quick way to find sent messages""", |
|
|
"category": "Discuss", |
|
|
"category": "Discuss", |
|
|
"images": ['images/menu.png'], |
|
|
"images": ['images/menu.png'], |
|
|
"version": "12.0.1.1.1", |
|
|
|
|
|
|
|
|
"version": "12.0.1.2.0", |
|
|
|
|
|
|
|
|
"author": "IT-Projects LLC, Ivan Yelizariev, Pavel Romanchenko", |
|
|
"author": "IT-Projects LLC, Ivan Yelizariev, Pavel Romanchenko", |
|
|
"support": "apps@it-projects.info", |
|
|
"support": "apps@it-projects.info", |
|
|
|
@ -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` |
|
|
`1.1.0` |
|
|
------- |
|
|
------- |
|
|
|
@ -35,6 +35,9 @@ Manager.include({ |
|
|
if (_.without(new_channels, ...current_threads).length) { |
|
|
if (_.without(new_channels, ...current_threads).length) { |
|
|
message._threadIDs = _.union(new_channels, current_threads); |
|
|
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); |
|
|
return this._super(data, options); |
|
|
}, |
|
|
}, |
|
|