[MERGE]:fixed The email address of the customer is not assigned by default in the compose window in the 'To:' section

bzr revid: apa@tinyerp.com-20121030084644-uchchxbfjt7cuezd
This commit is contained in:
Amit Patel
2012-10-30 14:16:44 +05:30
+5 -1
View File
@@ -161,9 +161,13 @@ class mail_notification(osv.Model):
if signature:
body_html = tools.append_content_to_html(body_html, signature)
partner_email = []
for partner in msg.partner_ids:
if partner.email:partner_email.append(partner.email)
mail_values = {
'mail_message_id': msg.id,
'email_to': [],
'email_to': partner_email,
'auto_delete': True,
'body_html': body_html,
'state': 'outgoing',