Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
6363 Переглядів

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
4780
0
черв. 20
4419
1
черв. 24
2777
3
квіт. 24
5891
0
лип. 22
1226