İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
2984 Görünümler

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
Vazgeç
En İyi Yanıt

This is not needed.

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

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Kas 19
2706
1
Ağu 19
2857
1
Şub 19
4362
2
Şub 22
10630
4
Eki 17
7367