2011-10-11 06:55:03 +00:00
|
|
|
-
|
2013-09-11 11:07:55 +00:00
|
|
|
I set a new sale team (with Marketing at parent) giving access rights of salesman.
|
2013-02-20 06:37:25 +00:00
|
|
|
-
|
|
|
|
!context
|
2013-06-26 11:59:47 +00:00
|
|
|
uid: 'crm_res_users_salesmanager'
|
2011-10-11 06:55:03 +00:00
|
|
|
-
|
|
|
|
!python {model: crm.lead}: |
|
2014-05-12 08:37:47 +00:00
|
|
|
section_id = self.pool.get('crm.case.section').create(cr, uid, {'name': "Phone Marketing", 'parent_id': ref("sales_team.crm_case_section_2")})
|
2013-04-19 15:25:55 +00:00
|
|
|
self.write(cr, uid, [ref("crm_case_1")], {'section_id': section_id})
|
2011-10-13 06:34:11 +00:00
|
|
|
-
|
2013-09-11 11:07:55 +00:00
|
|
|
Salesman check unqualified lead .
|
2011-10-13 06:34:11 +00:00
|
|
|
-
|
2013-07-16 15:10:03 +00:00
|
|
|
!assert {model: crm.lead, id: crm.crm_case_1, string: Lead is in new stage}:
|
|
|
|
- stage_id.sequence == 1
|
2011-10-25 07:39:57 +00:00
|
|
|
-
|
2013-02-20 06:37:25 +00:00
|
|
|
Salesman 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
|
|
|
-
|
2013-02-20 06:37:25 +00:00
|
|
|
Salesman 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"
|