[FIX] mail: preview of some documents were broken
How to reproduce the bug ======================== -> Try to preview some documents like (Employement Contract.pdf or Odoo CLA.pdf). -> Preview is broken. Technical ========= "application/pdf;base64" mimetype was not included in the isPdf() so the method was returning the false value. After this commit: ================== Now the PDF containing this mimetype are previewable. Task-3305415 closes odoo/odoo#124412 X-original-commit: 698d51fa56be47eb108cec299b12a3f6b58058b9 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
This commit is contained in:
@@ -53,7 +53,7 @@ export class Attachment {
|
||||
}
|
||||
|
||||
get isPdf() {
|
||||
return this.mimetype === "application/pdf";
|
||||
return this.mimetype && this.mimetype.startsWith("application/pdf");
|
||||
}
|
||||
|
||||
get isImage() {
|
||||
|
||||
Reference in New Issue
Block a user