Browse Source

send notification to partner, that doesn't have odoo account, but has "IM ..." value in Notifications settings

pull/117/head
Ivan Yelizariev 10 years ago
committed by Ildar Nasyrov
parent
commit
56330b886b
No known key found for this signature in database GPG Key ID: D1FDACDF9B83578
  1. 5
      im_notif/im_notif_models.py

5
im_notif/im_notif_models.py

@ -62,6 +62,11 @@ class mail_notification(models.Model):
im_uids.append(user.id) im_uids.append(user.id)
if n == 'im_and_email': if n == 'im_and_email':
send_email = True send_email = True
if not len(partner.user_ids):
# send notification to partner, that doesn't have odoo account, but has "im*" value in notify_email
send_email = True
if send_email: if send_email:
email_pids.append(partner.id) email_pids.append(partner.id)

Loading…
Cancel
Save