[FIX]: fix a problem for the email command "Set-"

bzr revid: mga@tinyerp.com-20100419205701-1b0lgr70nuwmkk6w
This commit is contained in:
Mantavya Gajjar
2010-04-20 02:27:01 +05:30
parent 1ff23a26ba
commit f2ef7952dc
2 changed files with 3 additions and 6 deletions
+3 -1
View File
@@ -32,6 +32,8 @@ import tools
from osv import fields,osv,orm
from osv.orm import except_orm
from tools import command_re
class crm_cases(osv.osv):
""" crm cases """
@@ -39,7 +41,7 @@ class crm_cases(osv.osv):
_inherit = "crm.case"
def message_new(self, cr, uid, msg, context):
"""
"""
Automatically calls when new email message arrives
@param self: The object pointer
-5
View File
@@ -132,11 +132,6 @@ class crm_send_new_email(osv.osv_memory):
getattr(case_pool, act)(cr, uid, [case.id])
cr.commit()
# Commented because form does not close due to raise
# raise osv.except_osv(_('Email!'), ("Email Successfully Sent"))
# else:
# raise osv.except_osv(_('Warning!'), _("Email not sent !"))
return {}
def default_get(self, cr, uid, fields, context=None):