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

Hello .  

I'm using  Odoo13, I want to change my custom views every X seconds.

I have two Js and XML files separately.      

template1.xml  

temp1.js

template2.xml

temp2.js


I am calling xml into JS and working perfectly fine.

temp1.js

var MyClientAction = AbstractAction.extend({
contentTemplate: 'template1',
});
core.action_registry.add('folder_name', MyClientAction);

I do not know how to call and load template2.  I am about to use this function for time interval

setInterval(function() {

}, 5000);

I tried another option to gather every templates and separate with  in one file  and gather javascripts as well, but still do not know how to change views every X seconds, the ways I tried do not work. 

Thanks in advance!






아바타
취소
관련 게시물 답글 화면 활동
1
6월 24
2471
3
4월 24
5485
0
7월 22
891
1
8월 20
8794
2
6월 20
3800