콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
4 답글
15988 화면

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?

관련 게시물 답글 화면 활동
1
4월 16
8304
3
10월 18
26007
3
11월 16
3287
0
3월 16
40
0
1월 16
4194