diff --git a/addons/crm/test/process/communication_with_customer.yml b/addons/crm/test/process/communication_with_customer.yml index 6633c7544df..92e711ce016 100644 --- a/addons/crm/test/process/communication_with_customer.yml +++ b/addons/crm/test/process/communication_with_customer.yml @@ -23,7 +23,7 @@ !python {model: mail.compose.message}: | lead_ids = self.pool.get('crm.lead').search(cr, uid, [('email_from','=', 'Mr. John Right ')]) context.update({'active_model': 'crm.lead','active_id': lead_ids[0]}) - id = self.create(cr, uid, {'body_text': "Merci à l'intérêt pour notre produit.nous vous contacterons bientôt. Merci"}, context=context) + id = self.create(cr, uid, {'body_text': "Merci à l'intérêt pour notre produit.nous vous contacterons bientôt. Merci", 'email_from': 'sales@mycompany.com'}, context=context) try: self.send_mail(cr, uid, [id], context=context) except: diff --git a/addons/crm/test/process/lead2opportunity2win.yml b/addons/crm/test/process/lead2opportunity2win.yml index 583fb1e7f08..dbc04abae19 100644 --- a/addons/crm/test/process/lead2opportunity2win.yml +++ b/addons/crm/test/process/lead2opportunity2win.yml @@ -6,7 +6,7 @@ !python {model: crm.lead}: | self.case_open(cr, uid, [ref("crm_case_qrecorp0")]) - - I check lead is in open. + I check lead state is "Open". - !assert {model: crm.lead, id: crm.crm_case_qrecorp0, string: Lead in open state}: - state == "open" @@ -24,7 +24,7 @@ assert lead.partner_id.id == ref("base.res_partner_agrolait"), 'Partner missmatch!' assert lead.stage_id.id == ref("stage_lead1"), 'Stage of opportunity is incorrect!' - - Now I start Communication and schedule phonecall with customer. + Now I begin communication and schedule a phone call with the customer. - !python {model: crm.opportunity2phonecall}: | import time @@ -72,7 +72,7 @@ id = self.create(cr, uid, {'user_ids': [ref('base.user_root')], 'section_id': ref('crm.section_sales_department')}, context=context) self.mass_convert(cr, uid, [id], context=context) - - Now i check First lead converted on opportunity. + Now I check First lead converted on opportunity. - !python {model: crm.lead}: | opp = self.browse(cr, uid, ref('crm_case_employee0')) diff --git a/addons/crm_partner_assign/test/process/partner_assign.yml b/addons/crm_partner_assign/test/process/partner_assign.yml index ddccd92167e..1035f7e8862 100644 --- a/addons/crm_partner_assign/test/process/partner_assign.yml +++ b/addons/crm_partner_assign/test/process/partner_assign.yml @@ -6,11 +6,11 @@ !python {model: res.partner}: | self.geo_localize(cr, uid, [ref('base.res_partner_ericdubois0')], context) - - I check Geo Lattitude and Longitude of partner after set + I check Geo Latitude and Longitude of partner after set - !python {model: res.partner}: | partner = self.browse(cr, uid, ref('base.res_partner_ericdubois0')) - assert partner.partner_latitude == 50.4530495 , "Lattitude is wrong" + assert partner.partner_latitude == 50.4530495 , "Latitude is wrong" assert partner.partner_longitude == 3.9693885 , "Longitude is wrong" - I assign nearest partner to opportunity. @@ -18,14 +18,13 @@ !python {model: crm.lead}: | self.assign_partner(cr, uid, [ref('crm.crm_case_abcfuelcounits0')], context=context) - - I check assigned partner of opportunity who is nearest Geo Lattitude and Longitude of opportunity. + I check assigned partner of opportunity who is nearest Geo Latitude and Longitude of opportunity. - !python {model: crm.lead}: | lead = self.browse(cr, uid, ref('crm.crm_case_abcfuelcounits0')) assert lead.partner_assigned_id.id == ref('base.res_partner_ericdubois0') , "Opportuniy is not assigned nearest partner" - assert lead.partner_latitude == 50.8495239 , "Lattitude is wrong" + assert lead.partner_latitude == 50.8495239 , "Latitude is wrong" assert lead.partner_longitude == 4.3667002 , "Longitude is wrong" - - I forward this opportunity to its nearest partner. -