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

Hi community,

I have written some code in my website custom module, i have wrote the java script code under script tag in XML file. Unfortunately it is working perfectly only under debug with assets, early the module works perfectly on the Odoo 12.

Thanks in advance

頭像
捨棄

Check the security of that particular file.

you make changes in XML file so make sure you update the module.

最佳答案

I faced the same problem, and I tried with

expr="script[last()]" position="after"

instead of

expr="." position="inside"

in order to add my JS file, and it works for me!

頭像
捨棄
最佳答案

Hi,

Paste the following script before this your script. I had the same issue and i solved by using this method(Don't know the exact reason of the problem).

<script src="https://code.jquery.com/jquery-3.4.1.js"></script>

Regards

頭像
捨棄

Doesn't work for me (Odoo V12 CE)

相關帖文 回覆 瀏覽次數 活動
1
7月 20
4452
0
6月 20
4119
1
6月 24
2425
3
4月 24
5381
0
7月 22
853