تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
6324 أدوات العرض

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
يوليو 20
4760
0
يونيو 20
4356
1
يونيو 24
2757
3
أبريل 24
5867
0
يوليو 22
1185