17 lines
647 B
YAML
17 lines
647 B
YAML
-
|
|
I set a new sale team (with Marketing at parent) and I cancel unqualified lead .
|
|
-
|
|
!python {model: crm.lead}: |
|
|
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})
|
|
-
|
|
I escalate the lead to parent team.
|
|
-
|
|
!python {model: crm.lead}: |
|
|
self.case_escalate(cr, uid, [ref("crm_case_1")])
|
|
-
|
|
I check the lead is correctly escalated to the parent team.
|
|
-
|
|
!assert {model: crm.lead, id: crm.crm_case_1, string: Escalate lead to parent team}:
|
|
- section_id.name == "Marketing"
|