[ADD] crm: 1) Added schedule_other_phonecall.yml,

2) checked schedule call created

bzr revid: ron@tinyerp.com-20111017112525-8fhqb8iuclh9hdkp
This commit is contained in:
ron@tinyerp.com 2011-10-17 16:55:25 +05:30
parent 87727d9b54
commit dc95f95342
2 changed files with 24 additions and 0 deletions

View File

@ -128,6 +128,7 @@ Creates a dashboard for CRM that includes:
'test/ui/lead_form.yml',
'test/process/phonecall2opportunity.yml',
'test/process/phonecall2meeting.yml',
'test/process/schedule_other_phonecall.yml'
],
'installable': True,
'active': False,

View File

@ -0,0 +1,23 @@
-
I schedule phonecall to another phonecall, so first i create record of schedule call.
-
!record {model: crm.phonecall2phonecall, id: crm_schedule_phonecall}:
name: 'Test Discuss Review Process'
categ_id: crm.categ_phone1
date: !eval time.strftime('%Y-%m-%d')
-
I Convert schedule phonecall.
-
!python {model: crm.phonecall2phonecall}: |
self.action_apply(cr, uid, [ref('crm_schedule_phonecall')], {'active_id': ref('crm_case_phone04')})
-
I check for another schedule call.
-
!python {model: crm.phonecall}: |
phonecall = self.search(cr, uid, [('name', '=', 'Test Discuss Review Process')])
assert phonecall, "Do not create another schedule call"
schedule_phonecall = self.browse(cr, uid, phonecall)[0]
assert schedule_phonecall.user_id.id == ref("base.user_root"), "Responsible person not assign"
assert schedule_phonecall.section_id.id == ref("crm.section_sales_department"), "Do not assign proper section"
assert schedule_phonecall.categ_id.id == ref("crm.categ_phone1"), "Category of phonecall is not apply"
assert schedule_phonecall.partner_id.id == ref("base.res_partner_tinyatwork"), "Partner missmatch"