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

Hi,

I am new to Odoo 12 web development

I am trying to add jquery.min.js to my web page, in order to use another jQuery module. But once i add the jquery.min.js the related button is being disabled and i cannot click it. How can i add the jquery.min.js file to my project. 

Here how I add the jquery files.

<xpath expr="//script[last()]" position="after">            
<script type="text/javascript" src="/alsayyed_filter/static/src/js/jquery-3.4.1.min.js"/>
<script type="text/javascript" src="/alsayyed_filter/static/src/js/jquery.multiselect.js"/>            
<script type="text/javascript" src="/alsayyed_filter/static/src/js/custom_filters.js"/>                    
</xpath>

الصورة الرمزية
إهمال
الكاتب

Thanks Jigar...

أفضل إجابة

jQuery lib is already available in Odoo in every page. You don't need to add it manually.

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
4
مايو 24
7100
1
يوليو 23
2284
3
يونيو 23
3155
4
يونيو 22
4834
3
أبريل 22
5454