From dc184cc365816af329daddbe59bbaee1f4d86087 Mon Sep 17 00:00:00 2001 From: ommo73 Date: Tue, 21 May 2019 16:05:34 +0500 Subject: [PATCH] :zap: mail_private New: internal users are flagged automatically --- mail_private/__manifest__.py | 2 +- mail_private/doc/changelog.rst | 5 +++++ mail_private/models.py | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/mail_private/__manifest__.py b/mail_private/__manifest__.py index a97ec25..9712286 100644 --- a/mail_private/__manifest__.py +++ b/mail_private/__manifest__.py @@ -7,7 +7,7 @@ "category": "Discuss", # "live_test_url": "http://apps.it-projects.info/shop/product/DEMO-URL?version=12.0", "images": [], - "version": "12.0.1.0.2", + "version": "12.0.1.1.0", "application": False, "author": "IT-Projects LLC, Pavel Romanchenko", diff --git a/mail_private/doc/changelog.rst b/mail_private/doc/changelog.rst index 20569d5..4a5f5f0 100644 --- a/mail_private/doc/changelog.rst +++ b/mail_private/doc/changelog.rst @@ -1,3 +1,8 @@ +`1.1.0` +------- + +- **New**: internal users are flagged automatically. + `1.0.2` ------- diff --git a/mail_private/models.py b/mail_private/models.py index 4ae1b91..4b1c97a 100644 --- a/mail_private/models.py +++ b/mail_private/models.py @@ -27,7 +27,7 @@ class MailMessage(models.Model): for recipient in recipient_ids: result.append({ - 'checked': len(recipient.user_ids) > 0, + 'checked': recipient.user_ids.id and not any(recipient.user_ids.mapped('share')), 'partner_id': recipient.id, 'full_name': recipient.name, 'name': recipient.name,