From 56330b886b3e2711edf49849d3abb7895a1616dc Mon Sep 17 00:00:00 2001 From: Ivan Yelizariev Date: Thu, 19 Mar 2015 14:42:00 +0200 Subject: [PATCH] send notification to partner, that doesn't have odoo account, but has "IM ..." value in Notifications settings --- im_notif/im_notif_models.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/im_notif/im_notif_models.py b/im_notif/im_notif_models.py index e1cff13..fa8ba72 100644 --- a/im_notif/im_notif_models.py +++ b/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)