[IMP]client close when account is not Approved is improved

bzr revid: aag@tinyerp.co.in-20101102072019-k7o1mhgss3oda9jg
This commit is contained in:
aag (OpenERP)
2010-11-02 12:50:19 +05:30
parent 971b590f6d
commit 3284fe1f4a
@@ -372,7 +372,7 @@ unless it is already specified in the From Email, e.g: John Doe <john@doe.com>",
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):
"""