Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
6298 Visualizzazioni

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
Abbandona

Check the security of that particular file.

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

Risposta migliore

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
Abbandona
Risposta migliore

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
Abbandona

Doesn't work for me (Odoo V12 CE)

Post correlati Risposte Visualizzazioni Attività
1
lug 20
4732
0
giu 20
4336
1
giu 24
2745
3
apr 24
5853
0
lug 22
1163