From ce1f0723291212e47758ae5c1c970a407dbff86a Mon Sep 17 00:00:00 2001 From: KolushovAlexandr Date: Tue, 23 Apr 2019 17:21:32 +0500 Subject: [PATCH 1/2] :zap: shows messages from channels --- mail_sent/__manifest__.py | 2 +- mail_sent/doc/changelog.rst | 5 +++++ mail_sent/models.py | 4 +++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/mail_sent/__manifest__.py b/mail_sent/__manifest__.py index 1e9ffda3..163954d1 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": "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 142f0712..e2ba0ac4 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/models.py b/mail_sent/models.py index 6d1ef14a..2849f192 100644 --- a/mail_sent/models.py +++ b/mail_sent/models.py @@ -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 From a5c8daccf89490d8bba44e6db12fbda924ca282b Mon Sep 17 00:00:00 2001 From: KolushovAlexandr Date: Tue, 23 Apr 2019 18:02:18 +0500 Subject: [PATCH 2/2] :book: index.rst --- mail_sent/__manifest__.py | 2 +- mail_sent/doc/index.rst | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 mail_sent/doc/index.rst diff --git a/mail_sent/__manifest__.py b/mail_sent/__manifest__.py index 163954d1..006549b1 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.1.0", + "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/index.rst b/mail_sent/doc/index.rst new file mode 100644 index 00000000..f736bcbb --- /dev/null +++ b/mail_sent/doc/index.rst @@ -0,0 +1,8 @@ +========= + Sentbox +========= + +Installation +============ + +* `Install `__ this module in a usual way