跳至內容
選單
此問題已被標幟
1 回覆
2997 瀏覽次數

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>

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
11月 19
2712
1
8月 19
2867
1
2月 19
4370
2
2月 22
10646
4
10月 17
7385