partner_ids = self.message_partner_by_email(cr, uid, 'Mr. John Right <info@customer.com>')
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.
-