summaryrefslogtreecommitdiff
path: root/addons/web/static
diff options
context:
space:
mode:
authorNicolas Lempereur <nle@odoo.com>2020-07-24 16:14:50 +0000
committerNicolas Lempereur <nle@odoo.com>2020-07-27 13:58:00 +0000
commit922c7c722dcf8132c7d6f7f262a1ad9869d073d3 (patch)
tree440749907d4df994c8d7a71fb586abe064382ce0 /addons/web/static
parent7aafa205090c558d3d52eb893762c00a70ca307f (diff)
[FIX] web: show digital signature in PDF
Show digital signatures items in PDF.JS preview even if the signature verification is not implemented. From discussion in mozilla/pdf.js this is like this because they don't want to give the user a false sense of "the digital signature has been verified" when it has not, but for a preview of the PDF this seems misleading, in any case the user can have a full fledged PDF reader and know if the document is well signed then. https://github.com/mozilla/pdf.js/ issues/4743 opw-2287840 closes #54922 closes odoo/odoo#54988 X-original-commit: 820128385c523f562b9ee82698c81daa63149bb7 Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Diffstat (limited to 'addons/web/static')
-rw-r--r--addons/web/static/lib/pdfjs/build/pdf.worker.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/addons/web/static/lib/pdfjs/build/pdf.worker.js b/addons/web/static/lib/pdfjs/build/pdf.worker.js
index 211fbbdc4cb..a634f2af15f 100644
--- a/addons/web/static/lib/pdfjs/build/pdf.worker.js
+++ b/addons/web/static/lib/pdfjs/build/pdf.worker.js
@@ -28993,9 +28993,10 @@ function (_Annotation2) {
data.readOnly = _this3.hasFieldFlag(_util.AnnotationFieldFlag.READONLY);
if (data.fieldType === 'Sig') {
- data.fieldValue = null;
+ // Odoo: display digital signature even if verification not implemented https://github.com/mozilla/pdf.js/issues/4743
+ //data.fieldValue = null;
- _this3.setFlags(_util.AnnotationFlag.HIDDEN);
+ //_this3.setFlags(_util.AnnotationFlag.HIDDEN);
}
return _this3;