Actually this part of the code 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):
mail = record['mail']%{'login': user_email.login, \
'passwd':
user_email.password, 'name': addr.name}
if record['send_mail_existing']:
mail_message.schedule_with_attach(cr, uid,
record['mail_from'], [addr.email],\
record['mail_subject_existing'], mail, context=context)
res_user+= "- %s (Login: %s, Password: %s)\n" % \
(user_email.name, user_email.login,
user_email.password)
continue
should be removed that's it.
But still there is a problem in this code
we have :
for :
if:
continue
if:
continue
else:
continue
then some code that will be never called
--
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.
_______________________________________________
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