Merge pull request #515 from Tecnativa/10.0-fix_non_existent_field

[FIX] typo: field type is incorrect
This commit is contained in:
Alex Comba
2017-07-14 15:55:26 +02:00
committed by GitHub

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)