[FIX] typo: field is incorrect

This commit is contained in:
cubells
2017-07-07 11:54:00 +02:00
parent 61172f5960
commit ac7642c183

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)