콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
6081 화면

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
4470
0
6월 20
4123
1
6월 24
2448
3
4월 24
5478
0
7월 22
877