Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
6318 มุมมอง

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)

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ก.ค. 20
4756
0
มิ.ย. 20
4348
1
มิ.ย. 24
2754
3
เม.ย. 24
5863
0
ก.ค. 22
1182