[IMP] improved code.

bzr revid: tpa@tinyerp.com-20120515062013-nsg3g3kcgydpcj80
This commit is contained in:
Turkesh Patel (Open ERP)
2012-05-15 11:50:13 +05:30
parent 9ab5f241f8
commit ae1d0c02a2
3 changed files with 6 additions and 9 deletions
+2 -3
View File
@@ -104,9 +104,8 @@ class crm_claim(crm.crm_case, osv.osv):
return obj_id
def create_send_note(self, cr, uid, ids, context=None):
for id in ids:
msg = '%s has been <b>created</b>.' % (self.case_get_note_msg_prefix(cr, uid, id, context=context))
self.message_append_note(cr, uid, [id], body=msg, context=context)
msg = '%s has been <b>created</b>.' % (self.case_get_note_msg_prefix(cr, uid, ids, context=context))
self.message_append_note(cr, uid, ids, body=msg, context=context)
return True
def onchange_partner_id(self, cr, uid, ids, part, email=False):
+2 -3
View File
@@ -117,9 +117,8 @@ class crm_fundraising(crm.crm_case, osv.osv):
return obj_id
def create_send_note(self, cr, uid, ids, context=None):
for id in ids:
msg = '%s has been <b>created</b>.' % (self.case_get_note_msg_prefix(cr, uid, id, context=context))
self.message_append_note(cr, uid, [id], body=msg, context=context)
msg = '%s has been <b>created</b>.' % (self.case_get_note_msg_prefix(cr, uid, ids, context=context))
self.message_append_note(cr, uid, ids, body=msg, context=context)
return True
+2 -3
View File
@@ -101,9 +101,8 @@ class crm_helpdesk(crm.crm_case, osv.osv):
return obj_id
def create_send_note(self, cr, uid, ids, context=None):
for id in ids:
msg = '%s has been <b>created</b>.' % (self.case_get_note_msg_prefix(cr, uid, id, context=context))
self.message_append_note(cr, uid, [id], body=msg, context=context)
msg = '%s has been <b>created</b>.' % (self.case_get_note_msg_prefix(cr, uid, ids, context=context))
self.message_append_note(cr, uid, ids, body=msg, context=context)
return True
def message_new(self, cr, uid, msg_dict, custom_values=None, context=None):