[IMP] crm: improved yml test case to sen mail.
bzr revid: tpa@tinyerp.com-20120907105543-jfxuqmnjckvmi4wx
This commit is contained in:
parent
024506b63b
commit
a02f31c34c
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue