Browse Source
Merge pull request #186 from KolushovAlexandr/10.0-mail_sent-add_channels
⚡ shows messages from channels
pull/195/head
Ivan Yelizariev
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with
17 additions and
2 deletions
-
mail_sent/__manifest__.py
-
mail_sent/doc/changelog.rst
-
mail_sent/doc/index.rst
-
mail_sent/models.py
|
@ -4,7 +4,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": "1.0.4", |
|
|
|
|
|
|
|
|
"version": "10.0.1.1.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,3 +1,8 @@ |
|
|
|
|
|
`1.1.0` |
|
|
|
|
|
------- |
|
|
|
|
|
|
|
|
|
|
|
- **New:** Shows messages from channels |
|
|
|
|
|
|
|
|
`1.0.4` |
|
|
`1.0.4` |
|
|
------- |
|
|
------- |
|
|
- **FIX:** didn't work for non-admin users |
|
|
- **FIX:** didn't work for non-admin users |
|
|
|
@ -0,0 +1,8 @@ |
|
|
|
|
|
========= |
|
|
|
|
|
Sentbox |
|
|
|
|
|
========= |
|
|
|
|
|
|
|
|
|
|
|
Installation |
|
|
|
|
|
============ |
|
|
|
|
|
|
|
|
|
|
|
* `Install <https://odoo-development.readthedocs.io/en/latest/odoo/usage/install-module.html>`__ this module in a usual way |
|
@ -14,7 +14,9 @@ class MailMessage(models.Model): |
|
|
sent = len(r_sudo.partner_ids) > 1 \ |
|
|
sent = len(r_sudo.partner_ids) > 1 \ |
|
|
or len(r_sudo.partner_ids) == 1 \ |
|
|
or len(r_sudo.partner_ids) == 1 \ |
|
|
and r_sudo.author_id \ |
|
|
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 |
|
|
r.sent = sent |
|
|
|
|
|
|
|
|
@api.multi |
|
|
@api.multi |
|
|