From 7170412c7225a7d7ef9c5886ef5d830a4fed9652 Mon Sep 17 00:00:00 2001 From: "Atik Agewan (OpenERP)" Date: Wed, 7 Dec 2011 12:31:39 +0530 Subject: [PATCH] [IMP] CRM: crm_phonecall_to_partner - crate partner by wiz bzr revid: aag@tinyerp.com-20111207070139-85umali79jzukepd --- addons/crm/test/process/communication_with_customer.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/addons/crm/test/process/communication_with_customer.yml b/addons/crm/test/process/communication_with_customer.yml index 92e711ce016..5b973f8b46d 100644 --- a/addons/crm/test/process/communication_with_customer.yml +++ b/addons/crm/test/process/communication_with_customer.yml @@ -41,10 +41,12 @@ partner_ids = self.message_partner_by_email(cr, uid, 'Mr. John Right ') assert partner_ids.get('partner_id'), "Customer is not found in regular customer list." - - I convert one phonecall request as a customer and put into regular customer list. + I convert one phonecall request as a customer and put into regular customer list. - - !python {model: crm.phonecall}: | - self.convert_partner(cr, uid, [ref('crm.crm_case_phone06')], context=context) + !python {model: crm.phonecall2partner}: | + context.update({'active_model': 'crm.phonecall', 'active_ids': [ref("crm.crm_case_phone06")], 'active_id': ref("crm.crm_case_phone06")}) + new_id = self.create(cr, uid, {}, context=context) + self.make_partner(cr, uid, [new_id], context=context) - I check converted phonecall to partner. -