Skip to content
Snippets Groups Projects
Commit 49695b00 authored by Rémi Rahir's avatar Rémi Rahir
Browse files

[FIX] snailmail: use the correct activity type

The activity generated by the snailmail sending is actually an exception
and should therefore use the corresponding activity type.
parent 4237e162
No related branches found
No related tags found
No related merge requests found
......@@ -11,11 +11,5 @@
<field name="numbercall">-1</field>
<field name="doall" eval="False"/>
</record>
<record id="mail_activity_data_snailmail" model="mail.activity.type">
<field name="name">Snailmail</field>
<field name="icon">fa-address-card</field>
<field name="sequence">15</field>
</record>
</data>
</odoo>
......@@ -245,7 +245,7 @@ class SnailmailLetter(models.Model):
activity_data = {
'res_id': letter.res_id,
'res_model_id': self.env['ir.model']._get(letter.model).id,
'activity_type_id': self.env.ref('snailmail.mail_activity_data_snailmail').id,
'activity_type_id': self.env.ref('mail.mail_activity_data_warning').id,
'summary': _('Post letter: an error occured.'),
'note': note,
'user_id': letter.user_id.id,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment