summaryrefslogtreecommitdiff
path: root/addons/web
diff options
context:
space:
mode:
authorThanh Dodeur <tso@odoo.com>2020-05-25 12:12:46 +0000
committerThanh Dodeur <tso@odoo.com>2020-05-25 12:14:57 +0000
commit681306d4e76faeb119d363c263c54b287cb5c150 (patch)
tree21fe0389fad4a8aea5e9e0584d4daebbcd5481a2 /addons/web
parent55b06152bc988d2440db71c0a3f9a213ed35b928 (diff)
[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>
Diffstat (limited to 'addons/web')
-rw-r--r--addons/web/views/webclient_templates.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/views/webclient_templates.xml b/addons/web/views/webclient_templates.xml
index aaf0315bdb8..e0a9ca3fdf6 100644
--- a/addons/web/views/webclient_templates.xml
+++ b/addons/web/views/webclient_templates.xml
@@ -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>