mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-16 12:12:57 -06:00
Merge b13d72e5e8
into baa5e3bed4
This commit is contained in:
commit
fbeea792c2
@ -1,9 +1,9 @@
|
|||||||
/** @odoo-module **/
|
/** @odoo-module **/
|
||||||
|
/* eslint-disable no-undef */
|
||||||
import AttachmentPreviewWidget from "../../attachmentPreviewWidget.esm";
|
import AttachmentPreviewWidget from "../../attachmentPreviewWidget.esm";
|
||||||
import FormRenderer from "web.FormRenderer";
|
import FormRenderer from "web.FormRenderer";
|
||||||
import {registerInstancePatchModel} from "@mail/model/model_core";
|
import {registerInstancePatchModel} from "@mail/model/model_core";
|
||||||
|
|
||||||
odoo.define("attachment_preview.attachment_card", function (require) {
|
|
||||||
var rpc = require("web.rpc");
|
var rpc = require("web.rpc");
|
||||||
|
|
||||||
var chatterpreviewableAttachments = [];
|
var chatterpreviewableAttachments = [];
|
||||||
@ -77,12 +77,7 @@ odoo.define("attachment_preview.attachment_card", function (require) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
function getUrl(
|
function getUrl(attachment_id, attachment_url, attachment_extension, attachment_title) {
|
||||||
attachment_id,
|
|
||||||
attachment_url,
|
|
||||||
attachment_extension,
|
|
||||||
attachment_title
|
|
||||||
) {
|
|
||||||
var url = "";
|
var url = "";
|
||||||
if (attachment_url) {
|
if (attachment_url) {
|
||||||
if (attachment_url.slice(0, 21) === "/web/static/lib/pdfjs") {
|
if (attachment_url.slice(0, 21) === "/web/static/lib/pdfjs") {
|
||||||
@ -262,4 +257,3 @@ odoo.define("attachment_preview.attachment_card", function (require) {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
});
|
|
||||||
|
Loading…
Reference in New Issue
Block a user