Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
2 Vastaukset
6302 Näkymät

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

Avatar
Hylkää

Check the security of that particular file.

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

Paras vastaus

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!

Avatar
Hylkää
Paras vastaus

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

Avatar
Hylkää

Doesn't work for me (Odoo V12 CE)

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
heinäk. 20
4737
0
kesäk. 20
4336
1
kesäk. 24
2746
3
huhtik. 24
5855
0
heinäk. 22
1170