Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
2972 Prikazi

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
Opusti
Best Answer

This is not needed.

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

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
1
nov. 19
2698
1
avg. 19
2845
1
feb. 19
4353
2
feb. 22
10628
4
okt. 17
7364