From 3284fe1f4a73646c769b7dac8fb7fbbdeb1b02a6 Mon Sep 17 00:00:00 2001 From: "aag (OpenERP)" Date: Tue, 2 Nov 2010 12:50:19 +0530 Subject: [PATCH] [IMP]client close when account is not Approved is improved bzr revid: aag@tinyerp.co.in-20101102072019-k7o1mhgss3oda9jg --- addons/email_template/email_template_account.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/email_template/email_template_account.py b/addons/email_template/email_template_account.py index 24b7958276d..ec8d6446603 100644 --- a/addons/email_template/email_template_account.py +++ b/addons/email_template/email_template_account.py @@ -372,7 +372,7 @@ unless it is already specified in the From Email, e.g: John Doe ", return True else: logger.notifyChannel(_("Email Template"), netsvc.LOG_ERROR, _("Mail from Account %s failed. Probable Reason:Account not approved") % id) - return {'error_msg':"Mail from Account %s failed. Probable Reason:Account not approved"% id} + return {'nodestroy':True,'error_msg':"Mail from Account %s failed. Probable Reason:Account not approved"% id} def extracttime(self, time_as_string): """