From 278e67bdfeaf2ed8637f0bc5674cc38898e7c84f Mon Sep 17 00:00:00 2001 From: "ajay javiya (OpenERP)" Date: Thu, 22 Aug 2013 18:34:25 +0530 Subject: [PATCH] [IMP]: Test case bzr revid: aja@tinyerp.com-20130822130425-gztp84k79rpzy7aa --- addons/crm/test/lead2opportunity2win.yml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/addons/crm/test/lead2opportunity2win.yml b/addons/crm/test/lead2opportunity2win.yml index f4289c5f8aa..b93578fbede 100644 --- a/addons/crm/test/lead2opportunity2win.yml +++ b/addons/crm/test/lead2opportunity2win.yml @@ -26,18 +26,12 @@ - Now I begin communication and schedule a phone call with the customer. - - !python {model: crm.phonecall}: | + !python {model: crm.phonecall2phonecall}: | import time - context.update({'active_model': 'crm.lead', 'active_ids': [ref('crm_case_3')]}) + context.update({'active_model': 'crm.lead', 'active_ids': [ref('crm_case_3')],'active_id': ref('crm_case_3')}) call_id = self.create(cr, uid, {'date': time.strftime('%Y-%m-%d %H:%M:%S'), 'name': "Bonjour M. Jean, Comment allez-vous? J'ai bien reçu votre demande, pourrions-nous en parler quelques minutes?"}, context=context) self.action_schedule(cr, uid, [call_id], context=context) -- - I check that phonecall is scheduled for that opportunity. -- - !python {model: crm.phonecall}: | - ids = self.search(cr, uid, [('opportunity_id', '=', ref('crm_case_3'))]) - assert len(ids), 'Phonecall is not scheduled' - Now I schedule meeting with customer. -