From ad9fb2b6cb2581de281a477a528bfab71f473d0e Mon Sep 17 00:00:00 2001 From: "ron@tinyerp.com" <> Date: Fri, 4 Nov 2011 11:36:42 +0530 Subject: [PATCH] [IMP] crm_helpdesk: Added case for update message for helpdesk record bzr revid: ron@tinyerp.com-20111104060642-hnckj64pz42y9w2m --- addons/crm_helpdesk/test/process/help-desk.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/addons/crm_helpdesk/test/process/help-desk.yml b/addons/crm_helpdesk/test/process/help-desk.yml index 353dbd6aad2..320bd61c2af 100644 --- a/addons/crm_helpdesk/test/process/help-desk.yml +++ b/addons/crm_helpdesk/test/process/help-desk.yml @@ -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 ')]) + try: + self.message_update(cr, uid, question_ids, {'subject': 'Link of product', 'body_text': 'www.openerp.com'}) + except: + pass