[IMP] improved code for prefix in string

bzr revid: tpa@tinyerp.com-20120430104320-prnyyct16eh2c0p8
This commit is contained in:
Turkesh Patel (Open ERP) 2012-04-30 16:13:20 +05:30
parent a97e8d09c7
commit 09267cd091
2 changed files with 4 additions and 1 deletions

View File

@ -435,7 +435,7 @@ class crm_case(crm_base):
return True
def case_get_note_msg_prefix(self, cr, uid, id, context=None):
return 'Case'
return ''
def case_open(self, cr, uid, ids, context=None):
"""Opens Case"""

View File

@ -92,6 +92,9 @@ class crm_helpdesk(crm.crm_case, osv.osv):
'priority': lambda *a: crm.AVAILABLE_PRIORITIES[2][0],
}
def case_get_note_msg_prefix(self, cr, uid, id, context=None):
return 'Case'
def message_new(self, cr, uid, msg_dict, custom_values=None, context=None):
"""Automatically called when new email message arrives"""
res_id = super(crm_helpdesk,self).message_new(cr, uid, msg_dict, custom_values=custom_values, context=context)