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
No known key found for this signature in database
GPG Key ID: D1FDACDF9B83578
1 changed files with
5 additions and
0 deletions
-
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) |
|
|
|
|
|
|
|
|