[ADD]CRM:optimize the code

bzr revid: aag@tinyerp.com-20111215115404-rimjbde55cp926xy
This commit is contained in:
Atik Agewan (OpenERP)
2011-12-15 17:24:04 +05:30
parent 8a5f52a888
commit 2e522819e6
@@ -51,7 +51,7 @@
-
I check that the phone call is in 'Not Held' state.
-
!assert {model: crm.phonecall, id: crm.crm_case_phone06, string: Phone call Helded}:
!assert {model: crm.phonecall, id: crm.crm_case_phone06, string: Phone call held.}:
- state == "pending"
-
I Cancelled the Phone call.
@@ -61,7 +61,7 @@
-
I check that the phone call is in 'Cancelled' state.
-
!assert {model: crm.phonecall, id: crm.crm_case_phone06, string: Phone call Helded}:
!assert {model: crm.phonecall, id: crm.crm_case_phone06, string: Phone call held.}:
- state == "cancel"
-
I Reset the Phone call.
@@ -71,7 +71,7 @@
-
I check that the phone call is Reset or Not
-
!assert {model: crm.phonecall, id: crm.crm_case_phone06, string: Phone call Helded}:
!assert {model: crm.phonecall, id: crm.crm_case_phone06, string: Phone call held.}:
- state == "open"
-
I setting Phone call to Held (Done).
@@ -81,5 +81,5 @@
-
I check that the phone call is in 'Held' state.
-
!assert {model: crm.phonecall, id: crm.crm_case_phone06, string: Phone call Helded}:
!assert {model: crm.phonecall, id: crm.crm_case_phone06, string: Phone call held.}:
- state == "done"