[IMP]: crm: All changes done on lead2opportunity.yml
1) string improved from lead to opportunity when lead has been qualified 2) checked probability after opportunity had won bzr revid: ron@tinyerp.com-20111013051232-k9oih94g1fvmdhbh
This commit is contained in:
parent
371ad07f80
commit
08a288ecea
|
@ -15,22 +15,23 @@
|
|||
!assert {model: crm.lead, id: crm.crm_case_qrecorp0, string: Lead is not converted on opportunity}:
|
||||
- type == 'opportunity'
|
||||
-
|
||||
Finally, i won this lead, so i will close this lead.
|
||||
Finally, i won this opportunity, so i will close this lead.
|
||||
-
|
||||
!python {model: crm.lead}: |
|
||||
self.case_mark_won(cr, uid, [ref("crm_case_qrecorp0")])
|
||||
-
|
||||
In order to test lead, it is close or not.
|
||||
In order to test opportunity, it is close or not.
|
||||
-
|
||||
!assert {model: crm.lead, id: crm.crm_case_qrecorp0, string: Lead in done state}:
|
||||
- state == "done"
|
||||
-
|
||||
After won this lead probability is 100.
|
||||
-
|
||||
!assert {model: crm.lead, id: crm.crm_case_qrecorp0, string: Probability is equal to 100}:
|
||||
- probability == 100.0
|
||||
-
|
||||
In order to test stage of opportunity after win, i will test stage of opportunity.
|
||||
-
|
||||
!assert {model: crm.lead, id: crm.crm_case_qrecorp0, string: stage of opportunity is win}:
|
||||
- stage_id.name == "Won"
|
||||
-
|
||||
After won the opportunity, i will test probability is 100.
|
||||
-
|
||||
!assert {model: crm.lead, id: crm.crm_case_qrecorp0, string: Probability is equal to 100}:
|
||||
- probability == 100.0
|
||||
|
Loading…
Reference in New Issue