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

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!






อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
มิ.ย. 24
2650
3
เม.ย. 24
5732
0
ก.ค. 22
1077
Get data from JS file to XML file แก้ไขแล้ว
1
ส.ค. 20
8950
2
มิ.ย. 20
4023