[REF, MV]: Todo code in lead2opportunity.yml and move test_crm_segmentation.yml to crm_profile
bzr revid: ron@tinyerp.com-20111014115612-wze2p8dcnh6gvopg
This commit is contained in:
@@ -127,7 +127,6 @@ Creates a dashboard for CRM that includes:
|
||||
'test/ui/lead_form.yml',
|
||||
'test/process/phonecall2opportunity.yml',
|
||||
'test/test_crm_recurrent_meeting_case2.yml',
|
||||
'test/test_crm_segmentation.yml',
|
||||
],
|
||||
'installable': True,
|
||||
'active': False,
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
!assert {model: crm.lead, id: crm.crm_case_qrecorp0, string: stage of opportunity is win}:
|
||||
- stage_id.name == "Won"
|
||||
-
|
||||
I want to add internal note to this opportunity, so i create note.
|
||||
I add internal note to this opportunity, so i create note.
|
||||
-
|
||||
!record {model: crm.add.note, id: crm_add_note_won_opportunity}:
|
||||
body: 'I won this Opportunity'
|
||||
@@ -43,13 +43,14 @@
|
||||
-
|
||||
!python {model: crm.add.note}: |
|
||||
self.action_add(cr, uid, [ref("crm_add_note_won_opportunity")], {"active_model": "crm.lead","active_ids": [ref("crm_case_qrecorp0")]})
|
||||
-
|
||||
I will test Internal note added on opportunity .
|
||||
-
|
||||
!python {model: crm.lead}: |
|
||||
lead = self.browse(cr, uid, ref('crm_case_qrecorp0'))
|
||||
message = 'I won this Opportunity' in lead.message_ids[-1].subject
|
||||
assert message,'Fail to Added interal note on opportunity'
|
||||
|
||||
# TODO: cheked For ordering of history of message
|
||||
#-
|
||||
# I test Internal latest note added on opportunity .
|
||||
#-
|
||||
# !python {model: crm.lead}: |
|
||||
# lead = self.browse(cr, uid, ref('crm_case_qrecorp0'))
|
||||
# assert lead.message_ids[0].subject == 'I won this Opportunity', 'Fail to Added interal note on opportunity'
|
||||
-
|
||||
After winning the opportunity, i will test probability is 100.
|
||||
-
|
||||
|
||||
@@ -41,7 +41,8 @@ It also has been merged with the earlier CRM & SRM segmentation tool because the
|
||||
'init_xml': [],
|
||||
'update_xml': ['security/ir.model.access.csv', 'crm_profiling_view.xml'],
|
||||
'demo_xml': ['crm_profiling_demo.xml'],
|
||||
'test': ['test/test_crm_profiling.yml'],
|
||||
'test': ['test/test_crm_profiling.yml',
|
||||
'test/test_crm_segmentation.yml',],
|
||||
'installable': True,
|
||||
'active': False,
|
||||
'certificate': '0033984979005',
|
||||
|
||||
Reference in New Issue
Block a user