Browse Source

mail_private New: internal users are flagged automatically

pull/193/head
ommo73 6 years ago
parent
commit
dc184cc365
No known key found for this signature in database GPG Key ID: E7E1F5C23505AFF8
  1. 2
      mail_private/__manifest__.py
  2. 5
      mail_private/doc/changelog.rst
  3. 2
      mail_private/models.py

2
mail_private/__manifest__.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",

5
mail_private/doc/changelog.rst

@ -1,3 +1,8 @@
`1.1.0`
-------
- **New**: internal users are flagged automatically.
`1.0.2` `1.0.2`
------- -------

2
mail_private/models.py

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

Loading…
Cancel
Save