diff --git a/addons/crm/test/process/lead2opportunity2win.yml b/addons/crm/test/process/lead2opportunity2win.yml index dbc04abae19..30577862270 100644 --- a/addons/crm/test/process/lead2opportunity2win.yml +++ b/addons/crm/test/process/lead2opportunity2win.yml @@ -5,11 +5,21 @@ - !python {model: crm.lead}: | self.case_open(cr, uid, [ref("crm_case_qrecorp0")]) + context.update({'active_model': 'crm.lead','active_ids': [ref("crm_case_qrecorp0")]}) - I check lead state is "Open". - !assert {model: crm.lead, id: crm.crm_case_qrecorp0, string: Lead in open state}: - state == "open" +- + I create record for Partner. +- + !record {model: crm.lead2partner, id: crm_lead2partner_id1 }: +- + I create partner from lead. +- + !python {model: crm.lead2partner}: | + self.make_partner(cr, uid ,[ref("crm_lead2partner_id1")], context=context) - I convert lead into opportunity for exiting customer. -