[FIX] typo: field is incorrect

This commit is contained in:
cubells
2017-07-07 11:54:00 +02:00
committed by Pedro M. Baeza
parent 6ff1cfa88d
commit f9bc46ab57

View File

@@ -170,7 +170,7 @@ class CreditCommunication(models.TransientModel):
for comm in self:
template = comm.current_policy_level.email_template_id
email_values = template.generate_email(comm.id)
email_values['type'] = 'email'
email_values['message_type'] = 'email'
# model is Transient record (self) removed periodically so no point
# of storing res_id
email_values.pop('model', None)