[FIX] web: add access group to the pdf js template.

This commit adds the `base.group_user` access group to the `pdf_js_lib`
template so it can be lazy loaded in the JS.

closes odoo/odoo#51804

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
This commit is contained in:
Thanh Dodeur
2020-05-25 12:14:57 +00:00
parent 55b06152bc
commit 681306d4e7
+1 -1
View File
@@ -907,7 +907,7 @@
For now, it is only use to display the PDF slide Viewer during an embed.
Bundlized, the size is reduced to 5300≈ lines.
-->
<template id="pdf_js_lib" name="PDF JS Library">
<template id="pdf_js_lib" groups="base.group_user" name="PDF JS Library">
<script type="text/javascript" src="/web/static/lib/pdfjs/build/pdf.js"></script>
<script type="text/javascript" src="/web/static/lib/pdfjs/build/pdf.worker.js"></script>
</template>