Kirti Savalia(OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/6.0-opw-383828-ksa into 
lp:openobject-addons/6.0.

Requested reviews:
  Naresh(OpenERP) (nch-openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-383828-ksa/+merge/94120

Hello,

when not get the address from config file at that time take the email address 
from the user.
This fix solve the issue.

Thanks
KSA
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-383828-ksa/+merge/94120
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/6.0-opw-383828-ksa.
=== modified file 'hr_evaluation/wizard/hr_evaluation_mail.py'
--- hr_evaluation/wizard/hr_evaluation_mail.py	2011-01-14 00:11:01 +0000
+++ hr_evaluation/wizard/hr_evaluation_mail.py	2012-02-22 10:59:20 +0000
@@ -34,7 +34,7 @@
         current_interview = hr_evaluation_interview_obj.browse(cr, uid, evaluation_data.get('evaluation_id'))
         if current_interview.state == "waiting_answer" and current_interview.user_to_review_id.work_email :
             msg = " Hello %s, \n\n Kindly post your response for '%s' survey interview. \n\n Thanks,"  %(current_interview.user_to_review_id.name, current_interview.survey_id.title)
-            tools.email_send(tools.config['email_from'], [current_interview.user_to_review_id.work_email],\
+            tools.email_send(current_interview.user_id.user_email or tools.config['email_from'], [current_interview.user_to_review_id.work_email],\
                                           'Reminder to fill up Survey', msg)
         return {'type': 'ir.actions.act_window_close'}
 

_______________________________________________
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

Reply via email to