From: ajay javiya (OpenERP) Date: Thu, 22 Aug 2013 13:04:25 +0000 (+0530) Subject: [IMP]: Test case X-Git-Tag: InsPy_master01~175^2~14^2~6 X-Git-Url: http://git.inspyration.org/?a=commitdiff_plain;h=278e67bdfeaf2ed8637f0bc5674cc38898e7c84f;p=odoo%2Fodoo.git [IMP]: Test case bzr revid: aja@tinyerp.com-20130822130425-gztp84k79rpzy7aa --- diff --git a/addons/crm/test/lead2opportunity2win.yml b/addons/crm/test/lead2opportunity2win.yml index f4289c5..b93578f 100644 --- a/addons/crm/test/lead2opportunity2win.yml +++ b/addons/crm/test/lead2opportunity2win.yml @@ -26,19 +26,13 @@ - 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. - !python {model: crm.lead}: |