From e9e229568be13dbc9d56f3057e81de7824ff6aec Mon Sep 17 00:00:00 2001 From: "YSA (Openerp)" Date: Thu, 3 Feb 2011 18:56:17 +0530 Subject: [PATCH] [IMP] email_template :- generate template to message then donot send the mail bug set state waiting and put in outbox folder. bzr revid: ysa@tinyerp.com-20110203132617-sx55sje74w765qsx --- addons/email_template/email_template.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/addons/email_template/email_template.py b/addons/email_template/email_template.py index d2e63ff960c..c4ce32e9a87 100644 --- a/addons/email_template/email_template.py +++ b/addons/email_template/email_template.py @@ -586,10 +586,7 @@ This is useful for CRM leads for example"), ) if template.report_template or template.attachment_ids: self.generate_attach_reports(cursor, user, template, record_id, mail, context ) - self.pool.get('email.message').write(cursor, user, mailbox_id, {'folder':'outbox'}, context=context) - # TODO : manage return value of all the records - result = self.pool.get('email.message').process_email_queue(cursor, user, [mailbox_id], context) - + mailbox_obj.write(cursor, user, mailbox_id, {'folder':'outbox', 'state': 'waiting'}, context=context) return result email_template()