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
parent
commit
c018e3a69e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      mail_sent/__manifest__.py
  2. 5
      mail_sent/doc/changelog.rst
  3. 8
      mail_sent/doc/index.rst
  4. 4
      mail_sent/models.py

2
mail_sent/__manifest__.py

@ -4,7 +4,7 @@
"summary": """Quick way to find sent messages""",
"category": "Discuss",
"images": ['images/menu.png'],
"version": "1.0.4",
"version": "10.0.1.1.0",
"author": "IT-Projects LLC, Ivan Yelizariev, Pavel Romanchenko",
"support": "apps@it-projects.info",

5
mail_sent/doc/changelog.rst

@ -1,3 +1,8 @@
`1.1.0`
-------
- **New:** Shows messages from channels
`1.0.4`
-------
- **FIX:** didn't work for non-admin users

8
mail_sent/doc/index.rst

@ -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

4
mail_sent/models.py

@ -14,7 +14,9 @@ class MailMessage(models.Model):
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

Loading…
Cancel
Save