Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

⚡ shows messages from channels #186

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mail_sent/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"summary": """Quick way to find sent messages""",
"category": "Discuss",
"images": ['images/menu.png'],
"version": "1.0.4",
"version": "1.1.0",

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

- **New:** Shows messages from channels

`1.0.4`
-------
- **FIX:** didn't work for non-admin users
Expand Down
4 changes: 3 additions & 1 deletion mail_sent/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ def _compute_sent(self):
sent = len(r_sudo.partner_ids) > 1 \
or len(r_sudo.partner_ids) == 1 \
and r_sudo.author_id \
and r_sudo.partner_ids[0].id != r_sudo.author_id.id
and r_sudo.partner_ids[0].id != r_sudo.author_id.id \
or r_sudo.model == 'mail.channel' \
and r_sudo.res_id
r.sent = sent

@api.multi
Expand Down