Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
4 ตอบกลับ
15940 มุมมอง

I created my own index file in odoo website. And added a js like below:

odoo.define('website_olio.extend_js', function (require) {

"use strict";
var ajax = require('web.ajax');
$(document).ready(function () { 
        $("#idCreate").click(function () {

         -------------------------------------------

})})
});




But Error showing "odoo is not defined" in console.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Did you create a whole new HTML page? There is a lot of javascript files that you should link on your html page if you want to be able to use odoo.define.

You should check the templates web.assets_common, web.assets_backend and website.assets_frontend.

อวตาร
ละทิ้ง
ผู้เขียน

Yes. I created a scratch xml file (name;index.xml). Already my designer added some JS file in that index file. Now what file I have to link like that? Could you please

ผู้เขียน

I fixed it :)

คำตอบที่ดีที่สุด

Hi 

How did you fixed it??

อวตาร
ละทิ้ง

did you find the solution?

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
เม.ย. 16
8272
need to change odoo port from 8069 to 80 แก้ไขแล้ว
3
ต.ค. 18
25972
3
พ.ย. 16
3260
0
มี.ค. 16
40
0
ม.ค. 16
4171