Kuldeep Joshi(OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-bug-869991-kjo into
lp:openobject-addons.
Requested reviews:
Bhumika (OpenERP) (sbh-openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-869991-kjo/+merge/78923
Remove the address_id and Send the Invitation if User has E-mail address
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-869991-kjo/+merge/78923
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-bug-869991-kjo.
=== modified file 'survey/wizard/survey_send_invitation.py'
--- survey/wizard/survey_send_invitation.py 2011-08-22 17:16:59 +0000
+++ survey/wizard/survey_send_invitation.py 2011-10-11 08:33:20 +0000
@@ -157,9 +157,8 @@
existing+= "- %s (Login: %s, Password: %s)\n" % (user.name, addr.email, \
user.password)
continue
- user_id = user_ref.search(cr, uid, [('address_id', '=', addr.id)])
- if user_id:
- for user_email in user_ref.browse(cr, uid, user_id):
+ if partner.user_id.user_email:
+ for user_email in user_ref.browse(cr, uid, [partner.user_id.id]):
mail = record['mail']%{'login': user_email.login, \
'passwd': user_email.password, 'name': addr.name}
if record['send_mail_existing']:
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp