[IMP] crm: improved yml test case to sen mail.

bzr revid: tpa@tinyerp.com-20120907105543-jfxuqmnjckvmi4wx
This commit is contained in:
Turkesh Patel (Open ERP) 2012-09-07 16:25:43 +05:30
parent 024506b63b
commit a02f31c34c
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@
-
I reply him request with welcome message.
-
!python {model: mail.compose.message}: |
!python {model: mail.mail}: |
lead_ids = self.pool.get('crm.lead').search(cr, uid, [('email_from','=', 'Mr. John Right <info@customer.com>')])
context.update({'active_model': 'crm.lead','active_id': lead_ids[0]})
id = self.create(cr, uid, {'body': "Merci à l'intérêt pour notre produit.nous vous contacterons bientôt. Merci", 'email_from': 'sales@mycompany.com'}, context=context)