Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
6311 Lượt xem

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

Ảnh đại diện
Huỷ bỏ

Check the security of that particular file.

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

Câu trả lời hay nhất

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!

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ

Doesn't work for me (Odoo V12 CE)

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 7 20
4752
0
thg 6 20
4339
1
thg 6 24
2748
3
thg 4 24
5858
0
thg 7 22
1174