Browse Source

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

pull/183/head
Ivan Yelizariev 10 years ago
committed by Ivan Yelizariev
parent
commit
2394290297
  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)
if n == 'im_and_email':
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:
email_pids.append(partner.id)

Loading…
Cancel
Save