From 0591aaa554ae61a84876b135715bec5e3f1c3767 Mon Sep 17 00:00:00 2001 From: "Rucha (Open ERP)" Date: Tue, 7 Aug 2012 13:20:00 +0530 Subject: [PATCH] [IMP]: crm: Improved phonecall demo bzr revid: rpa@tinyerp.com-20120807075000-b5efil1mkifvz712 --- addons/crm/crm_phonecall_demo.xml | 81 ++++++++----------- .../process/communication_with_customer.yml | 6 +- 2 files changed, 38 insertions(+), 49 deletions(-) diff --git a/addons/crm/crm_phonecall_demo.xml b/addons/crm/crm_phonecall_demo.xml index 59443c55bb4..cbfb74a8e04 100644 --- a/addons/crm/crm_phonecall_demo.xml +++ b/addons/crm/crm_phonecall_demo.xml @@ -7,88 +7,77 @@ - + - - + Left the message + done + +34 934 340 230 - - - - - + + - - - - + Need more information on the proposed deal + done + +44 121 690 4596 + - - - + - - - - + Ask for convenient time of meeting + open + +1 786 525 0724 + - - - + - - - + - - - - + Wanted information about pricing of Laptops + done + (077) 582-4035 + (077) 341-3591 + - - - + + - + - - - - + More information on the proposed deal + pending + +1 312 349 2324 + - - + - + - - - - + Proposal for discount offer + open + +34 230 953 485 + - - diff --git a/addons/crm/test/process/communication_with_customer.yml b/addons/crm/test/process/communication_with_customer.yml index d7b2b578d8a..1653be10763 100644 --- a/addons/crm/test/process/communication_with_customer.yml +++ b/addons/crm/test/process/communication_with_customer.yml @@ -44,15 +44,15 @@ I convert one phonecall request as a customer and put into regular customer list. - !python {model: crm.phonecall2partner}: | - context.update({'active_model': 'crm.phonecall', 'active_ids': [ref("crm.crm_phonecall_6")], 'active_id': ref("crm.crm_phonecall_6")}) + context.update({'active_model': 'crm.phonecall', 'active_ids': [ref("crm.crm_phonecall_4")], 'active_id': ref("crm.crm_phonecall_4")}) new_id = self.create(cr, uid, {}, context=context) self.make_partner(cr, uid, [new_id], context=context) - I check converted phonecall to partner. - !python {model: res.partner}: | - partner_id = self.search(cr, uid, [('phonecall_ids', '=', ref('crm.crm_phonecall_6'))]) + partner_id = self.search(cr, uid, [('phonecall_ids', '=', ref('crm.crm_phonecall_4'))]) assert partner_id, "Customer is not found in regular customer list." data = self.browse(cr, uid, partner_id, context=context)[0] assert data.user_id.id == ref("base.user_root"), "User not assign properly" - assert data.name == "Bad time", "Bad partner name" + assert data.name == "Wanted information about pricing of Laptops", "Bad partner name"