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. -