Browse Source
⚡ mail_private New: internal users are flagged automatically
pull/193/head
ommo73
6 years ago
No known key found for this signature in database
GPG Key ID: E7E1F5C23505AFF8
3 changed files with
7 additions and
2 deletions
-
mail_private/__manifest__.py
-
mail_private/doc/changelog.rst
-
mail_private/models.py
|
@ -7,7 +7,7 @@ |
|
|
"category": "Discuss", |
|
|
"category": "Discuss", |
|
|
# "live_test_url": "http://apps.it-projects.info/shop/product/DEMO-URL?version=12.0", |
|
|
# "live_test_url": "http://apps.it-projects.info/shop/product/DEMO-URL?version=12.0", |
|
|
"images": [], |
|
|
"images": [], |
|
|
"version": "12.0.1.0.2", |
|
|
|
|
|
|
|
|
"version": "12.0.1.1.0", |
|
|
"application": False, |
|
|
"application": False, |
|
|
|
|
|
|
|
|
"author": "IT-Projects LLC, Pavel Romanchenko", |
|
|
"author": "IT-Projects LLC, Pavel Romanchenko", |
|
|
|
@ -1,3 +1,8 @@ |
|
|
|
|
|
`1.1.0` |
|
|
|
|
|
------- |
|
|
|
|
|
|
|
|
|
|
|
- **New**: internal users are flagged automatically. |
|
|
|
|
|
|
|
|
`1.0.2` |
|
|
`1.0.2` |
|
|
------- |
|
|
------- |
|
|
|
|
|
|
|
|
|
@ -27,7 +27,7 @@ class MailMessage(models.Model): |
|
|
|
|
|
|
|
|
for recipient in recipient_ids: |
|
|
for recipient in recipient_ids: |
|
|
result.append({ |
|
|
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, |
|
|
'partner_id': recipient.id, |
|
|
'full_name': recipient.name, |
|
|
'full_name': recipient.name, |
|
|
'name': recipient.name, |
|
|
'name': recipient.name, |
|
|