*modified remind_user function in order to take the address from the section (reply_to field) in place that the address mail on the res_partner_address from the user

responsible

bzr revid: qdp@tinyerp.com-20081006153037-kf2e9tt5tzxejrsy
This commit is contained in:
qdp 2008-10-06 17:30:37 +02:00
parent 97a5771d3f
commit 79100b55ec
1 changed files with 2 additions and 4 deletions

View File

@ -564,11 +564,9 @@ class crm_case(osv.osv):
def remind_user(self, cr, uid, ids, context={}, attach=False,
destination=True):
for case in self.browse(cr, uid, ids):
if case.user_id and case.user_id.address_id \
and case.user_id.address_id.email \
and case.email_from:
if case.section_id.reply_to and case.email_from:
src = case.email_from
dest = case.user_id.address_id.email
dest = case.section_id.reply_to
body = case.email_last or case.description
if not destination:
src,dest = dest,src