[FIX] mail: test: fixed a warning due to a bad-named field.
authorThibault Delavallée <tde@openerp.com>
Thu, 18 Oct 2012 09:47:34 +0000 (11:47 +0200)
committerThibault Delavallée <tde@openerp.com>
Thu, 18 Oct 2012 09:47:34 +0000 (11:47 +0200)
bzr revid: tde@openerp.com-20121018094734-tqfrmg0jb2t2a1k2

addons/mail/tests/test_mail.py

index ded5ed0..271d4d3 100644 (file)
@@ -496,7 +496,7 @@ class test_mail(TestMailMockups):
 
         # 1. mass_mail on pigs and bird
         compose_id = mail_compose.create(cr, uid,
-            {'subject': _subject, 'body': '${object.description}', 'content_type': 'html'},
+            {'subject': _subject, 'body': '${object.description}', 'content_subtype': 'html'},
             {'default_composition_mode': 'mass_mail', 'default_model': 'mail.group', 'default_res_id': False,
                 'active_ids': [self.group_pigs_id, group_bird_id]})
         compose = mail_compose.browse(cr, uid, compose_id)