[IMP] crm_helpdesk: Added case for update message for helpdesk record

bzr revid: ron@tinyerp.com-20111104060642-hnckj64pz42y9w2m
This commit is contained in:
ron@tinyerp.com 2011-11-04 11:36:42 +05:30
parent 52281da87a
commit ad9fb2b6cb
1 changed files with 9 additions and 0 deletions

View File

@ -17,5 +17,14 @@
assert question_ids and len(question_ids), "Question is not created after getting request"
question = self.browse(cr, uid, question_ids[0], context=context)
assert question.name == tools.ustr("Where is download link of user manual of your product ? "), "Subject does not match"
-
Now I Update message according to provide services.
-
!python {model: crm.helpdesk}: |
question_ids = self.search(cr, uid, [('email_from','=', 'Mr. John Right <info@customer.com>')])
try:
self.message_update(cr, uid, question_ids, {'subject': 'Link of product', 'body_text': 'www.openerp.com'})
except:
pass