[IMP]: crm: Added internal note after wining the opportunity in lead2opportunity.yml
bzr revid: ron@tinyerp.com-20111014104729-1la21n3mxpzb0qz7
This commit is contained in:
parent
81c8f80edc
commit
7c8c006beb
|
@ -35,6 +35,23 @@
|
|||
-
|
||||
!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.
|
||||
-
|
||||
!record {model: crm.add.note, id: crm_add_note_won_opportunity}:
|
||||
body: 'I won this Opportunity'
|
||||
-
|
||||
Apply this note to opportunity.
|
||||
-
|
||||
!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'
|
||||
-
|
||||
After winning the opportunity, i will test probability is 100.
|
||||
-
|
||||
|
|
Loading…
Reference in New Issue