diff --git a/mail_sent/__manifest__.py b/mail_sent/__manifest__.py index 1e9ffda..006549b 100644 --- a/mail_sent/__manifest__.py +++ b/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", diff --git a/mail_sent/doc/changelog.rst b/mail_sent/doc/changelog.rst index 142f071..e2ba0ac 100644 --- a/mail_sent/doc/changelog.rst +++ b/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 diff --git a/mail_sent/doc/index.rst b/mail_sent/doc/index.rst new file mode 100644 index 0000000..f736bcb --- /dev/null +++ b/mail_sent/doc/index.rst @@ -0,0 +1,8 @@ +========= + Sentbox +========= + +Installation +============ + +* `Install `__ this module in a usual way diff --git a/mail_sent/models.py b/mail_sent/models.py index 6d1ef14..2849f19 100644 --- a/mail_sent/models.py +++ b/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