2011-10-11 06:55:03 +00:00
|
|
|
-
|
2013-04-19 15:25:55 +00:00
|
|
|
I set a new sale team (with Marketing at parent) and I cancel unqualified lead .
|
2011-10-11 06:55:03 +00:00
|
|
|
-
|
|
|
|
!python {model: crm.lead}: |
|
2013-04-19 15:25:55 +00:00
|
|
|
section_id = self.pool.get('crm.case.section').create(cr, uid, {'name': "Phone Marketing", 'parent_id': ref("crm.crm_case_section_2")})
|
|
|
|
self.write(cr, uid, [ref("crm_case_1")], {'section_id': section_id})
|
2011-10-25 07:39:57 +00:00
|
|
|
-
|
2011-12-15 12:30:30 +00:00
|
|
|
I escalate the lead to parent team.
|
2011-10-25 07:39:57 +00:00
|
|
|
-
|
|
|
|
!python {model: crm.lead}: |
|
2012-07-30 10:23:52 +00:00
|
|
|
self.case_escalate(cr, uid, [ref("crm_case_1")])
|
2011-10-25 07:39:57 +00:00
|
|
|
-
|
2012-05-25 10:17:13 +00:00
|
|
|
I check the lead is correctly escalated to the parent team.
|
2011-11-02 06:53:28 +00:00
|
|
|
-
|
2012-07-30 10:23:52 +00:00
|
|
|
!assert {model: crm.lead, id: crm.crm_case_1, string: Escalate lead to parent team}:
|
2013-04-19 15:25:55 +00:00
|
|
|
- section_id.name == "Marketing"
|