Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
9615 Lượt xem

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>

Ảnh đại diện
Huỷ bỏ
Tác giả

Thanks Jigar...

Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
4
thg 5 24
7090
1
thg 7 23
2281
3
thg 6 23
3153
4
thg 6 22
4830
3
thg 4 22
5450