[FIX] crm_lead yml tests: fixed some tests, propagating changes in lead data.

bzr revid: tde@openerp.com-20120523091940-6lxdk29488lwp9o5
This commit is contained in:
Thibault Delavallée
2012-05-23 11:19:40 +02:00
parent 05d3c056b7
commit 23d8090ff9
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -28,7 +28,7 @@
-
!python {model: crm.lead}: |
lead = self.browse(cr, uid, ref('crm.crm_case_itisatelesalescampaign0'))
assert lead.stage_id.id == ref('crm.stage_lead2'), "Opportunity should be 'New'."
assert lead.stage_id.id == ref('crm.stage_lead2'), "Opportunity stage should be 'Qualification'."
assert lead.state == 'open', "Opportunity should be in 'open' state."
-
I escalate the lead to parent team.
@@ -51,5 +51,5 @@
!python {model: crm.lead}: |
lead = self.browse(cr, uid, ref('crm_case_itisatelesalescampaign0'))
assert lead.stage_id.id == ref('crm.stage_lead6'), "Stage should be 'Lost'."
assert lead.state == 'done', "Opportunity is not in 'done' state."
assert lead.state == 'cancel', "Opportunity is not in 'cancel' state."
assert lead.probability == 0.0, 'Opportunity probability is wrong and should be 0.0.'
@@ -69,9 +69,9 @@
-
!python {model: crm.lead}: |
lead = self.browse(cr, uid, ref('crm_case_qrecorp0'))
assert lead.state == 'done', 'Opportunity is not in done state!'
assert lead.stage_id.name == 'Won', ' Stage of Opportunity is not win!'
assert lead.probability == 100.0, 'probability revenue should not be 100.0!'
assert lead.stage_id.id == ref('crm.stage_lead5'), "Opportunity stage should be 'Won'."
assert lead.state == 'done', "Opportunity is not in 'done' state!"
assert lead.probability == 100.0, "Revenue probability should be 100.0!"
-
I convert mass lead into opportunity customer.
-