Skip to Content
Menú
This question has been flagged
1 Respondre
3000 Vistes

In odoo11 community edition, I have a custom js inherit the point_of_sale.assets and I want to include the socketio library and use it inside this custom js file

<?xml version="1.0" encoding="utf-8"?>
<odoo>

    <template id="assets" inherit_id="point_of_sale.assets">
        <xpath expr="." position="inside">

            <script type="text/javascript" src="/okmenu/static/src/js/custom.js"></script>
            <script type="https://cdnjs.cloudflare.com/ajax/libs/socket.io/1.7.3/socket.io.js"></script>

        </xpath>

    </template>

</odoo>
Avatar
Descartar
Best Answer

This is not needed.

<script type="https://cdnjs.cloudflare.com/ajax/libs/socket.io/1.7.3/socket.io.js"></script>

Avatar
Descartar
Related Posts Respostes Vistes Activitat
1
de nov. 19
2719
1
d’ag. 19
2872
1
de febr. 19
4380
2
de febr. 22
10658
4
d’oct. 17
7396