[FIX] mass_mailing: URI too long

Since commit 6494f51171, all images in mass mailing are created as
attachments. This can lead to URI too long to be handled by some proxy,
e.g. Nginx.

opw-1853188
This commit is contained in:
Nicolas Martinelli
2018-06-06 14:49:25 +02:00
committed by Adrien Dieudonné
parent 10da9045a6
commit ab1690b3de
@@ -38,7 +38,7 @@ FieldTextHtml.include({
var datarecord = this._super();
if (this.model === 'mail.mass_mailing') {
// these fields can potentially get very long, let's remove them
datarecord = _.omit(datarecord, ['mailing_domain', 'contact_list_ids', 'body_html']);
datarecord = _.omit(datarecord, ['mailing_domain', 'contact_list_ids', 'body_html', 'attachment_ids']);
}
return datarecord;
},