Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
3006 Переглядів

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>
Аватар
Відмінити
Найкраща відповідь

This is not needed.

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

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
лист. 19
2726
1
серп. 19
2876
1
лют. 19
4386
2
лют. 22
10676
4
жовт. 17
7401