[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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user