[FIX]: fix a problem for the email command "Set-"
bzr revid: mga@tinyerp.com-20100419205701-1b0lgr70nuwmkk6w
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user